![]() |
Re: Battery depletion on reboot
there are a number of threads (just check the tag for battery and battery drain) that discuss this issue. a reboot on diablo will burn up about a full days worth of juice (normally the tablet burns about .5%/hour which translates to about 10-15% battery loss due to rebooting which is why it is suggested not to reboot your tablet. it is more power efficient going to sleep than to turn off.
I recently had an issue where i thought there was a firmware problem with the battery level. it turned out to be a bad battery (mine was 13 months old) |
Re: Battery depletion on reboot
Quote:
|
Re: Battery depletion on reboot
Quote:
That is cool though, it at least seems to draw the data directly from the hardware (the "retu", I think). My C/C++ skills are very weak, but maybe I can modify the source and add some sort of algorithm to more accurately predict battery level. Or maybe not :) |
Re: Battery depletion on reboot
I also wrote a simple program: See retu-adc.c (or retu-adc for the binary) here:http://my.arava.co.il/~matan/770/
Run retu-adc to read all ADCs, or retu-adc 8 9 to read the battery voltage only. To get a reasonable battery level, you need to take into account the temperature, charging status, and current draw, if it is also available somehow. |
Re: Battery depletion on reboot
Quote:
To find such an algorithm I suggest log values from full battery to empty on a few usage profiles: - low power draw: standby, not connected - medium power draw: low CPU usage, screen on low brightness. - high power draw: play a movie that takes 100% cpu in a loop over WiFi with maximum brightness and GPS on. Try to find an algorithm that fits all those logs. Just a small note: /tmp will not survive a reboot, it is on tmpfs. |
Re: Battery depletion on reboot
Matan, I'm a little confused. When I run your program, I just get this:
Code:
~/scripts $ ./retu-adc |
Re: Battery depletion on reboot
I did not expect it, but it is a permission problem. Either run it as root, or run (once every boot)
chmod a+x /dev/retu |
Re: Battery depletion on reboot
Matan, could you please change the output of retu-adc to decimal instead of hex?
I would do it myself, but, again, my C skills are lacking :( |
Re: Battery depletion on reboot
Quote:
Code:
for(i=s;i<e;i++) { Code:
for(i=s;i<e;i++) { |
Re: Battery depletion on reboot
|
All times are GMT. The time now is 19:35. |
vBulletin® Version 3.8.8