webOS Nation Forums >  Homebrew >  webOS patches > Battery % in place of Icon... Working in 1.1.0 in color
Battery % in place of Icon... Working in 1.1.0 in color

  Reply
 
LinkBack Thread Tools Display Modes
Old 07/23/2009, 07:48 AM   #41 (permalink)
Member
 
lilmexx323's Avatar
 
Join Date: Oct 2007
Posts: 166
Likes Received: 0
Thanks: 5
Thanked 17 Times in 12 Posts
Default

I too get the patch not found. I guess I may try the VI method.... Anyone have any ideas on the patch? Maybe I didn't set patching up or something..lol. I haven't applied a patch up to this point.. Plenty of VI mods, but no patches...

That text file is a mess.... lol. I will have to sort thru it later and see what I can do..

Last edited by lilmexx323; 07/23/2009 at 07:57 AM.
lilmexx323 is offline   Reply With Quote
Old 07/23/2009, 08:27 AM   #42 (permalink)
Member
 
Join Date: Jun 2009
Posts: 71
Likes Received: 0
Thanks: 0
Thanked 35 Times in 8 Posts
Default

Ah ok, I thought you guys were saying wget wasn't properly downloading the file. You are saying the patch command is missing... You need to setup ipkg-opt and then install patch with ipkg-opt install patch... Then you will be able to use the patch.
nesl247 is offline   Reply With Quote
Old 07/23/2009, 08:44 AM   #43 (permalink)
Member
 
lilmexx323's Avatar
 
Join Date: Oct 2007
Posts: 166
Likes Received: 0
Thanks: 5
Thanked 17 Times in 12 Posts
Default

I just used the code from the first page and of course got the old style with no percentage... I guess I will have to figure out the patch stuff, so I can have that as an option.. I guess, I will have to move my backup files back over and try to get the patch to work...

Quick question... I made a copy of the unmodified files on the internal media... To get those back to the phone should I copy or move those back.. I guess copy, so that way I still have the backup in the internal media drive??? Does that sound right?
lilmexx323 is offline   Reply With Quote
Old 07/23/2009, 09:17 AM   #44 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

Quote:
Originally Posted by nesl247 View Post
It really isn't working with wget for you guys? I just tried it twice with no problems.
This is what I used and it worked flawlessly:

Quote:
Originally Posted by nesl247 View Post
To apply this patch, make sure you've undone any changes from the previous patch. As root, run the following commands:

