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)

manekineko 05-12-2011 03:35 PM

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

Originally Posted by highlandsun (Post 2100454)
The previous algorithm woke up every 10 seconds and re-computed everything.

So is the increased battery drain from SCBS just moving from 10 second polling to 5 second or is there more to it?

tovarish 05-14-2011 06:08 AM

Re: [TESTING] SCBS: Improved battery meter system
 
Is there plans of merging the kernel and changes to the autobuild source repository. It would be great to have scbs support with the latest kernel.

highlandsun 05-23-2011 02:20 AM

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

Originally Posted by jonpry (Post 2085852)
The scbs rootfs just includes the scbs binary (/bin/scbs), and there are some trivial changed to the init script that run scbs on startup and also do a better job of creating the camera device nodes. This could in theory be moved to system.img but putting it in rootfs made it easier to distribute.

Fyi, the init.android binary creates the msm_camera nodes based on uevent messages from the kernel. Any mknod commands you put in the /init script are obliterated anyway because init.android creates /dev from scratch.

highlandsun 05-23-2011 02:39 AM

Re: [TESTING] SCBS: Improved battery meter system
 
jonpry: your app is reading Battery Voltage and reporting it as capacity. This fixes it.

Code:

diff --git a/app/src/com/prymfg/babs/HtcBattery.java b/app/src/com/prymfg/babs/HtcBattery.java
index 3a7830f..e6c4acb 100644
--- a/app/src/com/prymfg/babs/HtcBattery.java
+++ b/app/src/com/prymfg/babs/HtcBattery.java
@@ -73,7 +73,7 @@ public class HtcBattery {
        if(real_device)
        {
            try {
-                String str = readFileAsString("/sys/devices/platform/htc_battery/power_supply/
battery/batt_vol");
+                String str = readFileAsString("/sys/devices/platform/htc_battery/power_supply/
battery/capacity");
                return str.substring(0,str.length()-1) + "%";
            } catch (IOException e) {
                return "busted";

(I've also fixed this in your kernel code so that it doesn't highjack the batt_vol reading with capacity any more, since it's already reporting capacity in the capacity node where it belonged... http://lists.xdandroid.com/pipermail...ay/000272.html)

mzel 10-28-2011 05:59 PM

Re: [TESTING] SCBS: Improved battery meter system
 
Is this needed in FRX071?

arrrghhh 10-28-2011 06:23 PM

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

Originally Posted by mzel (Post 2152950)
Is this needed in FRX071?

I don't know what you mean by "needed".

If you mean "included", then no unfortunately it is not. It's immensely helpful, but unfortunately the code never made it mainline.

mzel 10-31-2011 10:48 AM

Re: [TESTING] SCBS: Improved battery meter system
 
ok, thanks. Yes, that's what I meant

mzel 11-20-2011 11:16 PM

Re: [TESTING] SCBS: Improved battery meter system
 
are the files in links above compatible with the later build FRX071? Will replacing the zImage and rootfs provided with 7.1 affect stability or features of the system?

arrrghhh 11-20-2011 11:39 PM

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

Originally Posted by mzel (Post 2156620)
are the files in links above compatible with the later build FRX071? Will replacing the zImage and rootfs provided with 7.1 affect stability or features of the system?

Probably. Run at your own risk... Unfortunately this stuff is pretty outdated, so you'd be taking a step forward with battery and a step back with everything else.


All times are GMT -4. The time now is 05:04 AM.

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


Content Relevant URLs by vBSEO 3.6.0