https://bugs.kde.org/show_bug.cgi?id=504805

            Bug ID: 504805
           Summary: Monitor Rotation Not Retained When Secondary Display
                    Disconnected (KVM Switch Scenario)
    Classification: Plasma
           Product: KScreen
      Version First 5.27.5
       Reported In:
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: common
          Assignee: kscreen-bugs-n...@kde.org
          Reporter: si...@mindmore.com
  Target Milestone: ---

Problem Description:

On KDE Plasma Wayland, I am experiencing an issue where my primary monitor's
(Dell U2723QE, connected via HDMI-A-2) custom portrait rotation is not
preserved when a secondary monitor (ASUS VG27A, connected via DP-3) is
disconnected, specifically when using a KVM switch.

Steps to Reproduce:

Connect both monitors to the system:
Monitor 1: Dell U2723QE (detected as HDMI-A-2)
Monitor 2: ASUS VG27A (detected as DP-3)
In System Settings > Display and Monitor, configure the HDMI-A-2 monitor to a
portrait orientation (e.g., "Right" rotation). Arrange both monitors to your
preferred layout. Click "Apply".
Confirm that HDMI-A-2 is in portrait and DP-3 is in landscape.
Disconnect or turn off the secondary monitor (DP-3) via a KVM switch.
Observe the HDMI-A-2 monitor.
Expected Behavior:

When the DP-3 monitor is disconnected/off, the HDMI-A-2 monitor should retain
its previously configured portrait orientation (1440x2560 geometry).

Actual Behavior:

When the DP-3 monitor is disconnected/off, the HDMI-A-2 monitor reverts to its
default landscape orientation (2560x1440 geometry) and Rotation: 1 as reported
by kscreen-doctor. This occurs despite having previously set and applied the
portrait rotation for this monitor in the dual-monitor configuration. It seems
KDE is not reliably recalling a distinct profile for the "single HDMI-A-2
monitor" configuration that includes the rotation.

Relevant System Information:

KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.12.22+bpo-amd64
Graphics Platform: Wayland
Graphics Driver: Intel
GPU: Mesa IntelĀ® Arc
Output of kscreen-doctor --outputs (when both monitors are connected and
correctly configured):
Output: 1 HDMI-A-2 enabled connected priority 1 HDMI Modes: 0:2560x1440@60*!
1:2048x1152@60 2:1920x1200@60 3:1920x1080@60 4:1920x1080@60 5:1920x1080@60
6:1920x1080@50 7:1920x1080@30 8:1920x1080@30 9:1920x1080@25 10:1920x1080@24
11:1920x1080@24 12:1600x1200@60 13:1680x1050@60 14:1280x1024@75 15:1280x1024@60
16:1152x864@75 17:1280x720@60 18:1280x720@60 19:1280x720@60 20:1280x720@50
21:1024x768@75 22:1024x768@60 23:800x600@75 24:800x600@60 25:720x576@50
26:720x480@60 27:720x480@60 28:720x480@60 29:720x480@60 30:720x480@60
31:640x480@75 32:640x480@60 33:640x480@60 34:640x480@60 35:720x400@70 Geometry:
0,0 1440x2560 Scale: 1 Rotation: 8 Overscan: 0 Vrr: incapable RgbRange:
Automatic
Output: 2 DP-3 enabled connected priority 2 DisplayPort Modes: 0:2560x1440@60*!
1:2560x1440@100 2:1920x1080@120 3:1920x1080@120 4:1920x1080@100 5:1920x1080@60
6:1920x1080@60 7:1920x1080@60 8:1920x1080@50 9:1280x1024@75 10:1280x1024@60
11:1440x900@60 12:1152x864@75 13:1280x720@60 14:1280x720@60 15:1280x720@50
16:1440x576@50 17:1440x576@50 18:1024x768@75 19:1024x768@70 20:1024x768@60
21:1440x480@60 22:1440x480@60 23:1440x480@60 24:1440x480@60 25:832x624@75
26:800x600@75 27:800x600@72 28:800x600@60 29:800x600@56 30:720x576@50
31:720x576@50 32:640x480@75 33:640x480@73 34:640x480@67 35:640x480@60
36:640x480@60 37:720x400@70 Geometry: 1440,856 2560x1440 Scale: 1 Rotation: 1
Overscan: 0 Vrr: Automatic RgbRange: Automatic

Output: 1 HDMI-A-2 enabled connected priority 1 HDMI Modes: ... Geometry: 0,0
1440x2560 Scale: 1 Rotation: 8 Overscan: 0 Vrr: incapable RgbRange: Automatic
Output: 2 DP-3 enabled connected priority 2 DisplayPort Modes: ... Geometry:
1440,856 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: Automatic RgbRange:
Automatic
Output of kscreen-doctor --outputs (when only the Dell monitor is connected and
it has reverted to landscape):
Output: 1 HDMI-A-2 enabled connected priority 1 HDMI Modes: 0:2560x1440@60*!
1:2048x1152@60 2:1920x1200@60 3:1920x1080@60 4:1920x1080@60 5:1920x1080@60
6:1920x1080@50 7:1920x1080@30 8:1920x1080@30 9:1920x1080@25 10:1920x1080@24
11:1920x1080@24 12:1600x1200@60 13:1680x1050@60 14:1280x1024@75 15:1280x1024@60
16:1152x864@75 17:1280x720@60 18:1280x720@60 19:1280x720@60 20:1280x720@50
21:1024x768@75 22:1024x768@60 23:800x600@75 24:800x600@60 25:720x576@50
26:720x480@60 27:720x480@60 28:720x480@60 29:720x480@60 30:720x480@60
31:640x480@75 32:640x480@60 33:640x480@60 34:640x480@60 35:720x400@70 Geometry:
0,0 2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange:
Automatic

Output: 1 HDMI-A-2 enabled connected priority 1 HDMI Modes: ... Geometry: 0,0
2560x1440 Scale: 1 Rotation: 1 Overscan: 0 Vrr: incapable RgbRange: Automatic
KVM Switch Make/Model: (e.g., Aten CS1944DP, Ugreen KVM Switch)
Additional Notes:

I have attempted to "train" KDE by explicitly setting the rotation for the
single-monitor configuration in System Settings and applying it, but the issue
persists.
The ~/.local/share/kscreen/outputs/ directory contains files corresponding to
my monitors, and the rotation is correctly specified within the file for
HDMI-A-2 when set.
This behavior impacts productivity as I frequently switch between display
configurations using the KVM.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to