[maemo-developers] D-BUS and N800 battery level com.nokia.bme/mce

From: Laurent GUERBY laurent at guerby.net
Date: Wed Mar 28 01:30:37 EEST 2007
Hi,

Using "dbus-monitor --system" to spy on bme/dbus messages I observed the following
on my N800 under IT2007.10:

1/ when pressing the battery applet:

signal sender=:1.166 -> dest=(null destination) interface=com.nokia.bme.request; member=timeleft_info_req
signal sender=:1.7 -> dest=(null destination) interface=com.nokia.bme.signal; member=battery_timeleft
 uint32 6120
uint32 60
=> uint32/uint32 seems to be estimated minutes left in idle/use, maximum seem to be:
 uint32 14640
uint32 420

2/ when the number of bar of power change (I assume before :):

signal sender=:1.7 -> dest=(null destination) interface=com.nokia.bme.signal; member=battery_state_changed
 uint32 4
=> uint32 seems to be the new level reached 1 to 4 (never saw zero in my logs)

3/ when pluging the power cable:

signal sender=:1.7 -> dest=(null destination) interface=com.nokia.bme.signal; member=charger_connected
signal sender=:1.7 -> dest=(null destination) interface=com.nokia.bme.signal; member=charger_charging_on

4/ when unplugging the power cable:

signal sender=:1.7 -> dest=(null destination) interface=com.nokia.bme.signal; member=charger_disconnected
signal sender=:1.7 -> dest=(null destination) interface=com.nokia.bme.signal; member=charger_charging_off

5/ when plugging the power cable and the battery is full instead of charging_on:

signal sender=:1.7 -> dest=(null destination) interface=com.nokia.bme.signal; member=battery_full

6/ when no battery left at all:

signal sender=:1.7 -> dest=(null destination) interface=com.nokia.bme.signal; member=battery_empty

quickly followed by:

signal sender=:1.1 -> dest=(null destination) interface=com.nokia.mce.signal; member=save_unsaved_data_ind
signal sender=:1.1 -> dest=(null destination) interface=com.nokia.mce.signal; member=shutdown_ind

I couldn't find documentation on the maemo site for these bme/mce messages, is the protocol
I described considered stable (eg: supported for new releases)? Did I miss
obvious messages or got wrong semantics?

Thanks in advance,

Laurent

PS: I did a test after a full charge, sound muted, wifi on (connected from my PC via ssh, 
light log script running every 30 seconds to write the date on the MMC), 
screen light to min, I played a 350MB 1h30 video in loop for a bit more than 4h30 before
the shutdown (normal mode not full screen mode for nokia media player).



More information about the maemo-developers mailing list