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/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
Default

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.
nesl247 is offline   Reply With Quote
Old 07/22/2009, 08:34 PM   #22 (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

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.
mamouton is offline   Reply With Quote
Old 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
Default

Quote:
Originally Posted by nesl247 View Post
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.
Is it possible for you to upload the patch to the wiki?

Applying Patches - WebOS Internals

This would automate the application and removal of the patch for many people.

Thanks... plee3
plee3 is offline   Reply With Quote
Old 07/22/2009, 09:01 PM   #24 (permalink)
Member
 
Join Date: Jun 2009
Posts: 71
Likes Received: 0
Thanks: 0
Thanked 35 Times in 8 Posts
Default

I'll do that once the patch has been developed a bit more. I want to make it look a bit better and possibly have it configurable (icon vs text option).
nesl247 is offline   Reply With Quote
Old 07/22/2009, 09:18 PM   #25 (permalink)
Member
 
Join Date: Jun 2009
Location: San Diego
Posts: 199
Likes Received: 0
Thanks: 46
Thanked 20 Times in 20 Posts
Default

any pictures ???
__________________
jrdejavux is offline   Reply With Quote
Old 07/22/2009, 10:08 PM   #26 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

So what did I do wrong anyone know
Webby_s is offline   Reply With Quote
Old 07/22/2009, 10:09 PM   #27 (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

Per your request
Attached Images
File Type: jpg phone_2009-22-07_220641.jpg (34.6 KB, 384 views) Email Attachment
mamouton is offline   Reply With Quote
Thanked By: lister
Old 07/22/2009, 10:11 PM   #28 (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

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.
mamouton is offline   Reply With Quote
Old 07/22/2009, 11:20 PM   #29 (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 mamouton View Post
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.
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.
Webby_s is offline   Reply With Quote
Old 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
Default

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
This will patch it successfully (I've tested it).
nesl247 is offline   Reply With Quote
Thanked by mamouton, Webby_s
Old 07/23/2009, 12:16 AM   #31 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

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!
Webby_s is offline   Reply With Quote
Old 07/23/2009, 12:32 AM   #32 (permalink)
Member
 
WAMS's Avatar
 
Join Date: Jul 2009
Location: MIDWEST
Posts: 117
Likes Received: 0
Thanks: 5
Thanked 11 Times in 7 Posts
Default

This thread is worthless without a picture........
__________________
The Wams
WAMS is offline   Reply With Quote
Old 07/23/2009, 12:47 AM   #33 (permalink)
Member
 
Webby_s's Avatar
 
Join Date: May 2009
Posts: 284
Likes Received: 0
Thanks: 36
Thanked 22 Times in 17 Posts
Default

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.
Webby_s is offline   Reply With Quote
Old 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
Default

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
I tried Luna stop/restart and even a reboot. I still have the battery icon.

Should i try using the method nesl247 used?
Liberty Rebellion is offline   Reply With Quote
Old 07/23/2009, 02:40 AM   #35 (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

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
Attached Images
File Type: jpg Unknown_2009-23-07_023614.jpg (52.0 KB, 228 views) Email Attachment
mamouton is offline   Reply With Quote
Old 07/23/2009, 02:43 AM   #36 (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

Quote:
Originally Posted by nesl247 View Post
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
This will patch it successfully (I've tested it).
When I tried to use the instructions I kept getting a patch not found error. I just downloaded the file from the site and made the changes manually. Thanks for this, makes seeing battery life much easier now.
mamouton is offline   Reply With Quote
Old 07/23/2009, 02:44 AM   #37 (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

Quote:
Originally Posted by Webby_s View Post
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?
It updates dynamically you don't have to do anything to it. I have watched it charge and discharge with the new mod all night tonight.
mamouton is offline   Reply With Quote
Old 07/23/2009, 02:54 AM   #38 (permalink)
Member
 
MaSwaggSoSiQ's Avatar
 
Join Date: Jun 2009
Posts: 130
Likes Received: 0
Thanks: 1
Thanked 4 Times in 4 Posts
Default

what site do i go to to accomplish this? or do i just use the codes listed above?
MaSwaggSoSiQ is offline   Reply With Quote
Old 07/23/2009, 02:59 AM   #39 (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

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.
mamouton is offline   Reply With Quote
Old 07/23/2009, 06:35 AM   #40 (permalink)
Member
 
Join Date: Jun 2009
Posts: 71
Likes Received: 0
Thanks: 0
Thanked 35 Times in 8 Posts
Default

It really isn't working with wget for you guys? I just tried it twice with no problems.
nesl247 is offline   Reply With Quote
Reply

 

Tags
battery, hack, icon, percentage

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0