Giter VIP home page Giter VIP logo

iio-sensor-proxy's Introduction

iio-sensor-proxy's People

Contributors

agx avatar aymanbagabas avatar bdutro avatar bentiss avatar bgaff avatar bricewge avatar cosimoc avatar crrodriguez avatar danielstuart14 avatar djdeath avatar dos1 avatar dsd avatar fcrozat avatar foobarrior avatar gottox avatar hadess avatar janbrummer avatar jjardon avatar jwrdegoede avatar ljmf00 avatar m0rf30 avatar nodeg avatar smcv avatar soda0289 avatar spandruvada avatar tofee avatar valentindavid avatar victortoso avatar vinilox avatar zeenix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iio-sensor-proxy's Issues

running the auto setup fails during make due to missing packages

I don't know how to satisfy the dependencies for the shell script.
It appears to require "gio-2.0" and "gudev-1.0" but there are no ubuntu packages by those names. I found libgudev-1.0-0, but it was already installed.
Am I missing something?

# sh ./autogen.sh
/usr/bin/gnome-autogen.sh
checking for autoreconf >= 2.53...
  testing autoreconf... found 2.69
checking for pkg-config >= 0.17.1...
  testing pkg-config... found 0.26
Checking for required M4 macros...
Checking for forbidden M4 macros...
**Warning**: I am going to run configure' with no arguments.
If you wish to pass any to it, please specify them on the
./autogen.sh' command line.

Processing ./configure.ac
Running autoreconf...
autoreconf: Entering directory .'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force --warnings=no-portability 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force --warnings=no-portability
autoreconf: configure.ac: not using Autoheader
autoreconf: running: automake --add-missing --copy --force-missing --warnings=no-portability
autoreconf: Leaving directory .'
Running ./configure ...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking whether gcc understands -Wall... yes
checking whether gcc understands -Wstrict-prototypes... yes
checking whether gcc understands -Wnested-externs... yes
checking whether gcc understands -Werror=missing-prototypes... yes
checking whether gcc understands -Werror=implicit-function-declaration... yes
checking whether gcc understands -Werror=pointer-arith... yes
checking whether gcc understands -Werror=init-self... yes
checking whether gcc understands -Werror=format-security... yes
checking whether gcc understands -Werror=format=2... yes
checking whether gcc understands -Werror=missing-include-dirs... yes
checking what warning flags to pass to the C compiler...  -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format-security -Werror=format=2 -Werror=missing-include-dirs
checking what language compliance flags to pass to the C compiler... 
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for IIO_SENSOR_PROXY... no
configure: error: Package requirements (gio-2.0 gudev-1.0) were not met:

No package 'gudev-1.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables IIO_SENSOR_PROXY_CFLAGS
and IIO_SENSOR_PROXY_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Dell 7352

Hey There, I have a Dell 7352 and I believe it has the same chipset as the Yoga's:

$ lsusb | grep -i 0483:91D1
Bus 001 Device 002: ID 0483:91d1 STMicroelectronics

And it seems to see it correctly:

$ G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy
** (process:4208): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:0483:91D1.0001/HID-SENSOR-200041.7.auto/iio:device3
** (process:4208): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:0483:91D1.0001/HID-SENSOR-200041.7.auto/iio:device3 of type ambient light sensor at IIO Buffer Light sensor
** (process:4208): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:0483:91D1.0001/HID-SENSOR-200073.2.auto/iio:device4
** (process:4208): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:0483:91D1.0001/HID-SENSOR-200073.2.auto/iio:device4 of type accelerometer at IIO Buffer accelerometer
** (process:4208): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:0483:91D1.0001/HID-SENSOR-200083.4.auto/iio:device0
** (process:4208): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:0483:91D1.0001/HID-SENSOR-200083.4.auto/iio:device0 of type compass at IIO Buffer Compass
** (process:4208): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:0483:91D1.0001/HID-SENSOR-200073.2.auto/trigger4
** (process:4208): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:0483:91D1.0001/HID-SENSOR-200041.7.auto/trigger3
** (process:4208): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:0483:91D1.0001/HID-SENSOR-200083.4.auto/trigger0
** (process:4208): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:4208): DEBUG: Got compass scale 1.000000

But it doesn't actually do anything?! Or, I'm missing something, which is more likely the case.. but I'm stuck. Any help?

Also: Fresh boot, and just compiled the latest kernel:

Linux lucy.virtualsmf.net 4.1.0-rc8 #1 SMP Sun Jun 21 09:59:25 MDT 2015 x86_64 x86_64 x86_64 GNU/Linux

Appreciate any help!

Operation with Fedora 22...

I have an Acer W700 tablet, with Fedora 22 (beta). Gnome 3.16.1, Kernel 4.0.2. I built and installed iio-sensor-proxy 0.1. The tablet screen doesn't rotate. So, I took a debug dump (below) which shows that the rotation is being detected -- but the screen still not rotating. Verified that the daemon process is running after startup:
[root@dejah lengine]# systemctl status iio-sensor-proxy.service
● iio-sensor-proxy.service - IIO Sensor Proxy service
Loaded: loaded (/usr/lib/systemd/system/iio-sensor-proxy.service; static; vendor preset: disabled)
Active: active (running) since Tue 2015-05-12 07:13:37 EDT; 9h ago
Main PID: 775 (iio-sensor-prox)
CGroup: /system.slice/iio-sensor-proxy.service
└─775 /usr/local/sbin/iio-sensor-proxy

May 12 07:13:37 dejah systemd[1]: Started IIO Sensor Proxy service.
May 12 07:13:37 dejah systemd[1]: Starting IIO Sensor Proxy service...
[root@dejah lengine]#

And now the debug dump (started with tablet in "normal" orientation, rotated so right edge up, then rotated back to "normal"):

[root@dejah iio-sensor-proxy-0.1]# G_MESSAGES_DEBUG=all /usr/local/sbin/iio-sensor-proxy
** (process:2856): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:8087:0A04.0001/HID-SENSOR-200073.0.auto/iio:device4
** (process:2856): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:8087:0A04.0001/HID-SENSOR-200073.0.auto/iio:device4 at IIO Buffer accelerometer
** (process:2856): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.0/0003:8087:0A04.0001/HID-SENSOR-200073.0.auto/trigger4
** (process:2856): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2856): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2856): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2856): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2856): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2856): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2856): DEBUG: Read from IIO: -12, -248, -79
** (process:2856): DEBUG: Sent by driver (quirk applied): 12, 248, -79
** (process:2856): DEBUG: Emitted orientation changed: from undefined to normal
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: Read from IIO: -46, -248, -33
** (process:2856): DEBUG: Sent by driver (quirk applied): 46, 248, -33
** (process:2856): DEBUG: Read from IIO: -209, -120, -76
** (process:2856): DEBUG: Sent by driver (quirk applied): 209, 120, -76
** (process:2856): DEBUG: Emitted orientation changed: from normal to right-up
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: Read from IIO: -230, -33, -92
** (process:2856): DEBUG: Sent by driver (quirk applied): 230, 33, -92
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: Read from IIO: -163, -166, -99
** (process:2856): DEBUG: Sent by driver (quirk applied): 163, 166, -99
** (process:2856): DEBUG: Read from IIO: -23, -243, -69
** (process:2856): DEBUG: Sent by driver (quirk applied): 23, 243, -69
** (process:2856): DEBUG: Emitted orientation changed: from right-up to normal
** (process:2856): DEBUG: Read from IIO: -7, -240, -58
** (process:2856): DEBUG: Sent by driver (quirk applied): 7, 240, -58
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: Read from IIO: -12, -240, -97
** (process:2856): DEBUG: Sent by driver (quirk applied): 12, 240, -97
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: Read from IIO: -15, -248, -69
** (process:2856): DEBUG: Sent by driver (quirk applied): 15, 248, -69
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
** (process:2856): DEBUG: No new data available
^C

