Auto rotate in tablet mode broken for Lenovo Thinkpad X1 Yoga (1g)
Affected version
Device Lenovo Thinkpad X1 yoga 1gen Fedora 34, wayland, gnome-shell 40.3-1.fc34 (latest updates) kernel 5.13.4-200.fc34.x86_64
Bug summary
When switching to tablet mode (360 degree rotate keyboard) the screen does not auto rotate, although system detects that it is now in tablet mode -> shows "Lock screen rotation" button in menu.
Steps to reproduce
- Boot to desktop, laptop mode
- Rotate keyboard 360 degree
- Rotate screen
What happened
Screen stays in landscape.
What did you expect to happen
Screen orientation follows screen physical rotation.
Relevant logs, screenshots, screencasts etc.
- Accel works OK on ubuntu 21.04 with gnome 38 (tried it on a live image)
- Screen rotation using menu options in laptop mode works
- No errors or warnings in journalctl -f when reproducing
- iio service OK
`● iio-sensor-proxy.service - IIO Sensor Proxy service Loaded: loaded (/usr/lib/systemd/system/iio-sensor-proxy.service; static) Active: active (running) since Sun 2021-07-25 23:18:23 MSK; 20min ago Main PID: 1192 (iio-sensor-prox) Tasks: 3 (limit: 18277) Memory: 1.6M CGroup: /system.slice/iio-sensor-proxy.service └─1192 /usr/libexec/iio-sensor-proxy
июл 25 23:18:23 stonetoken systemd[1]: Starting IIO Sensor Proxy service... июл 25 23:18:23 stonetoken systemd[1]: Started IIO Sensor Proxy service. `
- no activity on monitor-sensor when rotating
Waiting for iio-sensor-proxy to appear +++ iio-sensor-proxy appeared === Has accelerometer (orientation: undefined) === Has ambient light sensor (value: 0,000000, unit: lux) === No proximity sensor
- Running Xorg session instead of Wayland does not affect bug.