Incorrect power supply type detection in upower

Bastien Nocera hadess at hadess.net
Thu Jun 5 02:57:11 PDT 2014


On Thu, 2014-06-05 at 00:56 +0200, Vojtech Bocek wrote:
> The driver exports type. It reads "BMS" (Battery Management System).

But it's not a battery? Why does it use the power supply class if it
doesn't export a battery?

> But upower doesn't know that type (it isn't in vanilla kernel) and
> while detecting the power supply type[1], it defaults to battery for
> any unknown power supply device type[2].

I did read the code before replying :)

> [1]: http://cgit.freedesktop.org/upower/tree/src/linux/up-device-supply.c#n955
> [2]: http://cgit.freedesktop.org/upower/tree/src/linux/up-device-supply.c#n1019





More information about the devkit-devel mailing list