Lenovo Yoga Pro 3

Tried to get it running on a Lenovo Yoga Pro 3

Here is the debug data I got by running sudo G_MESSAGES_DEBUG=all /usr/local/sbin/iio-sensor-pxy:

** (process:4806): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:048D:8386.0001/HID-SENSOR-200073.0.auto/iio:device3
** (process:4806): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:048D:8386.0001/HID-SENSOR-200073.0.auto/iio:device3 at IIO Buffer accelerometer
** (process:4806): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-8/1-8:1.0/0003:048D:8386.0001/HID-SENSOR-200073.0.auto/trigger3
** (process:4806): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:4806): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:4806): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:4806): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:4806): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:4806): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available
** (process:4806): DEBUG: No new data available

Stopped working on T100TA

Using the 4.3 rc3 kernel (bazdara) from here http://downloads.dodgejcr.com/files/linux-T100-dev-4.3rc3-1-i686.pkg.tar.xz

monitor-sensor was running fine on this kernel. While testing out some things I ran

qdbus --system net.hadess.SensorProxy /net/hadess/SensoirProxy net.hadess.SensorProxy.ClaimLight

Right after I ran the LightLevel function. It was reading 88 but not changing. Rebooted to try and clear it up but now running monitor-sensor displays nothing and calling dbus shows the light level as 0. The systemd service is active. Did ClaimLight somehow lock it up or could there be another issue I need to dig into?

Yoga 2 Pro

Hi, trying to get this running on a Lenovo Yoga 2 Pro (ubuntu gnome, kernel 3.16), it looks like it detects the orientation changes ('Emitted orientation changed') but the screen is not rotating. Here's the debugging results :

** (process:5326): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0003/HID-SENSOR-200041.7.auto/iio:device5
** (process:5326): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0003/HID-SENSOR-200041.7.auto/iio:device5 of type ambient light sensor at IIO Buffer Light sensor
** (process:5326): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0003/HID-SENSOR-200073.0.auto/iio:device0
** (process:5326): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0003/HID-SENSOR-200073.0.auto/iio:device0 of type accelerometer at IIO Buffer accelerometer
** (process:5326): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0003/HID-SENSOR-200073.0.auto/trigger0
** (process:5326): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:5326): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:5326): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:5326): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:5326): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:5326): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:5326): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0003/HID-SENSOR-200041.7.auto/trigger5
** (process:5326): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:5326): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:5326): DEBUG: Read from IIO: 82, -802, -353
** (process:5326): DEBUG: Accel sent by driver (quirk applied): -82, 802, -353
** (process:5326): DEBUG: Emitted orientation changed: from undefined to normal
** (process:5326): DEBUG: Read from IIO: 195
** (process:5326): DEBUG: Light level sent by driver (quirk applied): 195.000000 (unit: lux)
** (process:5326): DEBUG: Emitted light changed: from 0.000000 to 195.000000
** (process:5326): DEBUG: Read from IIO: 90, -809, -425
** (process:5326): DEBUG: Accel sent by driver (quirk applied): -90, 809, -425
** (process:5326): DEBUG: No new data available
** (process:5326): DEBUG: Read from IIO: -1164, 208, -222
** (process:5326): DEBUG: Accel sent by driver (quirk applied): 1164, -208, -222
** (process:5326): DEBUG: Emitted orientation changed: from normal to right-up
** (process:5326): DEBUG: Read from IIO: 156
** (process:5326): DEBUG: Light level sent by driver (quirk applied): 156.000000 (unit: lux)
** (process:5326): DEBUG: Emitted light changed: from 195.000000 to 156.000000
** (process:5326): DEBUG: Read from IIO: -950, 123, -274
** (process:5326): DEBUG: Accel sent by driver (quirk applied): 950, -123, -274
** (process:5326): DEBUG: No new data available
** (process:5326): DEBUG: Read from IIO: -978, 176, -219
** (process:5326): DEBUG: Accel sent by driver (quirk applied): 978, -176, -219
** (process:5326): DEBUG: No new data available
** (process:5326): DEBUG: Read from IIO: -982, 166, -224
** (process:5326): DEBUG: Accel sent by driver (quirk applied): 982, -166, -224
** (process:5326): DEBUG: No new data available
** (process:5326): DEBUG: Read from IIO: 93, -874, -177
** (process:5326): DEBUG: Accel sent by driver (quirk applied): -93, 874, -177
** (process:5326): DEBUG: Emitted orientation changed: from right-up to normal
** (process:5326): DEBUG: No new data available
** (process:5326): DEBUG: Read from IIO: 159, -824, -292
** (process:5326): DEBUG: Accel sent by driver (quirk applied): -159, 824, -292
** (process:5326): DEBUG: Read from IIO: 195
** (process:5326): DEBUG: Light level sent by driver (quirk applied): 195.000000 (unit: lux)
** (process:5326): DEBUG: Emitted light changed: from 156.000000 to 195.000000
** (process:5326): DEBUG: Read from IIO: 102, -806, -371
** (process:5326): DEBUG: Accel sent by driver (quirk applied): -102, 806, -371
** (process:5326): DEBUG: No new data available
** (process:5326): DEBUG: Read from IIO: 112, -746, -270
** (process:5326): DEBUG: Accel sent by driver (quirk applied): -112, 746, -270
** (process:5326): DEBUG: No new data available

Thanks for any help

iio-sensor-proxy does nothing and just exits

I'm testing iio-sensor-proxy on a Thinkpad Yoga. I get the following output, and then it just exits.

$ sudo G_MESSAGES_DEBUG=all iio-sensor-proxy
** (process:25992): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0483:91D1.0004/HID-SENSOR-200041.6.auto/iio:device5
** (process:25992): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0483:91D1.0004/HID-SENSOR-200041.6.auto/iio:device5 of type ambient light sensor at IIO Buffer Light sensor
** (process:25992): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0483:91D1.0004/HID-SENSOR-200073.1.auto/iio:device0
** (process:25992): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0483:91D1.0004/HID-SENSOR-200073.1.auto/iio:device0 of type accelerometer at IIO Buffer accelerometer
** (process:25992): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0483:91D1.0004/HID-SENSOR-200083.3.auto/iio:device2
** (process:25992): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0483:91D1.0004/HID-SENSOR-200083.3.auto/iio:device2 of type compass at IIO Buffer Compass
** (process:25992): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0483:91D1.0004/HID-SENSOR-200073.1.auto/trigger0
** (process:25992): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0483:91D1.0004/HID-SENSOR-200041.6.auto/trigger5
** (process:25992): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/0003:0483:91D1.0004/HID-SENSOR-200083.3.auto/trigger2
** (process:25992): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:25992): DEBUG: Got compass scale 1.000000
** (process:25992): DEBUG: iio-sensor-proxy is already running

It looks like the sensors are recognized, but any_sensors_left (data) returns FALSE in
main(). Any clue of what is going on?

Oh, by the way, I run this with kernel 4.0.7 on arch linux.

Thanks!

Limit access to heading to Geoclue

It's not directly useful to applications, as it's exporting the magnetic North heading, not the True North heading. Geoclue will usually have enough information to convert it.

Surface Pro 3: accel/light sensors detected but not working (Fedora 23)

