View Single Post
  #1 (permalink)  
Old 04-06-2011, 04:06 PM
jonpry's Avatar
jonpry
PPCGeeks Regular
Offline
 
Join Date: Apr 2010
Posts: 70
Reputation: 715
jonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuffjonpry knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
[TESTING] SCBS: Improved battery meter system

Intro:

Hopefully this stuff will fix your battery woes once and for all. You will need to download and install 4 files. Kernel, modules, rootfs, and an APK. The kernel is an up to date Wistilt2 esque contraption that should support camera and all the latest goodies but no bluetooth support as that seems to interact badly with this setup.

Edit: Now that Wistilt2's kernel pack includes SCBS support you can choose to use his kernel pack. In that case only download the rootfs and BABS.apk. You do not need the kernel or modules.

Instructions:

1. Download the 4 files from the links at the bottom on this post.
2. Copy zImage, modules******.tar.gz, and rootfs.img to the andboot folder of your sd card.
3. Edit STARTUP.TXT and make sure pm.sleep_mode=1 is in there.
4. Boot android
5. Use whatever method you like to install BABS.apk. I use "adb install BABS.apk" from the command line.
6. While should notice improvements right away, SCBS will need to generate a model of your particular battery for maximum correctness. Charge your phone all the way up, and then discharge it to at least 20% with a mixture of sleep and heavy use. Then charge it up again. The more varied use and charge your log has, over a wider range of charge, the better the model will turn out.

Edit: I believe that you will need many hours of sleep, not necessarily all at once for it to work right. Say 8 for now.

7. Open up the Ba Tree App, go to analyze logs. Select the file that represents your charge/discharge data from step 6. If you have not rebooted, this will simply be SCBS.log.
8. Select analyze now. This will use lots of power so have it plugged in, and it won't process while sleeping, so either wake it up periodically until its done, or set the timer. When the process is completed it will show you the model on the screen and ask if you would like to use it.

This is an example from my phone:

cc=0.278898
cb=145.042435
rc=0.663357
re=0.150437
vf=1.098000
cf=0.312500
lr=0.000001
sl=36.714553
se=0.007000

Make sure that your numbers are sort of like this. If they are not, please post your result and log file used to generate it. The result is found in /sdcard/scbs.conf.temp.

If you like the model, then hit yes and enjoy your new meter.

Comments:

There are a couple of constants we are using that just don't appear the same on different models of TP2. Some adjustment of those may be necessary as data is gathered.

Credits:

Jonpry for lots of stuff. Wistilt2 for writing some early kernel mode drivers and doing lots of testing and log generating. Arrrghhh and rpierce99 for testing and log data.

Links:

http://www.prymfg.com/kernel/zImage
http://www.prymfg.com/kernel/modules...3-dirty.tar.gz
http://www.prymfg.com/kernel/rootfs.img
http://www.prymfg.com/kernel/BABS.apk
__________________
Hmm, Like my work? Don't be shy, donate!.
https://www.paypal.com/cgi-bin/websc...=VZ32N65HCXZBU

Last edited by jonpry; 04-15-2011 at 07:33 PM.
Reply With Quote
This post has been thanked 17 times.