Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

Stopped working on HP Spectre x360 (2018, 8705G) #270

Closed
Unb0rn opened this issue May 16, 2019 · 0 comments · Fixed by #272
Closed

Stopped working on HP Spectre x360 (2018, 8705G) #270

Unb0rn opened this issue May 16, 2019 · 0 comments · Fixed by #272

Comments

@Unb0rn
Copy link

Unb0rn commented May 16, 2019

After updating to 2.6.1 (Running on Arch), GNOME screen rotation stopped working. Logs:

** (process:3790): DEBUG: 21:47:36.908: Found associated trigger at /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/trigger4
** (process:3790): DEBUG: 21:47:36.909: Found IIO buffer accelerometer at /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2
** (process:3790): DEBUG: 21:47:36.909: No autodetected location, falling back to display location
** (process:3790): DEBUG: 21:47:36.909: Found device /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2 of type accelerometer at IIO Buffer accelerometer
** (process:3790): DEBUG: 21:47:36.909: Found IIO buffer compass at /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4
** (process:3790): DEBUG: 21:47:36.909: Found device /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4 of type compass at IIO Buffer Compass
** (process:3790): DEBUG: 21:47:36.913: Found associated trigger at /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/trigger4
** (process:3790): DEBUG: 21:47:36.915: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/scan_elements/in_accel_x_en
** (process:3790): DEBUG: 21:47:36.915: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/scan_elements/in_accel_z_en
** (process:3790): DEBUG: 21:47:36.915: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/scan_elements/in_timestamp_en
** (process:3790): DEBUG: 21:47:36.915: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/scan_elements/in_accel_y_en
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_x_scale' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_accel_x_scale: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_scale' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_x_offset' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_accel_x_offset: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_offset' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_z_scale' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_accel_z_scale: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_scale' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_z_offset' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_accel_z_offset: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_offset' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_timestamp_scale' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_timestamp_scale: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_scale' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_scale: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_timestamp_offset' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_timestamp_offset: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_offset' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_offset: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Got type for in_timestamp: is signed: 1, bytes: 8, bits_used: 64, shift: 0, mask: 0x18446744073709551615, be: 0
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_y_scale' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_accel_y_scale: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_scale' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_y_offset' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2/in_accel_y_offset: No such file or directory
** (process:3790): DEBUG: 21:47:36.915: Trying to read 'in_accel_offset' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.10.auto/iio:device2'
** (process:3790): DEBUG: 21:47:36.915: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.915: Built channel array for in_accel_x: index: 0, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.915: Built channel array for in_accel_y: index: 1, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.915: Built channel array for in_accel_z: index: 2, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.915: Built channel array for in_timestamp: index: 3, is signed: 1, bytes: 8, bits_used: 64, shift: 0, mask: 0x18446744073709551615, be: 0
** (process:3790): DEBUG: 21:47:36.915: Failed to auto-detect mount matrix, falling back to identity
** (process:3790): DEBUG: 21:47:36.915: No autodetected location, falling back to display location
** (process:3790): DEBUG: 21:47:36.917: Found associated trigger at /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/trigger2
** (process:3790): DEBUG: 21:47:36.918: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/scan_elements/in_magn_z_en
** (process:3790): DEBUG: 21:47:36.918: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/scan_elements/in_magn_y_en
** (process:3790): DEBUG: 21:47:36.918: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/scan_elements/in_magn_x_en
** (process:3790): DEBUG: 21:47:36.918: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/scan_elements/in_rot_from_north_magnetic_tilt_comp_en
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_z_scale' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/in_magn_z_scale: No such file or directory
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_scale' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_z_offset' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/in_magn_z_offset: No such file or directory
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_offset' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_y_scale' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/in_magn_y_scale: No such file or directory
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_scale' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_y_offset' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/in_magn_y_offset: No such file or directory
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_offset' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_x_scale' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/in_magn_x_scale: No such file or directory
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_scale' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_x_offset' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/in_magn_x_offset: No such file or directory
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_magn_offset' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_rot_from_north_magnetic_tilt_comp_scale' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/in_rot_from_north_magnetic_tilt_comp_scale: No such file or directory
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_rot_scale' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_rot_from_north_magnetic_tilt_comp_offset' (name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: Failed to read float from /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4/in_rot_from_north_magnetic_tilt_comp_offset: No such file or directory
** (process:3790): DEBUG: 21:47:36.918: Trying to read 'in_rot_offset' (generic name) from dir '/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0004/HID-SENSOR-200083.19.auto/iio:device4'
** (process:3790): DEBUG: 21:47:36.918: 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:3790): DEBUG: 21:47:36.918: Built channel array for in_magn_x: index: 0, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.918: Built channel array for in_magn_y: index: 1, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.918: Built channel array for in_magn_z: index: 2, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.918: Built channel array for in_rot_from_north_magnetic_tilt_comp: index: 3, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3790): DEBUG: 21:47:36.919: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:3790): DEBUG: 21:47:36.919: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:3790): DEBUG: 21:47:37.620: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:37.620: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:37.620: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:37.620: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:37.621: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:38.321: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:38.322: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:38.322: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:38.322: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:38.322: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:39.023: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:39.023: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:39.023: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:39.023: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:39.023: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:39.724: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:39.724: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:39.724: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:39.724: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:39.724: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:40.425: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:40.425: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:40.425: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:40.425: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:40.425: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:41.126: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:41.126: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:41.126: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:41.126: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:41.126: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:41.827: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:41.827: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:41.827: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:41.827: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:41.827: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:42.528: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:42.528: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:42.528: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:42.528: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:42.528: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:43.229: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:43.229: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:43.229: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:43.229: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:43.229: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:43.930: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:43.930: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:43.930: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:43.930: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:43.930: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:44.631: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:44.631: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:44.631: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32
** (process:3790): DEBUG: 21:47:44.631: Accel read from IIO on 'iio:device2': 0, 0, 0 (scale 0.000010)
** (process:3790): DEBUG: 21:47:44.631: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.000010)
** (process:3790): DEBUG: 21:47:45.332: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0 bytes: 4 is_signed: 1 be: 0 shift: 0 bits_used: 32

hadess pushed a commit that referenced this issue May 19, 2019
On some machines, iio-sensor-proxy was returning all 0's for IIO sensor
values. It turns out that the bits_used for this sensor is 32, which makes
the mask calculation:

*mask = (1 << 32) - 1;

If the compiler interprets the 1 literals as 32-bit ints, it generates
undefined behavior depending on compiler version and optimization level.
On my system, it optimizes out the shift, so the mask value becomes

*mask = (1) - 1;

With a mask value of 0, iio-sensor-proxy will always return 0 for every axis.

Avoid incorrect 0 values caused by compiler optimization.

Closes: #270
hadess pushed a commit that referenced this issue May 20, 2019
On some machines, iio-sensor-proxy was returning all 0's for IIO sensor
values. It turns out that the bits_used for this sensor is 32, which makes
the mask calculation:

*mask = (1 << 32) - 1;

If the compiler interprets the 1 literals as 32-bit ints, it generates
undefined behavior depending on compiler version and optimization level.
On my system, it optimizes out the shift, so the mask value becomes

*mask = (1) - 1;

With a mask value of 0, iio-sensor-proxy will always return 0 for every axis.

Avoid incorrect 0 values caused by compiler optimization.

Closes: #270
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant