packages icon indicating copy to clipboard operation
packages copied to clipboard

KDE Plasma does not auto rotate screen in Wayland

Open TraceyC77 opened this issue 1 year ago • 18 comments

Summary

With the latest KDE Plasma snapshot of 2024-02-02, autorotate does not work in a Wayland session Part of Better 2-in-1 support ootb for all editions

Steps to reproduce

  1. Boot a 2-in-1 system with the 2024-02-02 Plasma ISO
  2. Fold the keyboard back to enable tablet mode
  3. Rotate the machine

Expected result

The screen rotates according to orientation

Actual result

The screen is not rotated

Environment

  • [X] Is system up to date?

Repo

Shannon (stable)

Desktop Environment

Plasma

System details

Operating System: Solus 4.5 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.114.0 Qt Version: 5.15.12 Kernel Version: 6.6.15-272.current (64-bit) Graphics Platform: Wayland Processors: 8 × AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx Memory: 17.5 GiB of RAM Graphics Processor: AMD Radeon Vega 10 Graphics Manufacturer: LENOVO Product Name: 81SS System Version: Lenovo IdeaPad FLEX-14API

Other comments

Main tracking issue: getsolus/packages/issues/1344

TraceyC77 avatar Feb 08 '24 21:02 TraceyC77

Is iio-sensor-proxy installed, if so what does monitor-sensor command show while rotating the device?

Justinzobel avatar Feb 09 '24 00:02 Justinzobel

iio-sensor-proxy is installed by default (and is on the system), I'll get that output from monitor-sensor `tomorrow

TraceyC77 avatar Feb 09 '24 01:02 TraceyC77

According to the output, the sensor is detected and screen orientation changes are properly detected. The screen does not change orientation.

 live@solus ~ $ monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: normal)
=== No ambient light sensor
=== No proximity sensor


    Accelerometer orientation changed: bottom-up
    Accelerometer orientation changed: right-up
    Accelerometer orientation changed: normal

TraceyC77 avatar Feb 10 '24 21:02 TraceyC77

Tested this on Plasma 6, also no auto-rotation happening iio-sensor-proxy is installed.

monitor-sensor output is the same as previously

TraceyC77 avatar Feb 26 '24 22:02 TraceyC77

@ReillyBrogan Any chance you could look into this on your surface thing?

ermo avatar May 03 '24 23:05 ermo

I found that auto rotation works if I disable the setting Settings - Display Configuration - Automatic - Only when in tablet mode

So apparently Plasma isn't detecting tablet mode. I'm not sure if the mode isn't being reported to Plasma properly or Plasma is not treating that signal properly? I looked but didn't find a related bug on bugs.kde.org

TraceyC77 avatar Aug 02 '24 21:08 TraceyC77

Is this still occurring?

Justinzobel avatar Sep 25 '24 14:09 Justinzobel