|
2007-12-31
, 04:28
|
|
Posts: 739 |
Thanked: 242 times |
Joined on Sep 2007
@ Montreal
|
#2
|
|
2007-12-31
, 04:46
|
Posts: 164 |
Thanked: 18 times |
Joined on Dec 2007
|
#3
|
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/
The Following User Says Thank You to migs For This Useful Post: | ||
|
2007-12-31
, 12:28
|
Posts: 833 |
Thanked: 124 times |
Joined on Nov 2007
@ Based in the USA
|
#4
|
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 gemniii42 For This Useful Post: | ||
|
2007-12-31
, 14:12
|
Posts: 145 |
Thanked: 32 times |
Joined on Dec 2007
|
#5
|
Traceback (most recent call last): File "/usr/bin/battery-status", line 5, in <module> import dbus, dbus.service, dbus.glib ImportError: No module named dbus
|
2007-12-31
, 18:31
|
Posts: 465 |
Thanked: 149 times |
Joined on Oct 2007
|
#6
|
battery-status is a good idea. Unfortunately, on my brand
new n810 it only generates an error:
Any idea what's going on?Code:Traceback (most recent call last): File "/usr/bin/battery-status", line 5, in <module> import dbus, dbus.service, dbus.glib ImportError: No module named dbus
The Following User Says Thank You to dblank For This Useful Post: | ||
|
2007-12-31
, 18:35
|
Posts: 465 |
Thanked: 149 times |
Joined on Oct 2007
|
#7
|
|
2007-12-31
, 19:04
|
|
Posts: 538 |
Thanked: 168 times |
Joined on Dec 2007
@ Seattle
|
#8
|
|
2007-12-31
, 20:25
|
Posts: 145 |
Thanked: 32 times |
Joined on Dec 2007
|
#9
|
Sounds like you're missing the python dbus module.
install python2.5-dbus
|
2008-01-01
, 22:51
|
Posts: 164 |
Thanked: 132 times |
Joined on Dec 2007
|
#10
|
battery-status is a good idea. Unfortunately, on my brand
new n810 it only generates an error:
Any idea what's going on?Code:Traceback (most recent call last): File "/usr/bin/battery-status", line 5, in <module> import dbus, dbus.service, dbus.glib ImportError: No module named dbus
[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://nitapps.com
Last edited by ag2; 2008-02-09 at 11:28.