PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-06-2011, 04:06 PM
jonpry's Avatar
PPCGeeks Regular
Offline
Pocket PC: rhodium
Carrier: tmobile
 
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.
  #2 (permalink)  
Old 04-06-2011, 04:08 PM
arrrghhh's Avatar
Testing Extraordinaire
Offline
Pocket PC: HTC Touch Pro 2 (RHOD400)
Carrier: Sprint
 
Join Date: Mar 2007
Posts: 3,604
Reputation: 7360
arrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the community
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

I was hopin this would make it to the outside world soon!

Great job .
Reply With Quote
  #3 (permalink)  
Old 04-06-2011, 04:30 PM
ndno's Avatar
VIP Member
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jan 2010
Posts: 421
Reputation: 3570
ndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Thanks!!! Was waiting something like this for a long time. Wow, too many things to test at once.

Last edited by ndno; 04-06-2011 at 04:32 PM.
Reply With Quote
  #4 (permalink)  
Old 04-06-2011, 04:41 PM
r^7z's Avatar
Lurker
Offline
Pocket PC: Fuze
Carrier: at&t
Location: somewhere in the vast array of question marks
 
Join Date: Dec 2009
Posts: 20
Reputation: 20
r^7z is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via Yahoo to r^7z
Re: [TESTING] SCBS: Improved battery meter system

Would this only apply to/work with the TP2 or should this also work with the TP?
Reply With Quote
  #5 (permalink)  
Old 04-06-2011, 04:48 PM
steveholtam's Avatar
Regular 'Geeker
Offline
Pocket PC: Touch Pro
Carrier: Sprint
 
Join Date: Aug 2008
Posts: 261
Reputation: 145
steveholtam is keeping up the good worksteveholtam is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Awesome work guys. I'll share my results in a few days!
Reply With Quote
  #6 (permalink)  
Old 04-06-2011, 04:48 PM
jonpry's Avatar
PPCGeeks Regular
Offline
Pocket PC: rhodium
Carrier: tmobile
Threadstarter
 
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)
Re: [TESTING] SCBS: Improved battery meter system

It probably can work, but there are at least 2 numbers that have to be calculated for each device. The process for that is pretty straightforward. There is one person trying to get it to work on Topaz right now, and there are some difficulties getting measurements in a suitable format.

I can get you the instructions, but if it doesn't work the first try it probably will involve getting help from one of the kernel devs with a raph.
Reply With Quote
This post has been thanked 1 times.
  #7 (permalink)  
Old 04-06-2011, 04:56 PM
ndno's Avatar
VIP Member
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jan 2010
Posts: 421
Reputation: 3570
ndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

jonpry, I use a couple batteries so I assume the "model" is learning about a specific battery, correct? So it won't be the same for the two batteries, correct? I'll just use my "newer" battery.
Reply With Quote
  #8 (permalink)  
Old 04-06-2011, 04:58 PM
jonpry's Avatar
PPCGeeks Regular
Offline
Pocket PC: rhodium
Carrier: tmobile
Threadstarter
 
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)
Re: [TESTING] SCBS: Improved battery meter system

That's correct ndno. Eventually I want to try and identify the battery that is installed, so you can have a model for each of them.
Reply With Quote
This post has been thanked 1 times.
  #9 (permalink)  
Old 04-06-2011, 05:01 PM
r^7z's Avatar
Lurker
Offline
Pocket PC: Fuze
Carrier: at&t
Location: somewhere in the vast array of question marks
 
Join Date: Dec 2009
Posts: 20
Reputation: 20
r^7z is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via Yahoo to r^7z
Re: [TESTING] SCBS: Improved battery meter system

+1 on fav thread
Will check it out and post back if additional instruction is needed
Reply With Quote
  #10 (permalink)  
Old 04-07-2011, 03:23 PM
ndno's Avatar
VIP Member
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jan 2010
Posts: 421
Reputation: 3570
ndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Jonpry, how many charge/discharge cycles do you recommend to get an accurate model? I'm on my 3rd cycle now since using your files. Should this be run at stock speed or does it not matter? Thanks!

Sent from my FRX06-ized TP2 using Tapatalk
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development

Tags
battery, tp2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 03:23 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com