ThinkPad L13 Yoga Gen 2: tablet mode activates but screen does not rotate

My ThinkPad L13 Yoga Gen 2 doesn’t rotate the screen.
Tablet mode activates though, because the option to lock screen rotation appears, but screen doesn’t rotate regardless of lock screen option being enabled or not.

There are lots of bugs regarding this so I’m a bit lost on where to start debugging.

Any pointers?

$ monitor-sensor
Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: undefined)

(emphasis mine)


sudo dnf install iio-sensor-proxy-3.0-3.fc34.x86_64

Source: Version 3.1-1 Accelerometer stopped working on Toshiba X20W-D, worked fine in 3.0-1 (#328) · Issues · Bastien Nocera / iio-sensor-proxy · GitLab

Fixed by:
sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-10b1f23f5e