View Single Post
  #37 (permalink)  
Old 06-04-2010, 06:43 PM
sovereignty03's Avatar
sovereignty03
Lurker
Offline
 
Join Date: Mar 2009
Posts: 13
Reputation: 50
sovereignty03 is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Battery Meter and Temp reading "Fix" (workaround) (6/4 Update)

Quote:
Originally Posted by Unknownforce View Post
Updated today with a charging meter reading "fix." Same link, see first post for details and explanation.
Hey man, I've been looking into the source, but haven't had time to set my system up to compile and test on my phone. If you don't mind, please try this: Look in htc_battery_smem.c for the line that reads "If ( av_index > 1347 )". Try changing that to "If ( av_index > 1500 )". The next line needs to be changed from "av_index = 1347" to "av_index = 1500". Just see what it does. The Raphael has a 1340mAh battery and the Rhodium has a 1500mAh battery. This is only a start as I see there also needs to be some changes in the scaling. When I have a chance, I am going to try to figure out some of the mV values that need to be put into "GetBatteryDischargeLevel". Just for test on the Rhodium, those values can be changed, but it will break the Raphael side. If the values are found to be good, then there needs to be some other stuff done to add the extra batt_vendor...

I'm gonna try your new stuff ASAP...

EDIT: later realized this is not what av_index is for...

Last edited by sovereignty03; 06-22-2010 at 11:53 AM.
Reply With Quote
This post has been thanked 1 times.