Originally Posted by theloginwithnoname
I'd be amazed if there were vast differences between them - there's no reason why you couldn't work out the registers for your battery and add in the various functions (as we did) into the kernel code that return the values in those registers, which would make it compatible with (and therefore you could use) this tool.
What kernel are you running BTW?
Hi, thanks for answering my quest. Very true that there should be no reason to not be able to make a tool work with the battery on DHD, given the info. and source code available here. But I'm no kernel hacker, and the last time I touched anything UNIX/Linux related was over 10 years ago. It's just natural laziness to ask first in the hope that something might be available already.
I'm running an older (3.4) version of Leedroid kernel, and I've switched between 3.4 and 4.0. 3.4 seems to be a little more power conserving: I normally get -1ma with standby in flight mode.
---------- Post added at 01:09 AM ---------- Previous post was at 01:07 AM ----------
Originally Posted by RogerPodacter
Yes i looked at drivers for the ds2746, but these tools wont work unless you modify the driver. Also look at the ds2746 data sheet cause its a little different than the ds2784. Would be a great project.
Howdy noname, yeah i'm trying to remember details but its been so long. Remember all those pdfs we found? Well some of those were for ds2746 showing all the registers and calculations. So its def possible. A DHD owner would need to edit their driver and test on their device. Then we could even update the app in this thread to work for both drivers. All the code is still up on github for anyone to use. This was a great project.
Thank you for answering my quest as well.
I don't know how to edit the driver. If you want to make this tool work with ds2746, and I can get help to jump-start the kernel and battery driver side, I'd be more than happy to work with you and test on DHD.
Yesterday I experienced something very strange: my DHD was on standby for 7+hours, and the power stayed at 8% (3723mv) for that entire period. Normally with an already very power-saving Leedroid kernel, it would consume ~1% every two hours or so on standby. After I resumed the DHD and used it for over an hour, it finally shut down itself. But when I recharged it, it's almost full and reached 4209mv when the battery meter showed the battery was 80% full, and it then jumped to 100% (4211mv) in 10 minutes. This happened after I booted into recovery and let the device shut down by itself after it had automatically shut down on 0% battery on a regular run, and then I plug in the cable for a full charge. (I did check the battery, and it was about 3500mv when it rebooted from the discharge in recovery.) But when it's fully charged again, I didn't do a battery stats wipe. Looks like I managed to lower the lower boundary (used to be well above 3600mv at 0%), but the higher boundary/percentage got messed up (now 4209mv for 80%).
I don't know if it's just an aged battery or I really need a battery calibration tool like the one this thread offers. I'll do another full charge+battery stats wipe to see how it goes.