Incorrect power supply type detection in upower

2014-06-04 Thread Vojtech Bocek
Hello, on Google Nexus 5, there is a Linux kernel driver used to change charging current according to battery's temperature (too hot -> lower the current)[1]. This driver exports as type "BMS" (battery management system, not present in vanilla kernel) in sysfs, and because upower considers any unkn

Re: Incorrect power supply type detection in upower

2014-06-04 Thread Bastien Nocera
On Wed, 2014-06-04 at 22:34 +0200, Vojtech Bocek wrote: > Hello, > on Google Nexus 5, there is a Linux kernel driver used to change > charging current according to battery's temperature (too hot -> lower > the current)[1]. This driver exports as type "BMS" (battery management > system, not present

Re: Incorrect power supply type detection in upower

2014-06-04 Thread Vojtech Bocek
The driver exports type. It reads "BMS" (Battery Management System). 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]. [1]: http://cgit.freedesktop.org/upower/tree/src/lin