1% battery increments for sholes


Yes, you read that right, but before you get all excited, let me give some background on what's going on here.

A few days ago, I received a query about whether or not 1% battery percentages would be possible on sholes, after this little gem was posted on XDA. That particular post covers getting 1% battery percentages working on the Milestone.

For those of you who aren't familiar with the Milestone, it is essentially sholes, except that it is designed for GSM networks instead of CDMA networks. It is also locked down in a similar fashion to the DX. Milestone and sholes have nearly identical hardware, so I decided to look into the feasibility of getting the 1% battery percentages ported over to sholes.

The problem is that Milestone supports a property, /sys/class/power_supply/battery/charge_counter, which is the 1% counter for the battery. This value is not present on sholes. I took the kernel code from the milestone for that particular property and ported it to sholes, but sadly it did not give the desired result.

Presently charge_counter on sholes just outputs -1382352 (or some such number), which implies that I'm having some sort of memory copy error somewhere. I'm still looking into it, but it may be that the CPCAP driver in sholes actually is different from milestone, or has that feature disabled.

Something is missing as when the droid2/milestone2/droidx battd starts up, it spits out “BATTD: INIT Power IC Fail”, so I need to figure out what that means.

The point is, that it's likely just something I'm missing in the kernel that still needs to be ported over. I'll keep digging around.


1% battery percentages MAY be possible in sholes

ported the milestone cpcap battery driver over to sholes

still having some issues, will continue to look into it


blog/2011-06-01/1_battery_increments_for_sholes.txt · Last modified: 2014/05/13 12:36 (external edit)

Hosted on Microsoft Azure Powered by PHP Driven by DokuWiki RSS Feed

© 2011 Austen Dicken | cvpcs.org