On a Surface Pro 3 running Fedora 23 (running F23 4.2.5 kernel with minor patches to enable other hardware (which shouldn't affect sensors): https://github.com/shvr/fedora-surface-pro-3-kernel), accelerometer and light sensors seem to be detected but don't seem to work.

monitor-sensors doesn't output anything when orientation/ambient light are changed.

gdus introspect output:

node /net/hadess/SensorProxy {
  interface org.freedesktop.DBus.Properties {
    methods:
      Get(in  s interface_name,
          in  s property_name,
          out v value);
      GetAll(in  s interface_name,
             out a{sv} properties);
      Set(in  s interface_name,
          in  s property_name,
          in  v value);
    signals:
      PropertiesChanged(s interface_name,
                        a{sv} changed_properties,
                        as invalidated_properties);
    properties:
  };
  interface org.freedesktop.DBus.Introspectable {
    methods:
      Introspect(out s xml_data);
    signals:
    properties:
  };
  interface org.freedesktop.DBus.Peer {
    methods:
      Ping();
      GetMachineId(out s machine_uuid);
    signals:
    properties:
  };
  interface net.hadess.SensorProxy {
    methods:
      ClaimAccelerometer();
      ReleaseAccelerometer();
      ClaimLight();
      ReleaseLight();
    signals:
    properties:
      readonly b HasAccelerometer = true;
      readonly s AccelerometerOrientation = 'undefined';
      readonly b HasAmbientLight = true;
      readonly s LightLevelUnit = 'lux';
      readonly d LightLevel = 0.0;
  };

Please let me know what info would be useful to debug this. Thanks!

warnings about dbus policy in Debian

@hadess

On Debian, I see warnings and errors from lintian about the dbus policy that i-s-p has by default.
I haven't really spent much time investigating it from the dbus point of view yet, but am filing this bug to keep you informed. When/if I have more information, I'll update this bug report.

In case you think these errors and warnings are valid, then we can track it in this bug report.

W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
N:
N: The package contains D-Bus policy configuration that uses one of the
N: send_* conditions, but does not specify a send_destination, and is not
N: specific to root.
N:
N: Rules of the form
N:
N:
N:
N: allow messages with the given interface to be sent to service, not
N: just the one installing the rule, which is rarely what was intended.
N:
N: Similarly, on the system bus, rules of the form
N:
N:
N:
N: are redundant with the system bus's default-deny policy, and have
N: unintended effects on other services.
N:
N: This check ignores rules of the form
N:
N:
N: <allow ... />
N:
N:
N: which are commonly used for the "agent" pattern seen in services like
N: BlueZ and NetworkManager: a root-privileged daemon calls out to one or
N: more per-user user interface agent processes with no specific name, so
N: send_destination is not easily applicable. However, such rules should
N: still be made as specific as possible to avoid undesired side-effects.
N:
N: Refer to https://bugs.freedesktop.org/show_bug.cgi?id=18961 and
N: http://lists.freedesktop.org/archives/dbus/2008-February/009401.html for
N: details.
N:
N: Severity: normal, Certainty: certain
N:
N: Check: dbus, Type: binary
N:
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
E: iio-sensor-proxy: dbus-policy-excessively-broad etc/dbus-1/system.d/net.hadess.SensorProxy.conf
N:
N: The package contains D-Bus policy configuration that matches broad
N: classes of messages. This will cause strange side-effects, is almost
N: certainly unintended, and is a probable security flaw.
N:
N: For instance,
N:
N:
N:
N:
N:
N:
N: in any system bus policy file would allow the daemon user to send any
N: method call to any service, including method calls which are meant to be
N: restricted to root-only for security, such as
N: org.freedesktop.systemd1.Manager.StartTransientUnit. (In addition, it
N: allows that user to send any message to the com.example.Bees service.)
N:
N: The intended policy for that particular example was probably more like
N:
N:
N:
N:
N:
N: which correctly allows method calls to that particular service only.
N:
N: Refer to http://www.openwall.com/lists/oss-security/2015/01/27/25 for
N: details.
N:
N: Severity: serious, Certainty: possible
N:
N: Check: dbus, Type: binary
N:
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
E: iio-sensor-proxy: dbus-policy-excessively-broad etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: dbus-policy-without-send-destination etc/dbus-1/system.d/net.hadess.SensorProxy.conf
W: iio-sensor-proxy: binary-without-manpage usr/sbin/iio-sensor-proxy

Update README

Doesn't mention new sensor types, or use of monitor-sensor for debugging.

HP Spectre x360

Hi,

I am running ubuntu 15.04 on HP Spectre x360 with gnome 3.16. udevadm doesn't display anything like in readme example and it doesn't seem to work.
This is what I get in debug mode:

# G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy
** (process:2181): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:048D:8350.0002/HID-SENSOR-200073.0.auto/iio:device0
** (process:2181): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:048D:8350.0002/HID-SENSOR-200073.0.auto/iio:device0 of type accelerometer at IIO Buffer accelerometer
** (process:2181): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:048D:8350.0002/HID-SENSOR-200083.2.auto/iio:device2
** (process:2181): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:048D:8350.0002/HID-SENSOR-200083.2.auto/iio:device2 of type compass at IIO Buffer Compass
** (process:2181): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:048D:8350.0002/HID-SENSOR-200073.0.auto/trigger0
** (process:2181): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2181): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2181): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2181): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2181): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2181): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2181): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/0003:048D:8350.0002/HID-SENSOR-200083.2.auto/trigger2
** (process:2181): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2181): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2181): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2181): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2181): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2181): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2181): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2181): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2181): DEBUG: Got compass scale 1.000000
** (process:2181): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:2181): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:2181): DEBUG: No new data available
** (process:2181): DEBUG: No new data available
** (process:2181): DEBUG: No new data available
** (process:2181): DEBUG: No new data available
** (process:2181): DEBUG: No new data available
.....
and so on

Dell XPS 13 (Ivy Bridge)

I'm on arch linux with kernel 4.2.2
I've installed iio-sensor-proxy from AUR.
I have:

$udevadm info --export-db | grep iio:device0
P:/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/PNP0C09:00/ACPI0008:00/iio:device0
N: iio:device0
E: DEVNAME=/dev/iio:device0
E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/PNP0C09:00/ACPI0008:00/iio:device0

and

$ gdbus introspect --system --dest net.hadess.SensorProxy --object-path /net/hadess/SensorProxy
Errore: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name net.hadess.SensorProxy was not provided by any .service files

Service

$ systemctl status iio-sensor-proxy.service
● iio-sensor-proxy.service - IIO Sensor Proxy service
   Loaded: loaded (/usr/lib/systemd/system/iio-sensor-proxy.service; static; vendor preset: disabled)
   Active: inactive (dead) since ven 2015-10-09 14:08:37 CEST; 14min ago
   Process: 420 ExecStart=/usr/bin/iio-sensor-proxy (code=exited, status=0/SUCCESS)
   Main PID: 420 (code=exited, status=0/SUCCESS)

ott 09 14:08:37 dell-xps13-luca systemd[1]: Starting IIO Sensor Proxy service...
ott 09 14:08:37 dell-xps13-luca systemd[1]: Started IIO Sensor Proxy service.
Hint: Some lines were ellipsized, use -l to show in full.

Finally debug

G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy
** (process:4207): DEBUG: Could not find any supported sensors

However

$ cat /sys/bus/acpi/devices/ACPI0008\:00/iio\:device0/in_illuminance_raw 
113

outputs current illuminance

gdm errors - not authorized

Today I have downloaded, compiled and installed the iio-sensor-proxy service.
It works okay, but what is strange is that every time the light changes (light sensor value), I get the following error messages in log:

