Find a file
Arkadiusz Miśkiewicz fadca8ad77 Better method of figuring out v1 vs v2 protocol version.
Protocol version detection isn't very reliable (especially for
hid++ v1).

Version 1 checking was potentially happening in every hidpp_device_cmd()
call and not only when requested. Improve that to do version checking
and priv->version manipulation only when requested by using
HIDPP_REFRESH_FLAGS_VERSION.

When doing version checking first try v2 protocol command and if it
succeeds assume version 2 device. Otherwise try v1 protocol query
and if that successds assume version 1 device.

v2 devices in unreachable/sleep mode seem to do not respond to v2
queries but they respond to v1 queries! Still we want best protocol
possible. To do that we are rechecking version when current protocol
version is below 2 and we are doing up_device_unifying_refresh() and if
recheck succeeds we upgrade protocol to v2.

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Signed-off-by: Richard Hughes <richard@hughsie.com>
2013-03-22 19:46:23 +00:00
doc Don't use the deprecated INCLUDES in Makefile.am 2013-01-14 09:21:30 +00:00
etc Add boolean RunPowersaveCommand to UPower.conf 2012-01-06 16:40:09 +00:00
libupower-glib Require applications to define UPOWER_ENABLE_DEPRECATED to use deprecated functionality 2013-02-12 11:08:27 +00: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 Add support for Logitech Wireless (NonUnifying) devices 2013-03-22 19:44:58 +00:00
src Better method of figuring out v1 vs v2 protocol version. 2013-03-22 19:46:23 +00:00
tools Add a --enable-deprecated configure argument 2013-02-12 11:08:35 +00: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 Drop --enable-systemd and linking to libsystemd-daemon 2013-03-21 07:16:56 +01: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.20 2013-03-18 16:27:23 +00:00
README trivial: another DeviceKit-power to UPower rename 2010-03-26 11:29:38 +00:00
RELEASE trivial: post release version bump 2013-03-18 16:28:32 +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.