PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 Development (http://forum.ppcgeeks.com/forumdisplay.php?f=319)
-   -   [TESTING] SCBS: Improved battery meter system (http://forum.ppcgeeks.com/showthread.php?t=142555)

steveholtam 04-26-2011 06:04 PM

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!

toadlife 04-26-2011 06:12 PM

Re: [TESTING] SCBS: Improved battery meter system
 
Quote:

Originally Posted by steveholtam (Post 2091650)
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.

manekineko 04-27-2011 12:20 AM

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*

steveholtam 04-28-2011 06:30 PM

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.

toadlife 04-28-2011 07:48 PM

Re: [TESTING] SCBS: Improved battery meter system
 
Quote:

Originally Posted by steveholtam (Post 2093150)
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.

jonpry 04-28-2011 09:48 PM

Re: [TESTING] SCBS: Improved battery meter system
 
It definitely uses power, about 2ma by my measurements. I get about 70 hours on my 210.

ndno 04-29-2011 12:44 AM

Re: [TESTING] SCBS: Improved battery meter system
 
Quote:

Originally Posted by jonpry (Post 2093289)
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?

jonpry 04-29-2011 08:54 AM

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.

manekineko 04-29-2011 05:16 PM

Re: [TESTING] SCBS: Improved battery meter system
 
Quote:

Originally Posted by jonpry (Post 2093509)
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.

highlandsun 05-12-2011 06:26 AM

Re: [TESTING] SCBS: Improved battery meter system
 
The previous algorithm woke up every 10 seconds and re-computed everything.


All times are GMT -4. The time now is 07:49 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0