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
  #1 (permalink)  
Old 01-17-2012, 12:42 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by vzihome View Post
Muziling had mentioned to ACL about a battery hack he found, ACL said that he would release it on next build don't know if he did on this build...correct me if I'm wrong!

Sent from my Touch Pro 2 using Tapatalk
Ahh, you are correct. Well the hack was to avoid these nasty div by 0 we used to get in the logs.

Code:
diff --git a/arch/arm/mach-msm/htc_battery_smem.c b/arch/arm/mach-msm/htc_battery_smem.c
index 1d9e750..7967b28 100644
--- a/arch/arm/mach-msm/htc_battery_smem.c
+++ b/arch/arm/mach-msm/htc_battery_smem.c
@@ -1371,7 +1371,12 @@ static int htc_rhod_batt_corr( struct battery_info_reply *buffer )
        
         /* TODO: temp algo is not ok..if someone have the timte -> must look into the driver */
        buffer->batt_tempRAW = ( buffer->batt_tempRAW * 5200 ) / htc_adc_range;
-       av_index = ( buffer->batt_tempRAW * 18 ) / ( 2600 - buffer->batt_tempRAW );
+       /* HACK: This is a giant hack since if batt_tempRAW = 2600 we get a div by 0 */
+       if (buffer->batt_tempRAW < 2600) {
+               av_index = ( buffer->batt_tempRAW * 18 ) / ( 2600 - buffer->batt_tempRAW );
+       } else { 
+               av_index =1347;
+       }
        buffer->batt_tempRAW = htc_battery_temperature_lut( av_index );
        if ( buffer->batt_tempRAW < 250 ) /* fixed til so long we can get constant values - otherwise the algo wouln'T work good */
                buffer->batt_tempRAW = 250;
I'll prioritise this if everyone is getting less and less batt time now.
__________________
Reply With Quote
This post has been thanked 2 times.
  #2 (permalink)  
Old 01-17-2012, 01:02 AM
anish88's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2: NAND OMGB
Carrier: Sprint
Location: Chicago
 
Join Date: Dec 2008
Posts: 115
Reputation: 35
anish88 is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by [ACL] View Post
Ahh, you are correct. Well the hack was to avoid these nasty div by 0 we used to get in the logs.

Code:
diff --git a/arch/arm/mach-msm/htc_battery_smem.c b/arch/arm/mach-msm/htc_battery_smem.c
index 1d9e750..7967b28 100644
--- a/arch/arm/mach-msm/htc_battery_smem.c
+++ b/arch/arm/mach-msm/htc_battery_smem.c
@@ -1371,7 +1371,12 @@ static int htc_rhod_batt_corr( struct battery_info_reply *buffer )
        
         /* TODO: temp algo is not ok..if someone have the timte -> must look into the driver */
        buffer->batt_tempRAW = ( buffer->batt_tempRAW * 5200 ) / htc_adc_range;
-       av_index = ( buffer->batt_tempRAW * 18 ) / ( 2600 - buffer->batt_tempRAW );
+       /* HACK: This is a giant hack since if batt_tempRAW = 2600 we get a div by 0 */
+       if (buffer->batt_tempRAW < 2600) {
+               av_index = ( buffer->batt_tempRAW * 18 ) / ( 2600 - buffer->batt_tempRAW );
+       } else { 
+               av_index =1347;
+       }
        buffer->batt_tempRAW = htc_battery_temperature_lut( av_index );
        if ( buffer->batt_tempRAW < 250 ) /* fixed til so long we can get constant values - otherwise the algo wouln'T work good */
                buffer->batt_tempRAW = 250;
I'll prioritise this if everyone is getting less and less batt time now.
I'd be interested for sure. I have never gotten good battery life.
Reply With Quote
  #3 (permalink)  
Old 01-17-2012, 01:07 AM
sykosoft's Avatar
PPCGeeks Regular
Offline
Pocket PC: Touch Pro
Carrier: Sprint
 
Join Date: May 2007
Posts: 92
Reputation: 11
sykosoft is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

In reviewing the last several pages of posts, did I miss the release notes for the 01/16/12 release?

