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
  #111 (permalink)  
Old 04-26-2011, 06:04 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

I'm trying to stop SCBS by using /dev/null via a terminal emulater. I have set rootfs as writable, but after running the /dev/null code as written above, I get the following error:

Cannot open device: /dev/scbs0

Anyone have a clue on what I should try? THANKS!
Reply With Quote
  #112 (permalink)  
Old 04-26-2011, 06:12 PM
toadlife's Avatar
Lurker
Offline
Pocket PC: T-Mobile Touch Pro 2
Carrier: T-Mobile
Location: Lemoore, CA
 
Join Date: Dec 2008
Posts: 15
Reputation: 15
toadlife is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Quote:
Originally Posted by steveholtam View Post
I'm trying to stop SCBS by using /dev/null via a terminal emulater. I have set rootfs as writable, but after running the /dev/null code as written above, I get the following error:

Cannot open device: /dev/scbs0

Anyone have a clue on what I should try? THANKS!
You are getting that error because scbs is already running. You can't stop scbs once it's running. In order to change the way it logs you have to edit the file /init and reboot the phone.

You should probably just leave things as they are if you don't understand what that means.
__________________
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega
Reply With Quote
This post has been thanked 1 times.
  #113 (permalink)  
Old 04-27-2011, 12:20 AM
manekineko's Avatar
Regular 'Geeker
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jul 2009
Posts: 478
Reputation: 845
manekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

If you just don't want the logs anymore after you've setup SCBS, an easy way is to add a line like this to your conf file at the end:
rm -f /sdcard/scbs.log*
Reply With Quote
  #114 (permalink)  
Old 04-28-2011, 06:30 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

I think I am getting reduced battery life because of the SCBS addition to the kernel. Prior to this, I would get to 5pm or 6pm before getting into the red. Since the new addition, I'm getting to about two hours less battery life.

If I can find the prior kernel, I'm just going to switch back.
Reply With Quote
  #115 (permalink)  
Old 04-28-2011, 07:48 PM
toadlife's Avatar
Lurker
Offline
Pocket PC: T-Mobile Touch Pro 2
Carrier: T-Mobile
Location: Lemoore, CA
 
Join Date: Dec 2008
Posts: 15
Reputation: 15
toadlife is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Quote:
Originally Posted by steveholtam View Post
I think I am getting reduced battery life because of the SCBS addition to the kernel. Prior to this, I would get to 5pm or 6pm before getting into the red. Since the new addition, I'm getting to about two hours less battery life.

If I can find the prior kernel, I'm just going to switch back.
You may want to try just switching to the non-scbs rootfs, as it might be the scbs program (which is in the rootfs) draining your battery and not the kernel changes. I've stopped using scbs myself due to the fact that it seemed to be causing instability in my phone.
Reply With Quote
  #116 (permalink)  
Old 04-28-2011, 09: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 definitely uses power, about 2ma by my measurements. I get about 70 hours on my 210.
__________________
Hmm, Like my work? Don't be shy, donate!.
https://www.paypal.com/cgi-bin/websc...=VZ32N65HCXZBU
Reply With Quote
  #117 (permalink)  
Old 04-29-2011, 12:44 AM
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

Quote:
Originally Posted by jonpry View Post
It definitely uses power, about 2ma by my measurements. I get about 70 hours on my 210.
Is there any way to reduce its activity? When it runs in daemon mode, does it exchange data with the scbs-supported kernel, "telling" it how to manage the battery meter as well as charging?
Reply With Quote
  #118 (permalink)  
Old 04-29-2011, 08:54 AM
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

Not really. The kernel takes battery measurements every 5 seconds, while sleeping or not, and then pipes this data to the daemon which processes the numbers and computes a percentage. The percentage is then sent back to the kernel so it can be presented on the old interface that all htc libhardware's want to use. The measurements have to be fairly often to reduce noise. I really don't see the problem though at 70 hours it is a 10% reduction in life. With more usage, say your only getting 24 hours, its like 3%. At 8 hours its only 1.
Reply With Quote
  #119 (permalink)  
Old 04-29-2011, 05:16 PM
manekineko's Avatar
Regular 'Geeker
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jul 2009
Posts: 478
Reputation: 845
manekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuffmanekineko knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Quote:
Originally Posted by jonpry View Post
Not really. The kernel takes battery measurements every 5 seconds, while sleeping or not, and then pipes this data to the daemon which processes the numbers and computes a percentage. The percentage is then sent back to the kernel so it can be presented on the old interface that all htc libhardware's want to use. The measurements have to be fairly often to reduce noise. I really don't see the problem though at 70 hours it is a 10% reduction in life. With more usage, say your only getting 24 hours, its like 3%. At 8 hours its only 1.
How does the previous battery algorithm XDAndroid has been using avoid draining the battery with its calculations? Presumably, it too had to run fairly frequent calculations in order to have something to display.
Reply With Quote
  #120 (permalink)  
Old 05-12-2011, 06:26 AM
highlandsun's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC G1, TP2
Carrier: T-Mobile
 
Join Date: Jan 2011
Posts: 86
Reputation: 240
highlandsun is keeping up the good workhighlandsun is keeping up the good workhighlandsun is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

The previous algorithm woke up every 10 seconds and re-computed everything.
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:41 PM.


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