bluez/plugins
Antonio Ospite fbe7d5226f plugins/sixaxis: Add a set_leds_sysfs() function
On recent kernels the hid-sony driver exposes leds class entries in
sysfs for setting the Sixaxis LEDs, use this interface and fall back to
hidraw in case using sysfs fails (e.g. on older hid-sony versions).

Setting the LEDs via sysfs is the preferred way on newer kernels, the
rationale behind that is:

  1. the Sixaxis uses the same HID output report for setting both LEDs
     and rumble effects;
  2. hid-sony remembers the state of LEDs in order to preserve them when
     setting rumble effects;
  3. when the LEDs are set via hidraw hid-sony has no way to know the
     new LEDs state and thus can change the LEDs in an inconsistent way
     when setting rumble effects later.

Also require libudev >= 172, this is where
udev_enumerate_add_match_parent() has been first introduced.

NOTE: using udev_enumerate_add_match_parent() results in a memory leak
when enumerating child devices, this has been fixed in udev 207; the
commit which fixes the issue is this one:
http://cgit.freedesktop.org/systemd/systemd/commit/?id=51cc07576e119dea6e65478eeba9472979fd0936
2014-06-08 14:54:41 +02:00
..
autopair.c autopair: Remove time(NULL) fallback when seeding rand() 2014-03-05 22:31:16 +02:00
external-dummy.c plugins: Use full include path for header files 2014-01-25 20:09:45 -08:00
gatt-example.c Remove unneeded headers include 2014-04-04 21:21:42 +03:00
hostname.c plugins: Use full include path for header files 2014-01-25 20:09:45 -08:00
neard.c core: Split LE and BR/EDR states for devices 2014-02-21 16:15:56 +02:00
policy.c plugins/policy: Both !uuids and !uuids[0] mean an empty list 2014-05-15 11:46:00 +03:00
sixaxis.c plugins/sixaxis: Add a set_leds_sysfs() function 2014-06-08 14:54:41 +02:00
wiimote.c core: Fix device_get_name() to always null-terminate what it returns 2014-02-19 06:14:17 +02:00