Bug 1978419 - screen auto-rotation not working since update to 3.1 on X13 Yoga
Summary: screen auto-rotation not working since update to 3.1 on X13 Yoga
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: iio-sensor-proxy
Version: 34
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Igor Raits
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-01 18:36 UTC by Matthias Blümel
Modified: 2021-11-08 01:11 UTC (History)
9 users (show)

Fixed In Version: iio-sensor-proxy-3.3-1.fc34
Clone Of:
Environment:
Last Closed: 2021-11-08 01:11:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
output of `/usr/libexec/iio-sensor-proxy --verbose` while playing with the device's physical orientation (45.08 KB, text/plain)
2021-07-01 18:36 UTC, Matthias Blümel
no flags Details

Description Matthias Blümel 2021-07-01 18:36:15 UTC
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.

Comment 1 Joshua Noeske 2021-07-03 13:56:28 UTC
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.

Comment 2 Tobias S 2021-07-08 20:10:51 UTC
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.

Comment 3 Dahlhoff 2021-07-11 21:08:05 UTC
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.

Comment 4 dawenga 2021-07-14 07:57:38 UTC
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.

Comment 5 yangmusa 2021-08-01 00:09:23 UTC
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."

Comment 6 yangmusa 2021-08-01 00:41:27 UTC
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.

Comment 7 Alexander Y. Dmitriev 2021-08-01 06:55:16 UTC
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

Comment 8 Dahlhoff 2021-08-01 20:01:00 UTC
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

Comment 9 Fedora Update System 2021-08-14 23:00:05 UTC
FEDORA-2021-10b1f23f5e has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-10b1f23f5e

Comment 10 Fedora Update System 2021-08-15 02:01:52 UTC
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.

Comment 11 Matthias Blümel 2021-08-15 15:06:03 UTC
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.

Comment 12 Fedora Update System 2021-08-16 13:53:01 UTC
FEDORA-2021-10b1f23f5e has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-10b1f23f5e

Comment 13 Fedora Update System 2021-08-17 01:08:47 UTC
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.

Comment 14 Matthias Blümel 2021-08-17 06:38:49 UTC
iio-sensor-proxy-3.3-1.fc34 fixed it for me. Thanks :)

Comment 15 yangmusa 2021-08-17 16:52:54 UTC
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.

Comment 16 Fedora Update System 2021-11-08 01:11:29 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.