upower/src
Bastien Nocera dbf7eb7e55 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.
2014-04-23 15:48:48 +02:00
..
dummy daemon: Better timeout source naming 2013-10-26 14:55:15 +02:00
freebsd daemon: Better timeout source naming 2013-10-26 14:55:15 +02:00
linux trivial: Fix a compile warning in the linux backend 2013-10-29 12:51:23 +00:00
openbsd Update lid status when updating ac status. 2014-04-22 11:41:56 +01:00
Makefile.am linux: Fix UMockdev typelib not being found 2013-10-18 16:41:14 +02:00
org.freedesktop.UPower.conf.in Remove QoS interface 2013-10-14 10:42:55 +02:00
org.freedesktop.UPower.Device.xml all: Remove *changed signals 2013-10-17 14:25:25 +02:00
org.freedesktop.UPower.KbdBacklight.xml trivial: fix typos in user-visible documentation 2012-09-19 06:45:59 +02:00
org.freedesktop.UPower.service.in Install a systemd service file if systemd is used 2012-01-17 11:08:18 +00:00
org.freedesktop.UPower.Wakeups.xml trivial: fix typos in user-visible documentation 2012-09-19 06:45:59 +02:00
org.freedesktop.UPower.xml all: Remove *changed signals 2013-10-17 14:25:25 +02:00
up-backend.h all: Add GetCriticalAction daemon method 2013-10-17 09:04:03 +02:00
up-config.c daemon: Add helper to get uint from config 2013-10-14 10:42:56 +02:00
up-config.h daemon: Add helper to get uint from config 2013-10-14 10:42:56 +02:00
up-daemon.c daemon: Fix shutdown on boot on some machines 2014-04-23 15:48:48 +02:00
up-daemon.h daemon: Add poll helper functions 2013-10-28 15:15:02 +01:00
up-device-list.c daemon: Simplify _new() functions 2013-10-14 10:36:34 +02:00
up-device-list.h devkit-power-gobject/up-enum.h be gone 2010-02-06 13:46:03 +00:00
up-device.c daemon: Don't get in a bad state when refresh fails 2013-10-18 18:41:30 +02:00
up-device.h daemon: Add GetDisplayDevice method 2013-10-16 13:42:34 +02:00
up-history.c Create the history directory at runtime 2014-02-25 09:43:04 +00:00
up-history.h UpHistory: Add method to set history dir 2010-11-04 23:29:34 -04:00
up-kbd-backlight.c daemon: No warning with no LEDs class 2013-10-18 18:43:07 +02:00
up-kbd-backlight.h Add support for controlling leds keyboard backlights 2010-10-11 11:03:06 +01:00
up-main.c daemon: Better timeout source naming 2013-10-26 14:55:15 +02:00
up-marshal.list trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ABI changes 2010-01-18 12:26:55 +00:00
up-native.h trivial: DkpNative -> UpNative (no ABI or API break) 2010-01-18 13:12:37 +00:00
up-polkit.c Raise the hard PolKit dep to 0.97 2013-02-12 10:22:30 +00:00
up-polkit.h Fix double D-BUS return in up_daemon_*_allowed 2010-08-19 13:04:38 +02:00
up-self-test.c Remove QoS interface 2013-10-14 10:42:55 +02:00
up-wakeups.c daemon: Better timeout source naming 2013-10-26 14:55:15 +02:00
up-wakeups.h Update the Free Software Foundation address 2010-01-27 16:27:15 +00:00
upower.service.in daemon: Restart upowerd when it crashes 2013-10-19 20:19:11 +02:00