|
|
07/22/2009, 08:20 PM
|
#21 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 71
Likes Received: 0
Thanks: 0
Thanked 35 Times in 8 Posts
|
I'm going to be working on it to make it look better and everything tomorrow. Haven't had the time today, and when I did that patch I just wanted to get it to work, regardless of how it looked.
|
07/22/2009, 08:34 PM
|
#22 (permalink) |
|
Forum Leader
![]() Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
|
Well thanks again. I didn't try the patch method I just vi and put the code in. I tried to add the percentage sign after the last line we added and I just got a white bar. I am working on something to see if I can change the low battery warning now.
|
07/22/2009, 08:55 PM
|
#23 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 109
Likes Received: 0
Thanks: 9
Thanked 31 Times in 25 Posts
|
Quote:
Applying Patches - WebOS Internals This would automate the application and removal of the patch for many people. Thanks... plee3 |
|
07/22/2009, 10:11 PM
|
#28 (permalink) |
|
Forum Leader
![]() Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
|
I didn't try the patch after I saw the message posted. I went to the website and it shows the code and I just placed it in the appropriate file.
|
07/22/2009, 11:20 PM
|
#29 (permalink) |
|
Member
![]() Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
|
What lines, what files (well that's a dumb one, the file is obviously right there) but that's what I am getting at, I don't care about "patches", let me edit the file in vi or at least make it like d2globalinc has done in the past, very simple. But I will settle for what lines and files I need to edit in vi.
|
07/22/2009, 11:49 PM
|
#30 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 71
Likes Received: 0
Thanks: 0
Thanked 35 Times in 8 Posts
|
Alright. I've made some progress. This patch allows you to change between the original image style, and text percentage (with % shown now). It's only changeable via bar-assistant.js (look for batteryLevelImage variable).
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 |
07/23/2009, 12:16 AM
|
#31 (permalink) |
|
Member
![]() Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
|
Perfect Thank you.... Remember, I am sorry if I EVER made it sound as if I was saying I wasn't thankful for your efforts. I just had a difficult time with the "patch" in the previous posts (within the thread) and this has worked flawlessly! Thank you again!!!
Hope to see your wisdom and insight within the forums more often! |
07/23/2009, 12:47 AM
|
#33 (permalink) |
|
Member
![]() Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
|
Umm look up a couple of post (dare I say, duh!)(thanks mamouton)
So my only grip would be (and this falls back on lack of knowledge of linux and it's files) would be it doesn't 'update' on the fly. Meaning, if the battery drops 1% it doesn't update until you either push the icon or let the Pre sleep. Can that be done? Last edited by Webby_s; 07/23/2009 at 12:54 AM. |
07/23/2009, 01:48 AM
|
#34 (permalink) |
|
Member
![]() Join Date: Jul 2009
Location: Rolling Hills of Freedom, Missouri
Posts: 106
Likes Received: 0
Thanks: 5
Thanked 5 Times in 5 Posts
|
I've followed the instructions over at Applying Patches - WebOS Internals
I run a quilt series and it shows Code:
root@castle:/# quilt series /opt/src/patches/hidden-clock.patch /opt/src/patches/show-actual-battery-percent.patch /opt/src/patches/messaging-sounds.patch /opt/src/patches/enable-browser-downloads.patch root@castle:/# quilt push File series fully applied, ends at patch /opt/src/patches/enable-browser-downloads.patch Should i try using the method nesl247 used? |
07/23/2009, 02:40 AM
|
#35 (permalink) |
|
Forum Leader
![]() Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
|
nesl247 is the OP. When I tried to get the patch I kept getting an error. I downloaded the file from here http://filebin.ca/prhvwq/pre_battery_percentage.diff and vi'd in to make the changes. I am also posting a picture.
Thanks nesl247 |
07/23/2009, 02:43 AM
|
#36 (permalink) | |
|
Forum Leader
![]() Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
|
Quote:
|
|
07/23/2009, 02:44 AM
|
#37 (permalink) | |
|
Forum Leader
![]() Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
|
Quote:
|
|
07/23/2009, 02:59 AM
|
#39 (permalink) |
|
Forum Leader
![]() Join Date: Jan 2007
Location: Fort Worth, TX
Posts: 5,771
Likes Received: 5
Thanks: 796
Thanked 1,165 Times in 801 Posts
|
When you click on this link http://filebin.ca/prhvwq/pre_battery_percentage.diff
it will download the text file you need with the changes. |
![]() |
|
| Tags |
| battery, hack, icon, percentage |
| Thread Tools | |
| Display Modes | |
|
|



