SMAPI data for Thinkpad laptop batteries

Mikhail Gusarov dottedmag at
Thu Feb 4 07:35:54 PST 2010


I am considering writing (or extending existing) applet for controlling
Thinkpad-specific battery properties, such as thresholds for
charging/discharging, forcing battery discharge and preventing from
charge for a specified amount of time, available through SMAPI interface
(tp_smapi kernel module).

Looks like upower is a proper place for exposing this controls to
applications, though I'm not sure how to expose them properly.

Should smapi-enabled batteries expose additional inteface? If yes, then
how to signal presence of this interface, is it ok for UI stuff to query
it for every device it manages?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : 

More information about the devkit-devel mailing list