Dec 13 21:41:09 universe pkexec[2887]: gdm: Error executing command as another user: Not authorized [USER=root] [TTY=unknown] [CWD=/var/lib/gdm] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 927]
Dec 13 21:41:09 universe gnome-session[366]: Error executing command as another user: Not authorized
Dec 13 21:41:09 universe gnome-session[366]: This incident has been reported.

The value of --set-brightness is always the same - 927. If I enable automatic brightness in Power settings then next to these messages I see:

Dec 13 21:39:58 universe pkexec[2824]: pam_unix(polkit-1:session): session opened for user root by (uid=1000)
Dec 13 21:39:58 universe pkexec[2824]: user: Executing command [USER=root] [TTY=unknown] [CWD=/home/user] [COMMAND=/usr/lib/gnome-settings-daemon/gsd-backlight-helper --set-brightness 477]

Which looks ok and the value here changes, and the brightness changes accordingly. But if I disable automatic brightness the first example still keeps popping in log (each time the light sensor value changes).

Any ideas what is going wrong here, why there is a strange attempt to change brightness to 927? I use Arch Linux, kernel is 3.2.5, gdm & gnome.

Toshiba Portege z10t rotation

Rotation works out of the box on a Toshiba Portege z10t detachable laptop, so it might be added on the working devices list.

Haven't tested brightness yet, but will keep you updated.

Thank you

Not working on Thinkpad Yoga S1

Hi,

I have a Thinkpad Yoga S1 running Debian Lenny, which contains the required patch to udev (I checked this explicitly).
I built the tag 0.1 of this project successfully (see #9 regarding master).
However, nothing happens when I turn the screen, see https://gist.github.com/michamos/faec99a0097dcb70bd85 for output of iio-sensor-proxy with debug messages. If I let it run, the last line just repeats.
Do you have any idea of what might be happening?

AmbientLight on v975w

Hello,

Thank you for your work!

AmbientLight doesn't work on v975w, right ?
"readonly b HasAmbientLight" says "false" when querying gdbus.

Cheers

Add client tracking

Clients should request for updates to be sent on particular interfaces (accelerometer, or ALS for now), and they should be the only ones receiving updates.

This would fix issue #3 at the same time.

Missing headers in latest master (revision 7d226295da)

Hi,

I tried to compile the latest master, but I am missing some headers:

  • uinput.h: was removed in fd4b7f7, but is still included in fake-input-accelerometer.c
  • orientation.h: included in iio-sensor-proxy.c, but nowhere to be found

Did I miss something, or should these files be available?

Running the dbus service as root is (probably?) a security risk

Hi!
It seems that running the dbus service as root is a security risk and in conflict with openSUSE dbus service policy. Please take a look at
https://bugzilla.opensuse.org/show_bug.cgi?id=939191
and let us know if there is anything that can be done to work around this issue or if there really is no option other than running the dbus service as root.

According to the security team's comment on the issue:

The question is whether its really needed to run as root.
It looks like the service just reads some /sys files and turns it
over via dbus. Can you elaborate wther this really requires root perms?
(e.g. what the permissions of these particular files are; I dont have
a tablet to check for).
So it might be sufficient to read them out as user or to be in the
uid 0 group.

We dont want to have yet another dbus service running as root.

That said, thanks a lot for the software. It works great on my computer (which is why I am trying to get it accepted into the official openSUSE repositories).

Package version: 1.1

Not working on Onda v925W

Hi there,

Can't seem to get it working! Onda v925W. Definately detected though!

** (process:1725): DEBUG: Found polling accelerometer at /sys/devices/platform/80860F41:04/i2c-4/i2c-SMO8500:00/iio:device0
** (process:1725): DEBUG: Found device /sys/devices/platform/80860F41:04/i2c-4/i2c-SMO8500:00/iio:device0 of type accelerometer at IIO Poll accelerometer
** (process:1725): DEBUG: iio-sensor-proxy is already running, or it cannot own its D-Bus name. Verify installation.

Doesn't work on the Thinkpad Twist

Hi!

This doesn't work on the Thinkpad Twist.
I don't know if this bug is specific to 3.16, I guess I could install an older kernel and test with it and see if that helps - please let me know if such testing is needed.

[root@rincewind ~]# G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy
** (process:2588): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/0003:0483:91D1.0003/HID-SENSOR-200073.1.auto/iio:device4
** (process:2588): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/0003:0483:91D1.0003/HID-SENSOR-200073.1.auto/trigger4
** (process:2588): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2588): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2588): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2588): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2588): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2588): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined

** (process:2588): WARNING **: Couldn't read from device: Unknown error -11
** (process:2588): DEBUG: Found orientation: undefined, prev:undefined
^C

Running Fedora 21 with the Rawhide No-Debug kernel:

Linux rincewind 3.16.0-1.fc22.x86_64 #1 SMP Mon Aug 4 10:01:23 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Thanks.

no data on Lenovo Yoga 2 13

Now with GNOME 3.18, I hoped to see some action but unfortunate :-(
Turns out there might be issues with this make/model

rrs@learner:/usr/share/doc/iio-sensor-proxy$ sudo G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy
** (process:22187): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0003/HID-SENSOR-200041.9.auto/iio:device5
** (process:22187): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0003/HID-SENSOR-200041.9.auto/iio:device5 of type ambient light sensor at IIO Buffer Light sensor
** (process:22187): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0003/HID-SENSOR-200073.4.auto/iio:device0
** (process:22187): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0003/HID-SENSOR-200073.4.auto/iio:device0 of type accelerometer at IIO Buffer accelerometer
** (process:22187): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0003/HID-SENSOR-200083.6.auto/iio:device2
** (process:22187): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0003/HID-SENSOR-200083.6.auto/iio:device2 of type compass at IIO Buffer Compass
** (process:22187): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0003/HID-SENSOR-200073.4.auto/trigger0
** (process:22187): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:22187): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:22187): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:22187): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:22187): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:22187): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:22187): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0003/HID-SENSOR-200041.9.auto/trigger5
** (process:22187): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:22187): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:22187): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-8/2-8:1.0/0003:048D:8350.0003/HID-SENSOR-200083.6.auto/trigger2
** (process:22187): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:22187): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:22187): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:22187): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:22187): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:22187): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:22187): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:22187): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:22187): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:22187): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:22187): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:22187): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available
** (process:22187): DEBUG: No new data available

And:

rrs@learner:/usr/share/doc/iio-sensor-proxy$ gdbus introspect --system --dest net.hadess.SensorProxy --object-path /net/hadess/SensorProxy
node /net/hadess/SensorProxy {
  interface org.freedesktop.DBus.Properties {
    methods:
      Get(in  s interface_name,
          in  s property_name,
          out v value);
      GetAll(in  s interface_name,
             out a{sv} properties);
      Set(in  s interface_name,
          in  s property_name,
          in  v value);
    signals:
      PropertiesChanged(s interface_name,
                        a{sv} changed_properties,
                        as invalidated_properties);
    properties:
  };
  interface org.freedesktop.DBus.Introspectable {
    methods:
      Introspect(out s xml_data);
    signals:
    properties:
  };
  interface org.freedesktop.DBus.Peer {
    methods:
      Ping();
      GetMachineId(out s machine_uuid);
    signals:
    properties:
  };
  interface net.hadess.SensorProxy {
    methods:
      ClaimAccelerometer();
      ReleaseAccelerometer();
      ClaimLight();
      ReleaseLight();
    signals:
    properties:
      readonly b HasAccelerometer = true;
      readonly s AccelerometerOrientation = 'undefined';
      readonly b HasAmbientLight = true;
      readonly s LightLevelUnit = 'lux';
      readonly d LightLevel = 0.0;
  };
  node Compass {
  };
};
2015-10-04 / 15:23:33 ♒♒♒  ☺    

