Bastien Nocera 035ad06eae main: Make Claim* calls work before sensor is available
It's tedious for clients to know whether they can call Release* when
sensors disappear, or making sure that the device is claimed before
releasing it when they go in power save mode.

You can now claim the sensor whether it's available or not, and it will
automatically start sending out the updates when it appears.

Closes #23
2015-05-21 15:45:33 +02:00
2015-05-21 12:07:00 +02:00
2015-05-20 10:13:04 +02:00
2014-07-09 15:57:46 +02:00
2014-11-19 17:00:43 +01:00
2014-11-19 17:03:45 +01:00
2014-11-19 17:00:43 +01:00
2015-05-20 10:13:04 +02:00
2015-05-20 10:13:04 +02:00
2014-11-19 17:00:43 +01:00
2014-11-19 17:00:43 +01:00

iio-sensor-proxy

IIO accelerometer sensor to input device proxy

Installation

make
make install

It requires libgudev and systemd.

Usage

With a new enough version of systemd[1], and a GNOME 3 based system, orientation changes will automatically be applied when rotating the panel.

Note that a number of kernel bugs will prevent it from working correctly on some machines with the 3.16 kernel (kernel crashes on the Surface Pro, sensor failing to work after suspend on the Yoga Pro, etc.).

You can verify this by running udevadm info --export-db and checking for an output resembling this one:

P: /devices/virtual/input/input15
E: ABS=7
E: DEVPATH=/devices/virtual/input/input15
E: EV=9
E: ID_INPUT=1
E: ID_INPUT_ACCELEROMETER=1
E: ID_INPUT_ACCELEROMETER_ORIENTATION=normal
E: MODALIAS=input:b0006v0001p0002e0000-e0,3,kra0,1,2,mlsfw
E: NAME="IIO Accelerometer Proxy"
E: PRODUCT=6/1/2/0
E: PROP=0
E: SUBSYSTEM=input
E: TAGS=:seat:
E: USEC_INITIALIZED=74243

If that doesn't work, please file an issue, make sure any running iio-sensor-proxy has been stopped: systemctl stop iio-sensor-proxy.service and attach the output of: G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy

[1]: One including this patch: http://cgit.freedesktop.org/systemd/systemd/commit/?id=a545c6e1aa31b4d7e80c9d3609d9fc4fc9921498

Tested on

  • Lenovo IdeaPad Yoga 13
  • Microsoft Surface Pro 2
  • Lenovo Yoga Pro 2
  • Onda v975w
  • Dell Venue 8 Pro
  • Lenovo ThinkPad Twist
Description
Languages
C 82.3%
Python 14.7%
Meson 3%