|
||||
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.
|
|
||||
Re: [TESTING] SCBS: Improved battery meter system
Quote:
|
|
||||
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"; Last edited by highlandsun; 05-23-2011 at 02:42 AM. |
This post has been thanked 2 times. |
|
||||
Re: [TESTING] SCBS: Improved battery meter system
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. |
|
||||
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?
|
|
||||
Re: [TESTING] SCBS: Improved battery meter 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.
|
|
Tags |
battery, tp2 |
|
|