31 Oct 18:08
Battery levels
Bastien Nocera <hadess <at> hadess.net>
2007-10-31 17:08:12 GMT
2007-10-31 17:08:12 GMT
Heya, It seems to me that there's quite a bit of confusion wrt. battery levels. I'm currently using some code similar to what's in xgnokii in gnome-phone-manager: http://svn.gnome.org/viewvc/phonemgr/trunk/libgsm/phonemgr-listener.c?view=markup (see phonemgr_listener_battery_poll ()) Daniele's example code uses phone.max_battery_level from the driver: http://www.forsi.it/gnobatmon Which is correct? In my testing Daniele's option gave me thousands of percents using the nk6510 driver. Cheers
RSS Feed