Code:
rootfs_open -w
wget http://filebin.ca/prhvwq/pre_battery_percentage.diff
patch -p0 -i  pre_battery_percentage.diff
/sbin/initctl stop LunaSysMgr && /sbin/initctl start LunaSysMgr
This will patch it successfully (I've tested it).
Thanks again!!!!
Attached Images
File Type: jpg phone_2009-23-07_091816.jpg (70.4 KB, 1394 views) Email Attachment
Webby_s is offline   Reply With Quote
Thanked by bigkev1469, dlbpre
Old 07/23/2009, 12:35 PM   #45 (permalink)
Member
 
lilmexx323's Avatar
 
Join Date: Oct 2007
Posts: 166
Likes Received: 0
Thanks: 5
Thanked 17 Times in 12 Posts
Default

I cant get the patch to work whever I try. Is there anyway you can show the line changes, like the link does on your first attempt. I can then change it in VI... I will try and see if I can get this patch thing working, but as of now... no go!!

Or,

What can I open the .diff file in that wont be so jumbled. I added a .txt extension to it and it opens in notepad, but is crazy looking.
lilmexx323 is offline   Reply With Quote
Old 07/23/2009, 01:28 PM   #46 (permalink)
Member
 
Join Date: Jun 2009
Posts: 71
Likes Received: 0
Thanks: 0
Thanked 35 Times in 8 Posts
Default

lilmexx, you need to setup ipkg-opt and install patch with it (ipkg-opt install patch). Then you can use the commands I gave you and it will work.

If you want to do it by hand, open the diff in wordpad, it understands the formatting properly. (difference between linux/windows return style)
nesl247 is offline   Reply With Quote
Old 07/23/2009, 03:13 PM   #47 (permalink)
Member
 
lilmexx323's Avatar
 
Join Date: Oct 2007
Posts: 166
Likes Received: 0
Thanks: 5
Thanked 17 Times in 12 Posts
Default

I just did it by hand. Thanks for the wordpad tip. I tried notepad and word and neither looked right and would have taken forever to decode.lol. It worked good. I have the percentage and all...Good work..
lilmexx323 is offline   Reply With Quote
Old 07/23/2009, 06:11 PM   #48 (permalink)
Member
 
Join Date: Jul 2009
Posts: 213
Likes Received: 0
Thanks: 22
Thanked 24 Times in 17 Posts
Default

hmm. i can't seem to get it to work with the patch

can anyone teach me how to do it via the vi
Jtemple33 is offline   Reply With Quote
Old 07/23/2009, 06:23 PM   #49 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

Which patch? The original were you copy/paste the file or the wget path?
Webby_s is offline   Reply With Quote
Old 07/23/2009, 06:25 PM   #50 (permalink)
Member
 
Join Date: Jul 2009
Posts: 213
Likes Received: 0
Thanks: 22
Thanked 24 Times in 17 Posts
Default

the wget path does not work for me.
and i was wondering how you do the copy and paste the text file using vi
Jtemple33 is offline   Reply With Quote
Old 07/23/2009, 06:54 PM   #51 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

I see.

Well I did this: Setting_up_optware line by line then I did the ipkg-opt update and ipkg-opt install patch.

Then I did the wget/patch

Don't know if the optware thing is what you need but I did it to my wifes phone before I did the wget and everything is working great.

Try that and report back.
Webby_s is offline   Reply With Quote
Old 07/23/2009, 07:08 PM   #52 (permalink)
Member
 
Join Date: Jul 2009
Posts: 213
Likes Received: 0
Thanks: 22
Thanked 24 Times in 17 Posts
Default

hmm. will this even still work after 1.1?
Jtemple33 is offline   Reply With Quote
Old 07/23/2009, 08:30 PM   #53 (permalink)
Member
 
FuManChuu's Avatar
 
Join Date: Mar 2006
Posts: 479
Likes Received: 0
Thanks: 10
Thanked 14 Times in 12 Posts
Default

as soon as my phone boots 1.1, im going for it O_o
__________________
Just waiting for the day my Pre has contacts grouping, and a "speed dial" for text messaging
FuManChuu is offline   Reply With Quote
Old 07/23/2009, 08:38 PM   #54 (permalink)
Member
 
lilmexx323's Avatar
 
Join Date: Oct 2007
Posts: 166
Likes Received: 0
Thanks: 5
Thanked 17 Times in 12 Posts
Default

After the 1.1 reboot back to the battery icon.. So the update wipes the fix.. I guess I will have to retype all in the morn.. I knew I should have saved my modified file...lol I guess I am gonna have to my make backups of all my mod files for after updates..
lilmexx323 is offline   Reply With Quote
Old 07/23/2009, 08:40 PM   #55 (permalink)
Member
 
FuManChuu's Avatar
 
Join Date: Mar 2006
Posts: 479
Likes Received: 0
Thanks: 10
Thanked 14 Times in 12 Posts
Default

the wget and patch method above works in 1.1.

Much win in this thread
__________________
Just waiting for the day my Pre has contacts grouping, and a "speed dial" for text messaging
FuManChuu is offline   Reply With Quote
Old 07/23/2009, 09:14 PM   #56 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

Sweet... Thank you FuManChuu, I was going to try doing this to my wifes phone but I appreciate you doing it first!!!
Webby_s is offline   Reply With Quote
Old 07/23/2009, 10:07 PM   #57 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default Yes I can varify also:

Here is verification that it still does work... All I had to do was apply the patch:
Code:
patch -p0 -i  pre_battery_percentage.diff
/sbin/initctl stop LunaSysMgr && /sbin/initctl start LunaSysMgr
Because if you have already done the wget it states file already exists.

Also a pic to varify (cause I know ppl will ask)
Attached Images
File Type: jpg deviceinfo_2009-23-07.jpg (33.0 KB, 580 views) Email Attachment
Webby_s is offline   Reply With Quote
Old 07/23/2009, 10:15 PM   #58 (permalink)
Forum Leader
 
mamouton's Avatar
 
Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
Default

Did anyone notice when it gets below 10 percent it shows the number percent sign and number 2 ie.. 7%2
mamouton is offline   Reply With Quote
Old 07/23/2009, 10:18 PM   #59 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

I try not and let my Pre get that low! lol
Webby_s is offline   Reply With Quote
Old 07/23/2009, 10:18 PM   #60 (permalink)
Member
 
Join Date: Jun 2009
Posts: 71
Likes Received: 0
Thanks: 0
Thanked 35 Times in 8 Posts
Default

I'll let my phone drain down so I can see this.. I haven't had my phone down because I've had it plugged in so I could use novaterm.. Do you have a screenshot by any chance?

Any yes I know that when it's at 100% it doesn't show the %. I can't seem to fix that. No matter what I do, it won't show. If I replace % with any letter, it shows that, but % won't. It could be that it's something I'm missing, since I have no knowledge of javascript, so if anyone knows, please enlighten.
nesl247 is offline   Reply With Quote
Reply

 

Tags
battery, hack, icon, percentage

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0