getsolus / packages

Solus Package Monorepo & Issue Tracker
65 stars 85 forks source link

KDE Plasma does not auto rotate screen in Wayland #1569

Open TraceyC77 opened 9 months ago

TraceyC77 commented 9 months ago

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

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

Justinzobel commented 9 months ago

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

TraceyC77 commented 9 months ago

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

TraceyC77 commented 9 months ago

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 commented 9 months ago

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

monitor-sensor output is the same as previously

ermo commented 6 months ago

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

TraceyC77 commented 3 months ago

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

Justinzobel commented 2 months ago

Is this still occurring?

ermo commented 1 month ago

If this was fixed in 4.6, move it back there and close it.

If not, leave it in 4.7 for now.