Created attachment 1796910 [details] output of `/usr/libexec/iio-sensor-proxy --verbose` while playing with the device's physical orientation Description of problem: Version-Release number of selected component (if applicable): iio-sensor-proxy.x86_64 3.1-1.fc34 How reproducible: Always reproducible with 3.1-1. No problems with 3.0-3. `sensors-monitor` confirms orientation change is not detected with 3.1 but with 3.0. Steps to Reproduce: 1. Get X13 Yoga with fc34 gnome on wayland session 2. get into touch mode by turning screen more then 180° 3. ensure screen orientation is not locked in menu 4. open `sensors-monitor` in a terminal 4. change the orientation of the device Actual results: screen orientation does not change, sensors-monitor prints nothing new Expected results: screen orientation changes according to physical orientation, sensors-monitor prints Accelerometer orientation change. Additional info: I'd like to get a verbose output from version 3.0 but I don't know how I can get it. `--verbose` like on 3.1 seems to be ignored and `--replace` also. You can find the verbose output at least of 3.1 as attachment. As you can see, the numbers change as I change the orientation.
I can confirm this bug with an HP Spectre x360. The screen rotation does not work any more with version 3.1; with 3.0, it works. Interestingly, if I run `sudo /usr/libexec/iio-sensor-proxy --verbose` and rotate my device while this command is still running, the screen rotation works again, also with version 3.1.
I have the same issue on my Acer Spin SP313-51N with auto rotate only working on the downgraded 3.0 iio-sensor-proxy version. Interestingly running `sudo /usr/libexec/iio-sensor-proxy --verbose` in the background with the newest version of iio-sensor-proxy does not work on my convertible.
I observe a similar problem on my tablet (Trekstor S11B). The update of iio-sensor-proxy mentioned above caused the screen to be upside down in landscape mode. That is the default orientation when the entries in systemd's hwdb.d/60-sensor.hwdb file are missing. After downgrading to version 3.0-3, the problem is gone.
Same Problem with "Surface Go 2" - Fedora34. Downgrading by "dnf downgrade iio-sensor-proxy-3.0-3" and restarting "service iio-sensor-proxy restart" brought back auto-rotation.
Can confirm this bug with my Lenovo Yoga 710 11.6. When I fold the screen back the keyboard is turned off, but the trackpad remains active. Automatic screen rotation does not work, and no rotation options show in the menu or in system settings. Running monitor-sensor shows that the system is detecting correctly. I have iio-sensor-proxy-3.1.1 installed. However, trying to downgrade as suggested above "dnf downgrade iio-sensor-proxy-3.0-3" produces: "No package iio-sensor-proxy-3.0-3 available. Error: No packages marked for downgrade."
Update: can confirm that both automatic screen rotation and disabling of touchpad works correctly for me when logging in using Xorg - the problem only occurs on Wayland.
Confirm, does not work on Lenovo Yoga L13. Doesn't work in Wayland. Also doesn't work in Xorg session. Upd.: Rolling back to the previous version helped. Screen rotation works. Suitable as a temporary solution iio-sensor-proxy-3.0-3.fc34.x86_64
I can confirm this bug on a Dell Inspiron 5379. The laptop is a convertible. Rolling back iio-sensor-proxy to iio-sensor-proxy-3.0-3.fc34.x86_64 solves the problem. For those seeking for a temporary fix until next update: sudo dnf downgrade https://dl.fedoraproject.org/pub/fedora/linux/releases/34/Everything/x86_64/os/Packages/i/iio-sensor-proxy-3.0-3.fc34.x86_64.rpm sudo systemctl restart iio-sensor-proxy.service
FEDORA-2021-10b1f23f5e has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-10b1f23f5e
FEDORA-2021-10b1f23f5e has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-10b1f23f5e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-10b1f23f5e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
The login on bodhi seems to have a problem at the moment (ask.ferdoraproject.org doesn't work either) so I'm posting here. Doesn't work for me, I have the same problem as bedawi: ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.762: Found associated trigger at /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/trigger0 ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.762: 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.12.auto/iio:device0 ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.762: No auto-detected location, falling back to display location ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.762: Found device /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0 of type accelerometer at IIO Buffer accelerometer ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.766: Found associated trigger at /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/trigger0 ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.768: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/scan_elements/in_accel_x_en ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.768: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/scan_elements/in_accel_z_en ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.768: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/scan_elements/in_timestamp_en ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.768: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/scan_elements/in_accel_y_en ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.979: 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.12.auto/iio:device0' ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: 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.12.auto/iio:device0/in_accel_x_scale: Datei »/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/in_accel_x_scale« konnte nicht geöffnet werden: Datei oder Verzeichnis nicht gefunden ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: 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.12.auto/iio:device0' ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: 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.12.auto/iio:device0' ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: 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.12.auto/iio:device0/in_accel_x_offset: Datei »/sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/in_accel_x_offset« konnte nicht geöffnet werden: Datei oder Verzeichnis nicht gefunden ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: 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.12.auto/iio:device0' ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: 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.12.auto/iio:device0/in_accel_offset ** (iio-sensor-proxy:4416): WARNING **: 16:51:59.980: Problem reading scan element information: /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0 ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/scan_elements/in_accel_x_en ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/scan_elements/in_accel_z_en ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/scan_elements/in_timestamp_en ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: Already enabled sensor /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0/scan_elements/in_accel_y_en ** (iio-sensor-proxy:4416): DEBUG: 16:51:59.980: No sensors or missing kernel drivers for the sensors ○ iio-sensor-proxy.service - IIO Sensor Proxy service Loaded: loaded (/usr/lib/systemd/system/iio-sensor-proxy.service; static) Active: inactive (dead) since Sun 2021-08-15 17:04:57 CEST; 6s ago Process: 5207 ExecStart=/usr/libexec/iio-sensor-proxy (code=killed, signal=TERM) Main PID: 5207 (code=killed, signal=TERM) CPU: 37ms Aug 15 17:04:56 ningal systemd[1]: Starting IIO Sensor Proxy service... Aug 15 17:04:56 ningal systemd[1]: Started IIO Sensor Proxy service. Aug 15 17:04:57 ningal iio-sensor-prox[5207]: Problem reading scan element information: /sys/devices/pci0000:00/0000:00:13.0/{33AECD58-B679-4E54-9BD9-A04D34F0C226}/001F:8087:0AC2.0003/HID-SENSOR-200073.12.auto/iio:device0 Aug 15 17:04:57 ningal systemd[1]: iio-sensor-proxy.service: Deactivated successfully.
iio-sensor-proxy-3.3-1.fc34 fixed it for me. Thanks :)
Update after installing iio-sensor-proxy-3.3-1.fc34 and libgudev-237-1.fc34 - monitor-sensor shows that the system is detecting device orientation correctly. Keyboard AND touchpad are correctly disabled. However, still no screen rotation. Screen rotation does not appear as an option in the menu, so I can't check if it's locked or unlocked.
FEDORA-2021-10b1f23f5e has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.