Constant orientation updates
Created by: aik
Tried this on Lenovo Yoga 710-11ISK - it keeps rotating the screen as the monitor-sensor keeps reporting changes. Fedora 27, iio-sensor-proxy has been compiled 15min ago, is that a broken sensor?
[root@aikyoga iio-sensor-proxy]# G_MESSAGES_DEBUG=all /usr/sbin/iio-sensor-proxy
** (process:3420): DEBUG: Found IIO buffer ALS at /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200041.9.auto/iio:device3
** (process:3420): DEBUG: Found device /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200041.9.auto/iio:device3 of type ambient light sensor at IIO Buffer Light sensor
** (process:3420): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200073.4.auto/trigger4
** (process:3420): DEBUG: Found IIO buffer accelerometer at /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200073.4.auto/iio:device4
** (process:3420): DEBUG: Found device /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200073.4.auto/iio:device4 of type accelerometer at IIO Buffer accelerometer
** (process:3420): DEBUG: Found IIO buffer compass at /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200083.6.auto/iio:device2
** (process:3420): DEBUG: Found device /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200083.6.auto/iio:device2 of type compass at IIO Buffer Compass
** (process:3420): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200073.4.auto/trigger4
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200073.4.auto/iio:device4/scan_elements/in_accel_y_en
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200073.4.auto/iio:device4/scan_elements/in_accel_x_en
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200073.4.auto/iio:device4/scan_elements/in_timestamp_en
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200073.4.auto/iio:device4/scan_elements/in_accel_z_en
** (process:3420): DEBUG: Got type for in_accel_y: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3420): DEBUG: Got type for in_accel_x: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3420): DEBUG: Got type for in_timestamp: is signed: 1, bytes: 8, bits_used: 64, shift: 0, mask: 0x18446744073709551615, be: 0
** (process:3420): DEBUG: Got type for in_accel_z: is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3420): DEBUG: Built channel array for in_accel_x: index: 0, is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3420): DEBUG: Built channel array for in_accel_y: index: 1, is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3420): DEBUG: Built channel array for in_accel_z: index: 2, is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3420): DEBUG: Built channel array for in_timestamp: index: 3, is signed: 1, bytes: 8, bits_used: 64, shift: 0, mask: 0x18446744073709551615, be: 0
** (process:3420): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200041.9.auto/trigger3
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200041.9.auto/iio:device3/scan_elements/in_illuminance_en
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200041.9.auto/iio:device3/scan_elements/in_intensity_both_en
** (process:3420): DEBUG: Got type for in_illuminance: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): DEBUG: Got type for in_intensity_both: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): DEBUG: Built channel array for in_intensity_both: index: 0, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): DEBUG: Built channel array for in_illuminance: index: 1, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): DEBUG: Found associated trigger at /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200083.6.auto/trigger2
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200083.6.auto/iio:device2/scan_elements/in_magn_z_en
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200083.6.auto/iio:device2/scan_elements/in_magn_y_en
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200083.6.auto/iio:device2/scan_elements/in_rot_from_north_magnetic_tilt_comp_en
** (process:3420): DEBUG: Already enabled sensor /sys/devices/pci0000:00/0000:00:15.0/i2c_designware.0/i2c-4/i2c-ITE8350:00/0018:048D:8350.0002/HID-SENSOR-200083.6.auto/iio:device2/scan_elements/in_magn_x_en
** (process:3420): DEBUG: Got type for in_magn_z: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): DEBUG: Got type for in_magn_y: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): 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:3420): DEBUG: Got type for in_magn_x: is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): DEBUG: Built channel array for in_magn_x: index: 0, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): DEBUG: Built channel array for in_magn_y: index: 1, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): DEBUG: Built channel array for in_magn_z: index: 2, is signed: 1, bytes: 4, bits_used: 32, shift: 0, mask: 0x0, be: 0
** (process:3420): DEBUG: Built channel array for in_rot_from_north_magnetic_tilt_comp: index: 3, is signed: 1, bytes: 4, bits_used: 16, shift: 0, mask: 0x65535, be: 0
** (process:3420): DEBUG: Handling driver refcounting method 'ClaimLight' for ambient light sensor device
** (process:3420): DEBUG: Handling driver refcounting method 'ClaimAccelerometer' for accelerometer device
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': -31, -859, -503 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): -31, -859, -503 (scale: 0.009807)
** (process:3420): DEBUG: Emitted orientation changed: from undefined to normal
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': 1607, 0, 23988 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): 1607, 0, 23988 (scale: 0.009807)
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': -22381, 11130, -23988 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): -22381, 11130, -23988 (scale: 0.009807)
** (process:3420): DEBUG: Emitted orientation changed: from normal to right-up
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': -46, -781, -625 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): -46, -781, -625 (scale: 0.009807)
** (process:3420): DEBUG: Emitted orientation changed: from right-up to normal
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': -35, -785, -625 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): -35, -785, -625 (scale: 0.009807)
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': -42, -781, -625 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): -42, -781, -625 (scale: 0.009807)
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': -22381, -4821, -1607 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): -22381, -4821, -1607 (scale: 0.009807)
** (process:3420): DEBUG: Emitted orientation changed: from normal to right-up
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': 0, 20774, 0 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): 0, 20774, 0 (scale: 0.009807)
** (process:3420): DEBUG: Emitted orientation changed: from right-up to bottom-up
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': 22381, -3214, 20774 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): 22381, -3214, 20774 (scale: 0.009807)
** (process:3420): DEBUG: Emitted orientation changed: from bottom-up to left-up
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': -20774, 23988, 1607 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): -20774, 23988, 1607 (scale: 0.009807)
** (process:3420): DEBUG: Emitted orientation changed: from left-up to right-up
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': 0, 20774, -22381 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): 0, 20774, -22381 (scale: 0.009807)
** (process:3420): DEBUG: Emitted orientation changed: from right-up to bottom-up
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': 0, 0, 0 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.009807)
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': 0, 0, 0 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.009807)
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': 0, 0, 0 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.009807)
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': 0, 0, 0 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.009807)
** (process:3420): DEBUG: No new data available on 'iio:device3'
** (process:3420): DEBUG: process_scan_1: channel_index: 0, chan_name: in_accel_x, channel_data_index: 0 location: 0
** (process:3420): DEBUG: process_scan_1: channel_index: 1, chan_name: in_accel_y, channel_data_index: 1 location: 4
** (process:3420): DEBUG: process_scan_1: channel_index: 2, chan_name: in_accel_z, channel_data_index: 2 location: 8
** (process:3420): DEBUG: Accel read from IIO on 'iio:device4': 0, 0, 0 (scale 0.009807)
** (process:3420): DEBUG: Accel sent by driver (quirk applied): 0, 0, 0 (scale: 0.009807)
^C
[root@aikyoga iio-sensor-proxy]#