Michael
Reply With Quote
  #4 (permalink)  
Old 01-17-2012, 01:08 AM
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] - NAND OMGB (1.2.3)

Quote:
Originally Posted by sykosoft View Post
In reviewing the last several pages of posts, did I miss the release notes for the 01/16/12 release?

Michael
Yes..

http://forum.ppcgeeks.com/2164598-post993.html
Reply With Quote
  #5 (permalink)  
Old 01-17-2012, 03:05 AM
sykosoft's Avatar
PPCGeeks Regular
Offline
Pocket PC: Touch Pro
Carrier: Sprint
 
Join Date: May 2007
Posts: 92
Reputation: 11
sykosoft is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by arrrghhh View Post
Thank you, I had indeed missed that.

Michael
Reply With Quote
  #6 (permalink)  
Old 01-17-2012, 01:05 AM
mbellot's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: Boost
 
Join Date: Jul 2010
Posts: 156
Reputation: 135
mbellot is keeping up the good workmbellot is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by [ACL] View Post
I'll prioritise this if everyone is getting less and less batt time now.
I'll let you know tomorrow, I'm running my two-fer battery calibration now ("Battery Calibration" and "Battery Left").

Last time I ran it I was going 38 hours before the battery cried uncle.

I've pushed gps from 1.2.2 into this build but have it turned off for now. Once things appear stable I'll start mucking around with it again.

Updated the keymaps to get long press recent apps. Still need to try updating the APN to see if Boost MMS will work.

I'm hoping LK doesn't need another update for a while, repeating today's pain is not high on my list of fun things to do.
Reply With Quote
  #7 (permalink)  
Old 01-23-2012, 07:51 PM
milda25's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2 (Rhod100)
Carrier: O2-CZ
Location: Czech Republic
 
Join Date: Dec 2011
Posts: 79
Reputation: 5
milda25 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by [ACL] View Post
Ahh, you are correct. Well the hack was to avoid these nasty div by 0 we used to get in the logs.

Code:
diff --git a/arch/arm/mach-msm/htc_battery_smem.c b/arch/arm/mach-msm/htc_battery_smem.c
index 1d9e750..7967b28 100644
--- a/arch/arm/mach-msm/htc_battery_smem.c
+++ b/arch/arm/mach-msm/htc_battery_smem.c
@@ -1371,7 +1371,12 @@ static int htc_rhod_batt_corr( struct battery_info_reply *buffer )
        
         /* TODO: temp algo is not ok..if someone have the timte -> must look into the driver */
        buffer->batt_tempRAW = ( buffer->batt_tempRAW * 5200 ) / htc_adc_range;
-       av_index = ( buffer->batt_tempRAW * 18 ) / ( 2600 - buffer->batt_tempRAW );
+       /* HACK: This is a giant hack since if batt_tempRAW = 2600 we get a div by 0 */
+       if (buffer->batt_tempRAW < 2600) {
+               av_index = ( buffer->batt_tempRAW * 18 ) / ( 2600 - buffer->batt_tempRAW );
+       } else { 
+               av_index =1347;
+       }
        buffer->batt_tempRAW = htc_battery_temperature_lut( av_index );
        if ( buffer->batt_tempRAW < 250 ) /* fixed til so long we can get constant values - otherwise the algo wouln'T work good */
                buffer->batt_tempRAW = 250;
I'll prioritise this if everyone is getting less and less batt time now.
Arrrggghh, I wrote about this post (concerning battery life). BTW: what about your battery life? Am I alone with this problem or has someone same problem?
And about GPS - my GPS doesn't see satelites. I tested it in Google Maps and Sygic. GPS finding, but with no success (no signal from universe ) Tried stock radio 4.49.25.91 and latest 4.49.25.95. Is this problem in my hand or is there any bug? Of course, zip from ACL released a few days ago I have installed.
Reply With Quote
  #8 (permalink)  
Old 01-23-2012, 08:28 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] - NAND OMGB (1.2.3)

