Find a file
Richard Hughes 28c8653ed8 Never detect HID devices with batteries as power supplies
Some HID devices with batteries (like bluetooth keyboards) have been creating
power supply devices in sysfs since Linux 3.3.
UPower thinks that they are system devices and shuts down the system if they
get low. This is bad.

This is fixed in Linux 3.4, where there is a new 'scope' file that defines if
the device is powering the system.
Helpfully ACPI batteries don't populate the scope value, but soon will.

Add support for the scope attribute now, and default to system devices if it's
missing. Note, you need to be running a 3.4 kernel or a 3.3 with the patch
backported for this to work.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=806295
2012-04-18 16:46:46 +01:00
doc Add the website sources to git 2011-09-06 10:02:04 +01:00
etc Add boolean RunPowersaveCommand to UPower.conf 2012-01-06 16:40:09 +00:00
libupower-glib libupower-glib: srcdir != builddir fix 2012-01-11 15:56:37 +01:00
m4 trivial: add the m4 directory so fresh checkouts work correctly 2010-01-18 11:45:51 +00:00
po Port from EggDebug to the GLib built-in logging framework 2010-11-01 11:28:31 +00:00
policy Use git.mk and remove the manual .gitignore files 2011-07-19 12:40:21 +01:00
rules Use git.mk and remove the manual .gitignore files 2011-07-19 12:40:21 +01:00
src Never detect HID devices with batteries as power supplies 2012-04-18 16:46:46 +01:00
tools Use git.mk and remove the manual .gitignore files 2011-07-19 12:40:21 +01:00
AUTHORS trivial: add my copyright 2008-09-06 11:12:24 +01:00
autogen.sh Use upstream gettext instead the glib one 2011-07-19 12:16:30 +01:00
configure.ac Install a systemd service file if systemd is used 2012-01-17 11:08:18 +00:00
COPYING trivial: Rename a few 'DeviceKit-power' strings we missed 2010-05-28 15:00:07 +01:00
git.mk Use git.mk and remove the manual .gitignore files 2011-07-19 12:40:21 +01:00
HACKING Fix links to git repository in HACKING 2010-12-27 10:26:18 +01:00
Makefile.am Install a systemd service file if systemd is used 2012-01-17 11:08:18 +00:00
NEWS Released UPower 0.9.15 2011-12-05 09:49:35 +00:00
README trivial: another DeviceKit-power to UPower rename 2010-03-26 11:29:38 +00:00
RELEASE trivial: post release version bump 2011-12-05 09:50:44 +00:00
upower-glib.pc.in Fix libupower-glib include dir and pkgconfig 2010-02-16 11:55:28 +01:00

===============
UPower
===============

Requirements:

   glib-2.0         >= 2.6.0
   gio-2.0          >= 2.16.1
   dbus-1           >= 1.0
   dbus-glib-1      >= 0.76
   gudev-1.0        >= 001
   polkit-gobject-1 >= 0.91
   libusb

UPower is an abstraction for enumerating power devices,
listening to device events and querying history and statistics.
Any application or service on the system can access the
org.freedesktop.UPower service via the system message bus.