SUMMARY *** I've got a 2-in-1 laptop. The automatic screen rotation works well but when I flip the screen to the left or to the right (90 degree), the screen is inverted (the task bar is located above whereas it should be at the bottom). So, it is no good. iio-sensor-proxy is installed and my laptop is well defined in 60-sensor.hwdb file (ACCEL_MOUNT_MATRIX=-1, 0, 0; 0, 1, 0; 0, 0, 1). *** STEPS TO REPRODUCE 1. Start a Plasma Wayland Session 2. Enable Automatic screen rotation, even when not in tablet mode 3. Turn my laptop in all directions. OBSERVED RESULT Normal mode = ok. 360 degree= ok. 90 degree left= screen inverted. 90 degree right= screen inverted. EXPECTED RESULT 90 degree left= screen not inverted. 90 degree right= screen not inverted. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro 21.2 rc1 KDE Plasma Version: 5.23.4 KDE Frameworks Version: 5.88 Qt Version: 5.15.2
Please check the output of "monitor-sensor" for whether or not the rotation sensor itself is working correctly, it's most likely a driver bug / hardware quirk
Hello, here are the results of monitor-sensor: Right: Right-up Horizontal: normal Left: Left-up. Thanks Regards.
Works fine for my 2-in-1 FWIW, so it's at least not universally broken.
Definitely a driver / configuration issue then. AFAIK right should be "left up" and vice versa, the ACCEL_MOUNT_MATRIX probably needs adjusting