We’ve got a new Lenovo ThinkPad X390 Yoga which I’ve installed Fedora 32 on. All seems fine, except screen rotation when it’s in tablet mode. It works intermittently and I can’t figure out any particular pattern as to when it works and when it does not. GNOME3 has correctly detected the accelerometer and is displaying the screen rotation options on the menu. If I run monitor-sensor in a terminal window and I rotate the screen, if it works I see the expected output in the terminal. Here’s an example:
$ monitor-sensor Waiting for iio-sensor-proxy to appear +++ iio-sensor-proxy appeared === Has accelerometer (orientation: normal) === No ambient light sensor === No proximity sensor ^C $ sudo systemctl restart iio-sensor-proxy [sudo] password for XXXXX: $ monitor-sensor Waiting for iio-sensor-proxy to appear +++ iio-sensor-proxy appeared === Has accelerometer (orientation: undefined) === No ambient light sensor === No proximity sensor Accelerometer orientation changed: left-up ^C
What you can’t see is the first time I run monitor-sensor I rotated the laptop everywhere and nothing happened. Then you can see the iio-sensor-proxy restart I did then, after a few seconds, the screen rotated. You see that with the line " Accelerometer orientation changed: left-up" but then nothing after. I waved the laptop everywhere, nada, so I quit monitor-sensor, restarted iio-sensor-proxy a few times, was giving up when it suddenly righted itself again.
I can’t tell if the accelerometer is plain broken and working intermittently or this is a software bug. My main problem is I don’t even know where to start debugging this! Can anybody help?