Quote:
Originally Posted by milda25 View Post
Arrrggghh, I wrote about this post (concerning battery life). BTW: what about your battery life? Am I alone with this problem or has someone same problem?
And about GPS - my GPS doesn't see satelites. I tested it in Google Maps and Sygic. GPS finding, but with no success (no signal from universe ) Tried stock radio 4.49.25.91 and latest 4.49.25.95. Is this problem in my hand or is there any bug? Of course, zip from ACL released a few days ago I have installed.
Battery life - not so good compared to HaRET. ACL's post does seem to indicate that it would effect battery life - so perhaps I have misunderstood. Wouldn't be the first time .

I'll have to play with GPS more. I thought it worked, but I guess I've never tried to get a lock on OMGB - I was recalling my testing with GBX0B. Sorry for the mixup. I'm trying GPS inside right now, so far no luck - but that usually doesn't work unless I do QuickGPS in WinMo first, which isn't an option here .
Reply With Quote
  #9 (permalink)  
Old 01-24-2012, 01:08 AM
mbellot's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: Boost
 
Join Date: Jul 2010
Posts: 156
Reputation: 135
mbellot is keeping up the good workmbellot is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by arrrghhh View Post
Battery life - not so good compared to HaRET. ACL's post does seem to indicate that it would effect battery life - so perhaps I have misunderstood. Wouldn't be the first time .
I'm getting 24+ hours of light use with OMGB. Not quite as good as FRX07.1, but darn close.

Quote:
Originally Posted by arrrghhh View Post
I'll have to play with GPS more. I thought it worked, but I guess I've never tried to get a lock on OMGB - I was recalling my testing with GBX0B. Sorry for the mixup. I'm trying GPS inside right now, so far no luck - but that usually doesn't work unless I do QuickGPS in WinMo first, which isn't an option here .
GPS worked on the previous OMGB (12-21 + acoustic) when I added the 1.2.2 gps.rhodium.so library into the build. Lock was not super fast, but not bad.

It never locked on a location inside for me. I don't ever remember being able to get a GPS lock indoors with WinMo, so I'm guessing it's a hardware limitation.

One problem I saw (more inferred) was that the GPS wasn't being fully turned off because battery life would go to he!! until I rebooted.

It was also fairly certain to get a hard lock-up (requiring reset button) if I was actively using the GPS for more than 20-30 minutes (Maps while driving, c:geo for geocaching, etc).
Reply With Quote
  #10 (permalink)  
Old 01-24-2012, 01:46 AM
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] - NAND OMGB (1.2.3)

Quote:
Originally Posted by mbellot View Post
I'm getting 24+ hours of light use with OMGB. Not quite as good as FRX07.1, but darn close.
My battery could be close to death, but I don't get nearly that...

Quote:
Originally Posted by mbellot View Post
GPS worked on the previous OMGB (12-21 + acoustic) when I added the 1.2.2 gps.rhodium.so library into the build. Lock was not super fast, but not bad.

It never locked on a location inside for me. I don't ever remember being able to get a GPS lock indoors with WinMo, so I'm guessing it's a hardware limitation.

One problem I saw (more inferred) was that the GPS wasn't being fully turned off because battery life would go to he!! until I rebooted.

It was also fairly certain to get a hard lock-up (requiring reset button) if I was actively using the GPS for more than 20-30 minutes (Maps while driving, c:geo for geocaching, etc).
Well it definitely worked with the flashed zip. Took a little while to lock, and certainly did take going outside. For the record mbellot, I have definitely gotten locks inside - but again, only after using QuickGPS. With no assistance, the radio takes quite a long time to get a fix.

The other bugs you mention are pretty much status quo - although GPS doesn't seem to kill sleep, you think it still does despite the indicator going green? I haven't had a problem with the phone sleeping, but I haven't used GPS a whole lot. Just got a speedo app to see how accurate my speedo is in my truck on the way home from work... worked great! I don't think I used it for even 20 minutes.... maybe 10. That lockup bug sounds like the same thing that happens in HaRET... Not sure anyone has even captured logs from such a crash.
Reply With Quote
Reply

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


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 09:41 PM.


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