Is it expected ? The Orientation is marked as 'undefined' ???
And monitor-sensor does not seem to be giving any output. I remember it did give meaningful output when I was initiailly packaging it.

Fix accelerometer detection

The BMA250 inside the WinBook TW100 isn't detected as an accelerometer because we expect the buffered/triggered sensor to be a HID sensor, and we hard-code names for the polling one. We need to do better.

MacBook Pro <Early 2011>

Testing with my 'old' MacBook. Theoretically it detects devices right, but does not appear the "IIO Accelerometer Proxy" udev after run it $ udevadm info --export-db.

The debug output:

$ G_MESSAGES_DEBUG=all /usr/local/sbin/iio-sensor-proxy    
** (process:3476): DEBUG: Found HWMon light at /sys/devices/platform/applesmc.768
** (process:3476): DEBUG: Found device /sys/devices/platform/applesmc.768 of type ambient light sensor at Platform HWMon Light
** (process:3476): DEBUG: iio-sensor-proxy is already running

Lenovo Thinkpad Yoga 12

I run Ubuntu GNOME 15.10 (upgraded to Gnome 3.18 with staging ppa) and since it seems 3.18 supports screen rotation (and brightness adjustment) although this does not work on my laptop, I followed the different steps in the readme document.

I'm sorry, I tried to attach the files but it doesn't seem to work (it reads: Something went really wrong, and we can’t process that file.) Please see copy/past below:

node /net/hadess/SensorProxy {
interface org.freedesktop.DBus.Properties {
methods:
Get(in s interface_name,
in s property_name,
out v value);
GetAll(in s interface_name,
out a{sv} properties);
Set(in s interface_name,
in s property_name,
in v value);
signals:
PropertiesChanged(s interface_name,
a{sv} changed_properties,
as invalidated_properties);
properties:
};
interface org.freedesktop.DBus.Introspectable {
methods:
Introspect(out s xml_data);
signals:
properties:
};
interface org.freedesktop.DBus.Peer {
methods:
Ping();
GetMachineId(out s machine_uuid);
signals:
properties:
};
interface net.hadess.SensorProxy {
methods:
ClaimAccelerometer();
ReleaseAccelerometer();
ClaimLight();
ReleaseLight();
signals:
properties:
readonly b HasAccelerometer = true;
readonly s AccelerometerOrientation = 'undefined';
readonly b HasAmbientLight = true;
readonly s LightLevelUnit = 'lux';
readonly d LightLevel = 0.0;
};
node Compass {
};
};

The output of DEBUG is:

** (process:7390): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.7/3-1.7:1.0/0003:0483:91D1.0002/HID-SENSOR-200041.7.auto/iio:device1
** (process:7390): DEBUG: Found device /sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.7/3-1.7:1.0/0003:0483:91D1.0002/HID-SENSOR-200041.7.auto/iio:device1 of type ambient light sensor at IIO Buffer Light sensor
** (process:7390): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.7/3-1.7:1.0/0003:0483:91D1.0002/HID-SENSOR-200073.2.auto/iio:device4
** (process:7390): DEBUG: Found device /sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.7/3-1.7:1.0/0003:0483:91D1.0002/HID-SENSOR-200073.2.auto/iio:device4 of type accelerometer at IIO Buffer accelerometer
** (process:7390): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.7/3-1.7:1.0/0003:0483:91D1.0002/HID-SENSOR-200083.4.auto/iio:device5
** (process:7390): DEBUG: Found device /sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.7/3-1.7:1.0/0003:0483:91D1.0002/HID-SENSOR-200083.4.auto/iio:device5 of type compass at IIO Buffer Compass
** (process:7390): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.7/3-1.7:1.0/0003:0483:91D1.0002/HID-SENSOR-200073.2.auto/trigger4
** (process:7390): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.7/3-1.7:1.0/0003:0483:91D1.0002/HID-SENSOR-200041.7.auto/trigger1
** (process:7390): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:1d.0/usb3/3-1/3-1.7/3-1.7:1.0/0003:0483:91D1.0002/HID-SENSOR-200083.4.auto/trigger5
** (process:7390): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:7390): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:7390): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:7390): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:7390): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device

Regards,

Thomas

Yoga 900 rotation issues

Running Gnome 3.18 from Ubuntu's PPA, which should have the rotation support, and w/ the github version of iio-sensor-proxy, I can see the sensors updating in watch -n 0.1 cat /sys/bus/iio/devices/iio\:device*/*raw*

But G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy seems to not be seeing any of the updates (log attached).

-Nish
GMESSAGES.txt

Use in_accel_scale

See issue #1

Since the iio API is silly, the numbers read from the sensor (or some of them) need to be multiplied by in_accel_scale for iio-sensor-proxy to work with certain types of accelerometers, such as the one on the Thinkpad Twist.

build failure on Debian sid

I'm trying to build this on Debian sid, and I get the following build failure.

