DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: Correct battery life reading, help editing file.

  1. Droid
    terrets's Avatar
    Member #
    144969
    Join Date
    Dec 2010
    Posts
    51
    Phone
    Droid2Global
    #1

    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
  2. Kernel Developer
    prime's Avatar
    Member #
    62737
    Join Date
    Apr 2010
    Location
    Florida
    Posts
    1,829
    Liked
    90 times
    Twitter
    f1vefour
    Phone
    Galaxy Nexus Toro
    DroidForums.net Developer
    Premium Member
    #2
    Quote Originally Posted by terrets View Post
    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
  3. Droid
    terrets's Avatar
    Member #
    144969
    Join Date
    Dec 2010
    Posts
    51
    Phone
    Droid2Global
    #3
    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
  4. Kernel Developer
    prime's Avatar
    Member #
    62737
    Join Date
    Apr 2010
    Location
    Florida
    Posts
    1,829
    Liked
    90 times
    Twitter
    f1vefour
    Phone
    Galaxy Nexus Toro
    DroidForums.net Developer
    Premium Member
    #4
    Quote Originally Posted by terrets View Post
    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.
  5. Droid
    terrets's Avatar
    Member #
    144969
    Join Date
    Dec 2010
    Posts
    51
    Phone
    Droid2Global
    #5
    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");
  6. Kernel Developer
    prime's Avatar
    Member #
    62737
    Join Date
    Apr 2010
    Location
    Florida
    Posts
    1,829
    Liked
    90 times
    Twitter
    f1vefour
    Phone
    Galaxy Nexus Toro
    DroidForums.net Developer
    Premium Member
    #6
    Quote Originally Posted by terrets View Post
    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
  7. Droid
    terrets's Avatar
    Member #
    144969
    Join Date
    Dec 2010
    Posts
    51
    Phone
    Droid2Global
    #7
    . 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
  8. Senior Droid
    grimloktt's Avatar
    Member #
    54481
    Join Date
    Apr 2010
    Posts
    222
    Liked
    1 times
    Phone
    Enter Current Phone Model Here
    #8
    Anyone else?! I know there's an entire crew of Gorilla Gadget 3500 mAh batteries that would like there phone to read/act properly...
  9. Master Droid
    sonicfreak360's Avatar
    Member #
    106453
    Join Date
    Aug 2010
    Posts
    534
    Twitter
    I don't post on twitz
    Phone
    Motorola droid 1
    #9
    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!
  10. Senior Droid
    grimloktt's Avatar
    Member #
    54481
    Join Date
    Apr 2010
    Posts
    222
    Liked
    1 times
    Phone
    Enter Current Phone Model Here
    #10
    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.
Page 1 of 3 123 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. editing a pdf file
    By jcwilliams in forum Off Topic Forum
    Replies: 6
    Last Post: 04-25-2011, 09:46 AM
  2. Editing a MS Word file
    By ukyfan in forum Android Applications
    Replies: 6
    Last Post: 02-14-2011, 03:45 PM
  3. Replies: 6
    Last Post: 11-19-2010, 11:45 AM
  4. battery life reading inaccurate
    By blackhat in forum UltimateDroid
    Replies: 5
    Last Post: 11-04-2010, 03:59 AM
  5. Not displaying correct battery life?
    By ThirdWheel in forum Droid X Tech Support
    Replies: 1
    Last Post: 07-17-2010, 07:20 AM

Search tags for this page

/sys/devices/platform calibrate battery android
,
android battery stats file change
,
battery stats editor android
,
battery stqts file in android
,

charge full design

,
edit android batterystats
,
editing android battery files for extended battery
,
motorola cpcap battery stats
,
motorola dx not reading extended battery correctly
,
my droid doesnt correctly read battery life
Click on a term to search our site for related topics.
Find us on Google+