Find a file
Arkadiusz Miśkiewicz d4bec29c82 hid++v1 detection for unreachable devices and features upgrade
We are back to using HIDPP_FEATURE_ROOT_FN_PING for detecting protocol
since it's the official way described in [1].

Unfortunately unreachable devices ("disconnected" in logitech
terminology) don't respond to this v1 ping query as described in docs.
Seems that docs cover only reachable state reply for version checking.
Thus we have to consider HIDPP_ERROR_CODE_UNSUPPORTED to also be v1
(since we actually got some v1 valid answer - error reply).

Introduce HIDPP_REFRESH_FLAGS_FEATURES for checking features provided
by v2 device. This recheck is triggered when we upgrade from any
protocol to v2 in HIDPP_REFRESH_FLAGS_VERSION. This allows us to
properly upgrade from v0/v1 to v2 and also we don't send v2 queries
when we know that the device is v1.

[1] logitech_hidpp10_specification_for_Unifying_Receivers.doc

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Signed-off-by: Richard Hughes <richard@hughsie.com>
2013-03-28 12:13:31 +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 hid++v1 detection for unreachable devices and features upgrade 2013-03-28 12:13:31 +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.