rrs@learner:/Community/iio-sensor-proxy (master)$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking for a sed that does not truncate output... /bin/sed
checking whether gcc understands -Wall... yes
checking whether gcc understands -Wstrict-prototypes... yes
checking whether gcc understands -Wnested-externs... yes
checking whether gcc understands -Werror=missing-prototypes... yes
checking whether gcc understands -Werror=implicit-function-declaration... yes
checking whether gcc understands -Werror=pointer-arith... yes
checking whether gcc understands -Werror=init-self... yes
checking whether gcc understands -Werror=format-security... no
checking whether gcc understands -Werror=format=2... yes
checking whether gcc understands -Werror=missing-include-dirs... yes
checking what warning flags to pass to the C compiler... -Wall -Wstrict-prototypes -Wnested-externs -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -Werror=missing-include-dirs
checking what language compliance flags to pass to the C compiler...
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtk-doc... yes
checking for gtkdoc-check... gtkdoc-check.test
checking for gtkdoc-check... /usr/bin/gtkdoc-check
checking for gtkdoc-rebase... /usr/bin/gtkdoc-rebase
checking for gtkdoc-mkpdf... /usr/bin/gtkdoc-mkpdf
checking whether to build gtk-doc documentation... no
checking for GTKDOC_DEPS... yes
checking for IIO_SENSOR_PROXY... yes
checking for gdbus-codegen... /usr/bin/gdbus-codegen
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating data/Makefile
config.status: creating src/Makefile
config.status: creating docs/Makefile
config.status: creating docs/version.xml
config.status: executing depfiles commands
16:06 ♒♒♒ ☺
rrs@learner:
/Community/iio-sensor-proxy (master)$ make
Making all in data
make[1]: Entering directory '/media/SSHD/rrs-home/Community/iio-sensor-proxy/data'
GEN iio-sensor-proxy.service
make[1]: Leaving directory '/media/SSHD/rrs-home/Community/iio-sensor-proxy/data'
Making all in src
make[1]: Entering directory '/media/SSHD/rrs-home/Community/iio-sensor-proxy/src'
GEN iio-sensor-proxy-resources.c
GEN iio-sensor-proxy-resources.h
make all-am
make[2]: Entering directory '/media/SSHD/rrs-home/Community/iio-sensor-proxy/src'
CC monitor_sensor-monitor-sensor.o
CCLD monitor-sensor
CC fake_input_accelerometer-fake-input-accelerometer.o
CCLD fake-input-accelerometer
CC iio_sensor_proxy-iio-sensor-proxy.o
CC iio_sensor_proxy-orientation.o
CC iio_sensor_proxy-drv-iio-buffer-accel.o
CC iio_sensor_proxy-drv-iio-poll-accel.o
CC iio_sensor_proxy-drv-input-accel.o
CC iio_sensor_proxy-drv-fake-compass.o
CC iio_sensor_proxy-drv-fake-light.o
CC iio_sensor_proxy-drv-iio-poll-light.o
CC iio_sensor_proxy-drv-hwmon-light.o
CC iio_sensor_proxy-drv-iio-buffer-light.o
CC iio_sensor_proxy-drv-iio-buffer-compass.o
CC iio_sensor_proxy-iio-buffer-utils.o
CC iio_sensor_proxy-iio-sensor-proxy-resources.o
CCLD iio-sensor-proxy
iio_sensor_proxy-drv-iio-buffer-accel.o: In function driver_discover': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: multiple definition ofdriver_discover'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: first defined here
iio_sensor_proxy-drv-iio-buffer-accel.o: In function driver_open': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: multiple definition ofdriver_open'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: first defined here
iio_sensor_proxy-drv-iio-buffer-accel.o: In function driver_set_polling': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: multiple definition ofdriver_set_polling'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: first defined here
iio_sensor_proxy-drv-iio-buffer-accel.o: In function driver_close': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: multiple definition ofdriver_close'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: first defined here
iio_sensor_proxy-drv-iio-poll-accel.o: In function driver_discover': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: multiple definition ofdriver_discover'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: first defined here
iio_sensor_proxy-drv-iio-poll-accel.o: In function driver_open': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: multiple definition ofdriver_open'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: first defined here
iio_sensor_proxy-drv-iio-poll-accel.o: In function driver_set_polling': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: multiple definition ofdriver_set_polling'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: first defined here
iio_sensor_proxy-drv-iio-poll-accel.o: In function driver_close': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: multiple definition ofdriver_close'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: first defined here
iio_sensor_proxy-drv-input-accel.o: In function driver_discover': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: multiple definition ofdriver_discover'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: first defined here
iio_sensor_proxy-drv-input-accel.o: In function driver_open': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: multiple definition ofdriver_open'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: first defined here
iio_sensor_proxy-drv-input-accel.o: In function driver_set_polling': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: multiple definition ofdriver_set_polling'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: first defined here
iio_sensor_proxy-drv-input-accel.o: In function driver_close': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: multiple definition ofdriver_close'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: first defined here
iio_sensor_proxy-drv-fake-compass.o: In function driver_discover': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: multiple definition ofdriver_discover'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: first defined here
iio_sensor_proxy-drv-fake-compass.o: In function driver_open': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: multiple definition ofdriver_open'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: first defined here
iio_sensor_proxy-drv-fake-compass.o: In function driver_set_polling': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: multiple definition ofdriver_set_polling'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: first defined here
iio_sensor_proxy-drv-fake-compass.o: In function driver_close': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: multiple definition ofdriver_close'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: first defined here
iio_sensor_proxy-drv-fake-light.o: In function driver_discover': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: multiple definition ofdriver_discover'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: first defined here
iio_sensor_proxy-drv-fake-light.o: In function driver_open': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: multiple definition ofdriver_open'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: first defined here
iio_sensor_proxy-drv-fake-light.o: In function driver_set_polling': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: multiple definition ofdriver_set_polling'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: first defined here
iio_sensor_proxy-drv-fake-light.o: In function driver_close': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: multiple definition ofdriver_close'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: first defined here
iio_sensor_proxy-drv-iio-poll-light.o: In function driver_discover': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: multiple definition ofdriver_discover'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: first defined here
iio_sensor_proxy-drv-iio-poll-light.o: In function driver_open': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: multiple definition ofdriver_open'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: first defined here
iio_sensor_proxy-drv-iio-poll-light.o: In function driver_set_polling': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: multiple definition ofdriver_set_polling'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: first defined here
iio_sensor_proxy-drv-iio-poll-light.o: In function driver_close': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: multiple definition ofdriver_close'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: first defined here
iio_sensor_proxy-drv-hwmon-light.o: In function driver_discover': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: multiple definition ofdriver_discover'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: first defined here
iio_sensor_proxy-drv-hwmon-light.o: In function driver_open': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: multiple definition ofdriver_open'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: first defined here
iio_sensor_proxy-drv-hwmon-light.o: In function driver_set_polling': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: multiple definition ofdriver_set_polling'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: first defined here
iio_sensor_proxy-drv-hwmon-light.o: In function driver_close': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: multiple definition ofdriver_close'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: first defined here
iio_sensor_proxy-drv-iio-buffer-light.o: In function driver_discover': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: multiple definition ofdriver_discover'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: first defined here
iio_sensor_proxy-drv-iio-buffer-light.o: In function driver_open': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: multiple definition ofdriver_open'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: first defined here
iio_sensor_proxy-drv-iio-buffer-light.o: In function driver_set_polling': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: multiple definition ofdriver_set_polling'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: first defined here
iio_sensor_proxy-drv-iio-buffer-light.o: In function driver_close': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: multiple definition ofdriver_close'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: first defined here
iio_sensor_proxy-drv-iio-buffer-compass.o: In function driver_discover': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: multiple definition ofdriver_discover'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:74: first defined here
iio_sensor_proxy-drv-iio-buffer-compass.o: In function driver_open': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: multiple definition ofdriver_open'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:87: first defined here
iio_sensor_proxy-drv-iio-buffer-compass.o: In function driver_set_polling': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: multiple definition ofdriver_set_polling'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:100: first defined here
iio_sensor_proxy-drv-iio-buffer-compass.o: In function driver_close': /home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: multiple definition ofdriver_close'
iio_sensor_proxy-iio-sensor-proxy.o:/home/rrs/Community/iio-sensor-proxy/src/drivers.h:111: first defined here
collect2: error: ld returned 1 exit status
Makefile:459: recipe for target 'iio-sensor-proxy' failed
make[2]: *** [iio-sensor-proxy] Error 1
make[2]: Leaving directory '/media/SSHD/rrs-home/Community/iio-sensor-proxy/src'
Makefile:332: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/media/SSHD/rrs-home/Community/iio-sensor-proxy/src'
Makefile:343: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
16:06 ♒♒♒ ☹ => 2

Panasonic cf-mx

Hello,

I am running on a panasonic cfmx4 and it seems it can't read any sensor data. I tried both the git version and the arch version without success.

It appear to me that it may be an issue related to this specific device, but other than that I am rather clueless. I would be thankful if anyone could hint me on how to get this working.

Here are the logs I could collect.

kernel is the following:

Linux 4.2.0-3-ARCH #1 SMP PREEMPT Fri Sep 4 20:59:11 UTC 2015 x86_64 GNU/Linux

sudo G_MESSAGES_DEBUG=all iio-sensor-proxy

** (process:3458): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200041.7.auto/iio:device1
** (process:3458): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200041.7.auto/iio:device1 of type ambient light sensor at IIO Buffer Light sensor
** (process:3458): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/iio:device2
** (process:3458): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/iio:device2 of type accelerometer at IIO Buffer accelerometer
** (process:3458): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200083.4.auto/iio:device5
** (process:3458): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200083.4.auto/iio:device5 of type compass at IIO Buffer Compass
** (process:3458): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/trigger2
** (process:3458): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200041.7.auto/trigger1
** (process:3458): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200083.4.auto/trigger5
** (process:3458): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3458): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:3458): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:3458): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:3458): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:3458): DEBUG: No new data available
** (process:3458): DEBUG: No new data available
** (process:3458): DEBUG: No new data available
** (process:3458): DEBUG: No new data available
** (process:3458): DEBUG: No new data available
** (process:3458): DEBUG: No new data available
** (process:3458): DEBUG: No new data available
** (process:3458): DEBUG: No new data available

