Closed detached closed 7 years ago
The content of the buffer directory of the device is
cat ./buffer/enable
1
cat ./buffer/length
128
cat ./buffer/watermark
1
And the scan_elements:
cat ./scan_elements/in_accel_x_en
1
cat ./scan_elements/in_accel_x_index
0
cat ./scan_elements/in_accel_x_type
le:s32/32>>0
cat ./scan_elements/in_accel_y_en
1
cat ./scan_elements/in_accel_y_index
1
cat ./scan_elements/in_accel_y_type
le:s32/32>>0
cat ./scan_elements/in_accel_z_en
1
cat ./scan_elements/in_accel_z_index
2
cat ./scan_elements/in_accel_z_type
le:s32/32>>0
It looks like this is a bug of the hid-sensor-hub that doesn't setup the sensor well.
Works now with Kernel 4.11.3-200.fc25.x86_64
I am running the Lenovo Thinkpad Yoga 370 with Fedora 25 (4.10.13-200.fc25.x86_64).
The monitor-sensors command doesn't output anything:
When running the iio-sensors-proxy in debug mode the accelerometer is correctly detected, but no data is incoming:
And the strange thing is that
in_accel_x_raw
outputs values and rotates the screen when read:But it looks like the iio:device3 buffer doesn't contain any data. I added an extra log line to drv-iio-buffer-accel.c which writes:
Any idea what is wrong?