View Single Post
Posts: 164 | Thanked: 18 times | Joined on Dec 2007
#3
Originally Posted by ag2 View Post
I wrote a small app to display the remaining battery charge.

[user@nokia ~]$ battery-status
[Dec 29 22:57] 97.6%

There is also a mode for monitoring battery charge over time, switched on with the -d N flag. The command

battery-status -d 10 > /media/mmc1/battery.log &

logs the battery state to a media card every 10 minutes. This can be useful for rundown tests, i.e. running the monitor from a full charge until the device shuts off. My N810 can run maemo mapper with GPS, WiFi, and Bluetooth on, and the screen off, for nearly 11 hours:

[user@nokia ~/apps]$ tail -f /media/mmc1/battery.log
----------------------
[Dec 29 23:02][00:00] 97.6%
[Dec 29 23:12][00:10] 96.0%
[Dec 29 23:22][00:20] 94.8%
[Dec 29 23:32][00:30] 93.2%
[Dec 29 23:42][00:40] 91.6%
[Dec 29 23:52][00:50] 90.0%
....
[Dec 30 08:42][09:40] 7.2%
[Dec 30 08:52][09:50] 5.6%
[Dec 30 09:02][10:00] 4.0%
[Dec 30 09:12][10:10] 2.4%
[Dec 30 09:22][10:20] 0.4%
[Dec 30 09:32][10:30] 0.0%
[Dec 30 09:42][10:40] 0.0%

Note: Because battery-status relies on DBus signaling, running it has the unfortunate side effect of activating the battery applet. I will try to find a workaround for this.

http://olya.com/maemo/


Well since you're into writing apps, I would like to suggest an app that allows for a Bluetooth mouse and cursor for OS2008. Imagine the possiblities.. Thanks, Mike
 

The Following User Says Thank You to migs For This Useful Post: