summaryrefslogtreecommitdiff
path: root/src/linux/up-backend.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-04-23 15:34:24 +0200
committerBastien Nocera <hadess@hadess.net>2014-04-23 15:48:48 +0200
commitdbf7eb7e557674a9b888a088f1cae4f36b77e14d (patch)
tree67d467f9d21c8bbc0e9fe89213a9f47eefc7ae9e /src/linux/up-backend.c
parentd650df8af80b734f6c44a0acb2080493330b8836 (diff)
downloadupower-dbf7eb7e557674a9b888a088f1cae4f36b77e14d.tar.gz
daemon: Fix shutdown on boot on some machines
On the Lenovo A600 all-in-one, there's a HCI/HID dual-mode Broadcom device which will try to get the battery level of the supplied mouse and keyboard, but will usually fail to do so. So we have a battery of type "battery" (it's not either a mouse or a keyboard, as it's supposed to handle both) but our display device battery code doesn't check whether those batteries are power supplies or not, using this "empty" (0% after the check timed out) battery in the shutdown policy. Check better for power supply devices, not all the "battery" types are power supply batteries, they might be non-power supply ones from unknown device types.
Diffstat (limited to 'src/linux/up-backend.c')
0 files changed, 0 insertions, 0 deletions