monitor-sensor returns nothing

dmesg for the device id

[    7.032572] hid-generic 0003:04B5:0680.0002: hiddev0,hidraw0: USB HID v1.12 Device [Kionix Inc Kionix Sensor Hub F:0006 SI:0001 R2] on usb-0000:00:14.0-3/input1

udevadm info --export-db

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200041.7.auto/iio:device1
N: iio:device1
E: DEVNAME=/dev/iio:device1
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200041.7.auto/iio:device1
E: DEVTYPE=iio_device
E: MAJOR=243
E: MINOR=1
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7040485

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200041.7.auto/trigger1
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200041.7.auto/trigger1
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7038475

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto
E: DEVTYPE=mfd_device
E: DRIVER=hid_sensor_accel_3d
E: MODALIAS=platform:HID-SENSOR-200073
E: SUBSYSTEM=platform

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/iio:device2
N: iio:device2
E: DEVNAME=/dev/iio:device2
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/iio:device2
E: DEVTYPE=iio_device
E: MAJOR=243
E: MINOR=2
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7042907

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/trigger2
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/trigger2
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7045790

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200076.3.auto
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200076.3.auto
E: DEVTYPE=mfd_device
E: DRIVER=hid_sensor_gyro_3d
E: MODALIAS=platform:HID-SENSOR-200076
E: SUBSYSTEM=platform

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200076.3.auto/iio:device0
N: iio:device0
E: DEVNAME=/dev/iio:device0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200076.3.auto/iio:device0
E: DEVTYPE=iio_device
E: MAJOR=243
E: MINOR=0
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7037970

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200076.3.auto/trigger0
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200076.3.auto/trigger0
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7038963

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200083.4.auto
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200083.4.auto
E: DEVTYPE=mfd_device
E: DRIVER=hid_sensor_magn_3d
E: MODALIAS=platform:HID-SENSOR-200083
E: SUBSYSTEM=platform

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200083.4.auto/iio:device5
N: iio:device5
E: DEVNAME=/dev/iio:device5
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200083.4.auto/iio:device5
E: DEVTYPE=iio_device
E: MAJOR=243
E: MINOR=5
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7048395

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200083.4.auto/trigger5
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200083.4.auto/trigger5
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7048474

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200086.6.auto
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200086.6.auto
E: DEVTYPE=mfd_device
E: DRIVER=hid_sensor_incl_3d
E: MODALIAS=platform:HID-SENSOR-200086
E: SUBSYSTEM=platform

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200086.6.auto/iio:device4
N: iio:device4
E: DEVNAME=/dev/iio:device4
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200086.6.auto/iio:device4
E: DEVTYPE=iio_device
E: MAJOR=243
E: MINOR=4
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7049654

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200086.6.auto/trigger4
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200086.6.auto/trigger4
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7050333

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-20008a.5.auto
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-20008a.5.auto
E: DEVTYPE=mfd_device
E: DRIVER=hid_sensor_rotation
E: MODALIAS=platform:HID-SENSOR-20008a
E: SUBSYSTEM=platform

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-20008a.5.auto/iio:device3
N: iio:device3
E: DEVNAME=/dev/iio:device3
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-20008a.5.auto/iio:device3
E: DEVTYPE=iio_device
E: MAJOR=243
E: MINOR=3
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7045224

P: /devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-20008a.5.auto/trigger3
E: DEVPATH=/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-20008a.5.auto/trigger3
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=7044050

ls /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/iio:device2

buffer               in_accel_offset              in_accel_x_raw  name           subsystem
dev                  in_accel_sampling_frequency  in_accel_y_raw  power          trigger
in_accel_hysteresis  in_accel_scale               in_accel_z_raw  scan_elements  uevent

ls /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/iio:device2/scan_elements

in_accel_x_en     in_accel_x_type  in_accel_y_index  in_accel_z_en     in_accel_z_type
in_accel_x_index  in_accel_y_en    in_accel_y_type   in_accel_z_index

time cat /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/2-3:1.0/0003:04B5:0680.0001/HID-SENSOR-200073.2.auto/iio:device2/in_accel_x_raw

0

real  0m5.000s
user  0m0.000s
sys 0m0.000s

lsusb | grep 04b5:0680
Bus 002 Device 002: ID 04b5:0680 ROHM LSI Systems USA, LLC

Thanks in advance.

Blaise

Does not come back after sleep/wake up

This works handsomely on TP Yoga S1 (0483:91d1) on 3.18.3 (F21) but only until the first sleep.
Restarting the service apparently isn't enough to make it work again; only a restart would do. Probably a rmmod/moprobe cycle is necessary, but I was unable to find out which modules and in what order.

[FR] invert axes knob

g186eb78 tested to work for me on Aava Inari 8 tablet under 3.18-rc6/x86_64 (ALT Linux); the device is somewhat peculiar: its ports are on its bottom side on boot-up but both Linux kernel's framebuffer and X switch to the upside-down mode so the ports are on the upper side; this is convenient when one needs to access those but leads to some calibration confusion too (had to perform an upside-down one).

Thus it would be nice to either to communicate with input calibration or have a switch allowing to invert axes.

Timestamping values

IIO provides timestamps for data. They could be useful for the accelerometer.
For example, Qt uses them for gesture recognizing.

Dell XPS 12 (9Q23 Ivy bridge)

Hoy,
I'm trying to get this piece of SW for my laptop running 4.1.6 (ARCH)
udevadm lists various sensors properly producing something like that:

P: /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200083.5.auto/trigger2
E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200083.5.auto/trigger2
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=2697879

P: /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200086.4.auto
E: DEVPATH=/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200086.4.auto
E: DEVTYPE=mfd_device
E: DRIVER=hid_sensor_incl_3d
E: MODALIAS=platform:HID-SENSOR-200086
E: SUBSYSTEM=platform

However, when running monitor-sensor, I'm getting nothing.
Firing iioo-sensor-proxy by hand gives:

sudo G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy
** (process:16288): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200073.1.auto/iio:device4
** (process:16288): DEBUG: Found device /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200073.1.auto/iio:device4 of type accelerometer at IIO Buffer accelerometer
** (process:16288): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200083.5.auto/iio:device2
** (process:16288): DEBUG: Found device /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200083.5.auto/iio:device2 of type compass at IIO Buffer Compass
** (process:16288): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200073.1.auto/trigger4
** (process:16288): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:8087:0A05.0004/HID-SENSOR-200083.5.auto/trigger2
** (process:16288): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:16288): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0

Then aside from this launching monitor-sensor gives me ** (process:16288): DEBUG: No new data available in iio-sensor-proxy, and nothing in monitor-sensor.

Is this sufficient to observe sensor data, or is gnome mandatory ? I'm running plasma and not gnome.
Maybe a small hint on which file to use as OBJECT_PATH argument of dbus-send ?

(code has been built from git using the proposed flags for both ./autogen.sh and ./configure)

Cannot calibrate accelerator data to the right orientation

I'm using iio-sensor-proxy-1.1 and gnome-3.18 on Teclast X98 Air 3G.
The accelorator is recognized, and it surely works.
However, the orientation is always 90 degress anticlockwise to the right orientation indicated by the position of the tablet.
I didn't find any conf files to fix it.
(Under Windows, this issue is fixed by modifying the registry)

