Correct battery life reading, help editing file.
This is a discussion on Correct battery life reading, help editing file. within the Droid Development forums, part of the Droid Hacking category; Not sure if this is a good place for this, if not, please move.
Anyways, I got an extended battery and I am currently trying ...
-
Correct battery life reading, help editing file.
Not sure if this is a good place for this, if not, please move.
Anyways, I got an extended battery and I am currently trying to edit sys/devices/platform/cpcap_battery/power_supply/battery/charge_full_design so that the phone will read the battery life correctly. Well Ive tried changing the permissions and using vi to edit but vi refuses to save. When I try writing, it just doesnt do anything. Ive tried using ghost commander as root and it says the file is uneditable even with permission set to rw for everyone. If someone could help me out, that would be great. Or if you have a different way to fix the battery life reading, thatd be great. Thanks for the help. 
Sent from my DROID2 GLOBAL using DroidForums App
-
-

Originally Posted by
terrets
Not sure if this is a good place for this, if not, please move.
Anyways, I got an extended battery and I am currently trying to edit sys/devices/platform/cpcap_battery/power_supply/battery/charge_full_design so that the phone will read the battery life correctly. Well Ive tried changing the permissions and using vi to edit but vi refuses to save. When I try writing, it just doesnt do anything. Ive tried using ghost commander as root and it says the file is uneditable even with permission set to rw for everyone. If someone could help me out, that would be great. Or if you have a different way to fix the battery life reading, thatd be great. Thanks for the help.
Sent from my DROID2 GLOBAL using DroidForums App
In a terminal do this (replace mA with correct number):
Code:
su
echo mA > /sys/devices/platform/cpcap_battery/power_supply/battery/charge_full_design
-
Tried it with vi.. Also tried from the pc, and copying a file to replace that one. Yes i had permissions correct. Its totally locked out. I think it has to be flashed with an update.zip but im not entirely surebhow to do that.
Sent from my DROID2 GLOBAL using DroidForums App
-

Originally Posted by
terrets
Tried it with vi.. Also tried from the pc, and copying a file to replace that one. Yes i had permissions correct. Its totally locked out. I think it has to be flashed with an update.zip but im not entirely surebhow to do that.
Sent from my DROID2 GLOBAL using DroidForums App
You have to install the terminal application on your phone and enter the commands I gave.
-
Dude. I have a terminal emulator, how do you think I tried changing it with vi? I changed permissions and tried using echo. Does not work. I think these files are locked out some how.
I also tried sed in terminal.
I even tried using a .zip file and installing via clockwork. My lines in the script was:
set_perm(0,0,0755,"/sys/devices/platform/cpcap_battery/power_supply/battery");
set_perm(0,0,0755,"/sys/devices/platform/cpcap_battery/power_supply/battery/charge_full_design");
run_program("/sbin/busybox", "sh", "sed -i 's/1390/3500/g' /sys/devices/platform/cpcap_battery/power_supply/battery/charge_full_design");
run_program("/sbin/busybox", "sh", "cat /sys/devices/platform/cpcap_battery/power_supply/battery/charge_full_design");
-

Originally Posted by
terrets
Dude. I have a terminal emulator, how do you think I tried changing it with vi?
ADB, SSH...I don't know your skillset buddy ;-)
You will likely have to use the init.rc
-
. Thanks for trying to help but Ill have to put this on hold for a week :/. Maybe someone else will figure it out in that time frame.
Sent from my DROID2 GLOBAL using DroidForums App
-
Anyone else?! I know there's an entire crew of Gorilla Gadget 3500 mAh batteries that would like there phone to read/act properly...
-
Out of pure curiosity, can you wipe battery stats and have it learn to your new battery? Because I am thinking about getting the same battery as you, and i don't want to run into problems like misreading!
-
I don't think that'd make a difference. There's the folder the poster mentioned above that specifically states the size of the battery. I think we really need someone smarter than me to figure out how to change it and keep the system from changing it back.
I tried using root explorer, changing rights to read/write, and saving/exiting. No luck...system changes it back.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By jcwilliams in forum Off Topic Forum
Replies: 6
Last Post: 04-25-2011, 09:46 AM
-
By ukyfan in forum Droid Applications
Replies: 6
Last Post: 02-14-2011, 03:45 PM
-
By eg146 in forum Droid 2 General Discussions
Replies: 6
Last Post: 11-19-2010, 11:45 AM
-
By blackhat in forum UltimateDroid
Replies: 5
Last Post: 11-04-2010, 03:59 AM
-
By ThirdWheel in forum Droid X Tech Support
Replies: 1
Last Post: 07-17-2010, 07:20 AM
Search tags for this page
android battery stats file change
,
android edit battery stats
,
battery not reading correct droid x
,
charge full design 0
,
droid 1 extended battery monitor
,
droid battery bp7x meter
,
droid bp7x battery monitor
,
droid x not reading battery life correctly
,
editing android battery files
,
editing android battery files for extended battery
,
flashing charge full design
,
how to correct battery reading bionic
,
how to fix thunderbolt not reading battery correctly
,
motorola dx not reading extended battery correctly
,
thunderbolt not reading battery charge correctly
Click on a term to search our site for related topics.