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

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #121 (permalink)  
Old 05-12-2011, 03:35 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 highlandsun View Post
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?
Reply With Quote
  #122 (permalink)  
Old 05-14-2011, 06:08 AM
tovarish's Avatar
Lurker
Offline
Pocket PC: HTC Touch Pro 2
Carrier: T-Mobile
 
Join Date: Jul 2009
Posts: 1
Reputation: 0
tovarish is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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.
Reply With Quote
  #123 (permalink)  
Old 05-23-2011, 02:20 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

Quote:
Originally Posted by jonpry View Post
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.
Reply With Quote
  #124 (permalink)  
Old 05-23-2011, 02:39 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

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)

Last edited by highlandsun; 05-23-2011 at 02:42 AM.
Reply With Quote
This post has been thanked 2 times.
  #125 (permalink)  
Old 10-28-2011, 05:59 PM
mzel's Avatar
N00b
Offline
Pocket PC: HTC TP2
Carrier: Sprint
 
Join Date: Jun 2011
Posts: 35
Reputation: 5
mzel is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

Is this needed in FRX071?
Reply With Quote
  #126 (permalink)  
Old 10-28-2011, 06:23 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

Quote:
Originally Posted by mzel View Post
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.
Reply With Quote
  #127 (permalink)  
Old 10-31-2011, 10:48 AM
mzel's Avatar
N00b
Offline
Pocket PC: HTC TP2
Carrier: Sprint
 
Join Date: Jun 2011
Posts: 35
Reputation: 5
mzel is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] SCBS: Improved battery meter system

ok, thanks. Yes, that's what I meant
Reply With Quote
  #128 (permalink)  
Old 11-20-2011, 11:16 PM
mzel's Avatar
N00b
Offline
Pocket PC: HTC TP2
Carrier: Sprint
 
Join Date: Jun 2011
Posts: 35
Reputation: 5
mzel is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
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?
Reply With Quote
  #129 (permalink)  
Old 11-20-2011, 11:39 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

Quote:
Originally Posted by mzel View Post
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.
Reply With Quote
Reply

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

Tags
battery, tp2

Thread Tools
Display Modes

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 10:18 PM.


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