Updating to kernel 4.3.0 made iio-sensor-proxy stop working

I recently updated to kernel 4.3.0. Previously with kernel 4.2.4, iio-sensor-proxy was working great: auto-rotation, auto-brightness, the whole works. However immediately after booting into kernel 4.3.0, everything stopped working. Output of G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy running as root (and below that the output from same command but using Kernel 4.2.4), done after stopping the iio-sensor-proxy service as suggested in the README.md is pasted below. Please let me know if this is a kernel issue and does not belong here.

Kernel 4.3.0

** (process:2088): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/iio:device0
** (process:2088): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/iio:device0 of type ambient light sensor at IIO Buffer Light sensor
** (process:2088): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/iio:device1
** (process:2088): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/iio:device1 of type accelerometer at IIO Buffer accelerometer
** (process:2088): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/iio:device5
** (process:2088): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/iio:device5 of type compass at IIO Buffer Compass
** (process:2088): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/trigger1
** (process:2088): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/trigger0
** (process:2088): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2088): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:2088): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/trigger5
** (process:2088): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:2088): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:2088): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available
** (process:2088): DEBUG: No new data available

Kernel 4.2.4

** (process:17505): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/iio:device2
** (process:17505): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/iio:device2 of type ambient light sensor at IIO Buffer Light sensor
** (process:17505): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/iio:device0
** (process:17505): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/iio:device0 of type accelerometer at IIO Buffer accelerometer
** (process:17505): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/iio:device1
** (process:17505): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/iio:device1 of type compass at IIO Buffer Compass
** (process:17505): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.1.auto/trigger0
** (process:17505): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Built channel array for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Built channel array for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Built channel array for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.8.auto/trigger2
** (process:17505): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:17505): DEBUG: Built channel array for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:17505): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.3.auto/trigger1
** (process:17505): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Got type for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Built channel array for in_magn_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Built channel array for in_magn_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Built channel array for in_magn_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:17505): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:17505): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 8, -964, -308
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3
** (process:17505): DEBUG: Emitted orientation changed: from undefined to normal
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 3, -963, -308
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 5, -963, -321
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 4, -964, -318
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 4, -963, -314
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 4, -963, -314
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 7, -962, -318
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 4, -961, -311
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 8, -963, -333
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3
** (process:17505): DEBUG: No new data available
** (process:17505): DEBUG: Read from IIO: 3, -963, -310
** (process:17505): DEBUG: Accel sent by driver (quirk applied): 0, 9, -3

INVN6500 Sensor not detected

Hello. I'm tying to get your sensor proxy working on my Asus T100TAF, i'm running arch with systemd 223

P: /devices/platform/80860F41:02/i2c-2/i2c-INVN6500:00/iio:device0
N: iio:device0
E: DEVNAME=/dev/iio:device0
E: DEVPATH=/devices/platform/80860F41:02/i2c-2/i2c-INVN6500:00/iio:device0
E: DEVTYPE=iio_device
E: MAJOR=248
E: MINOR=0
E: SUBSYSTEM=iio
E: SYSTEMD_WANTS=iio-sensor-proxy.service
E: TAGS=:systemd:
E: USEC_INITIALIZED=14379568

[pinkflozd@Bazdara-T100TAF ~]$ G_MESSAGES_DEBUG=all iio-sensor-proxy
** (process:1113): DEBUG: Could not find any supported sensors

How can i debug it further?
the sensor is getting data

[pinkflozd@Bazdara-T100TAF ~]$ cat /sys/bus/iio/devices/iio:device0/in_accel_x_raw
-304
[pinkflozd@Bazdara-T100TAF ~]$ cat /sys/bus/iio/devices/iio:device0/in_accel_y_raw
14304
[pinkflozd@Bazdara-T100TAF ~]$ cat /sys/bus/iio/devices/iio:device0/in_accel_z_raw
-8092

Yoga 2 Pro gnome-settings-daemon stops working after a while

Hi, I didn't know of a better place to post this.
I am using Arch Linux with GNOME 3.18, and this proxy to provide screen auto rotation.
After a while however (can't pinpoint what's causing it), auto rotation stops working. I have checked the output of monitor-sensor and it is still running, giving messages such as:

** Message: Accelerometer orientation changed: left-up

Either reloading GNOME shell (Alt-F2 + r) or running "killall gnome-settings-daemon" help (temporarily) solve the issue, but I'd much rather prefer it not happening.
The output of "G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy" is:

** (process:7135): DEBUG: Found als at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.9.auto/iio:device5
** (process:7135): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.9.auto/iio:device5 of type ambient light sensor at IIO Buffer Light sensor
** (process:7135): DEBUG: Found accel_3d at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.2.auto/iio:device3
** (process:7135): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.2.auto/iio:device3 of type accelerometer at IIO Buffer accelerometer
** (process:7135): DEBUG: Found magn_3d at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.4.auto/iio:device2
** (process:7135): DEBUG: Found device /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.4.auto/iio:device2 of type compass at IIO Buffer Compass
** (process:7135): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.2.auto/trigger3
** (process:7135): WARNING *: Failed to write current_trigger file Permission denied
*
(process:7135): WARNING *: Could not open for write '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200073.2.auto/iio:device3/buffer/enable'
*
(process:7135): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.9.auto/trigger5
** (process:7135): WARNING *: Failed to write current_trigger file Permission denied
*
(process:7135): WARNING *: Could not open for write '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200041.9.auto/iio:device5/buffer/enable'
*
(process:7135): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.4.auto/trigger2
** (process:7135): WARNING *: Failed to write current_trigger file Permission denied
*
(process:7135): WARNING **: Could not open for write '/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/0003:2047:0855.0001/HID-SENSOR-200083.4.auto/iio:device2/buffer/enable'

wayland support

Hello,

What are the plans for Wayland support ?
Is it something that the infrastructure allows toady, or will we have to wait until Wayland has feature parity with Xorg.

sensitivity on yoga 2 pro

It works correctly on my yoga 2 pro, but sometimes changes the orientation while not rotating the screen. Is there any way to adjust the accelerometer sensitivity (assuming this is the cause) ?

Only works after waking from suspend (Yoga 3 Pro)

I was really frustrated trying to get this to work the other day when I first installed it. Using introspect I would get something like this:

interface net.hadess.SensorProxy {
    methods:
      ClaimAccelerometer();
      ReleaseAccelerometer();
      ClaimLight();
      ReleaseLight();
    signals:
    properties:
      readonly b HasAccelerometer = true;
      readonly s AccelerometerOrientation = 'undefined';
      readonly b HasAmbientLight = true;
      readonly s LightLevelUnit = 'lux';
      readonly d LightLevel = 0.0;
  };

Today I noticed it was working fine, so I was surprised. After a restart though, it stopped working again. I finally figured out that if I close the laptop screen, which puts it into suspend mode, then it will work once I open the screen again. I now get something like this that changes depending on the orientation or light level.

 interface net.hadess.SensorProxy {
    methods:
      ClaimAccelerometer();
      ReleaseAccelerometer();
      ClaimLight();
      ReleaseLight();
    signals:
    properties:
      readonly b HasAccelerometer = true;
      readonly s AccelerometerOrientation = 'normal';
      readonly b HasAmbientLight = true;
      readonly s LightLevelUnit = 'lux';
      readonly d LightLevel = 289.51999352872372;
  };

I'm still curious if this has something to do with closing the screen specifically, or going into suspend mode. Ideally this would work as soon as the computer is started.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.