You are not logged in.

#1 2025-05-19 20:11:11

alfrednewman
Member
From: Canada
Registered: 2020-06-24
Posts: 5

[SOLVED] KDE on first monitor gets stuck after enabling second monitor

My setup involves an LG Ultrawide monitor (HDMI-A-1) and a Samsung Plasma TV (HDMI-A-2). I use the TV for movies and video games, so the output to the TV is disabled until I enable it. The TV is always plugged into the computer though.

I use these two alias commands to make setup quick, by enabling the TV and making it the primary display:

alias tvenable='kscreen-doctor output.HDMI-A-2.enable output.HDMI-A-2.priority.1'
alias tvdisable='kscreen-doctor output.HDMI-A-2.disable'

Once I enable the TV with the alias, everything on the monitor isn't possible to interact with the cursor except for a few elements like the applications panel and desktop view, and this still remains the problem even after disabling the TV with the alias.
Restarting plasmashell doesn't fix this, regardless of the TV's state, so I have to restart.
Everything on the TV still works properly, and moving windows from the monitor (Using Super + Arrow Keys) to the TV lets me click stuff on them again.
This problem started happening about last month.

I am using KDE Wayland with an AMD RX 580. The TV is connected using a 20ft HDMI cable if that makes any difference. Everything else like resolution and sound works like how I want.

This is the output of kscreen-doctor -o as it is before I enable my TV:

Output: 1 HDMI-A-1
        enabled
        connected
        priority 1
        HDMI
        Modes:  1:2560x1080@75*!  2:1920x1080@60  3:1920x1080@60  4:1920x1080@60  5:1920x1080@50  6:1680x1050@60  7:1600x900@60  8:1280x1024@75  9:1280x1024@60  10:1440x900@75  11:1280x800@75  12:1152x864@75  13:1280x720@60  14:1280x720@60  15:1280x720@60  16:1280x720@50  17:1024x768@75  18:1024x768@60  19:800x600@75  20:800x600@60  21:720x576@50  22:720x480@60  23:720x480@60  24:720x480@60  25:720x480@60  26:640x480@75  27:640x480@60  28:640x480@60  29:640x480@60  30:720x400@70  31:1280x1024@60  32:1024x768@60  33:1280x800@60  34:1920x1080@60  35:1600x900@60  36:1368x768@60  37:1280x720@60 
        Geometry: 0,0 2560x1080
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 0% and dimming to 100%
Output: 2 HDMI-A-2
        disabled
        connected
        priority 0
        HDMI
        Modes:  38:1024x768@60!  39:1920x1080@60*  40:1920x1080@60  41:1920x1080@50  42:1920x1080@30  43:1920x1080@30  44:1920x1080@25  45:1920x1080@24  46:1920x1080@24  47:1280x720@60  48:1280x720@60  49:1280x720@60  50:1280x720@50  51:1280x720@50  52:1024x768@75  53:1024x768@70  54:832x624@75  55:800x600@75  56:800x600@72  57:800x600@60  58:720x576@50  59:720x576@50  60:720x480@60  61:720x480@60  62:640x480@75  63:640x480@73  64:640x480@67  65:640x480@60  66:640x480@60  67:720x400@70  68:1024x768@60 
        Geometry: 2560,0 1920x1080
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 30% and dimming to 100%

Here's what it looks like when it's enabled:

Output: 1 HDMI-A-1
        enabled
        connected
        priority 2
        HDMI
        Modes:  1:2560x1080@75*!  2:1920x1080@60  3:1920x1080@60  4:1920x1080@60  5:1920x1080@50  6:1680x1050@60  7:1600x900@60  8:1280x1024@75  9:1280x1024@60  10:1440x900@75  11:1280x800@75  12:1152x864@75  13:1280x720@60  14:1280x720@60  15:1280x720@60  16:1280x720@50  17:1024x768@75  18:1024x768@60  19:800x600@75  20:800x600@60  21:720x576@50  22:720x480@60  23:720x480@60  24:720x480@60  25:720x480@60  26:640x480@75  27:640x480@60  28:640x480@60  29:640x480@60  30:720x400@70  31:1280x1024@60  32:1024x768@60  33:1280x800@60  34:1920x1080@60  35:1600x900@60  36:1368x768@60  37:1280x720@60 
        Geometry: 0,0 2560x1080
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 0% and dimming to 100%
Output: 2 HDMI-A-2
        enabled
        connected
        priority 1
        HDMI
        Modes:  38:1024x768@60!  39:1920x1080@60*  40:1920x1080@60  41:1920x1080@50  42:1920x1080@30  43:1920x1080@30  44:1920x1080@25  45:1920x1080@24  46:1920x1080@24  47:1280x720@60  48:1280x720@60  49:1280x720@60  50:1280x720@50  51:1280x720@50  52:1024x768@75  53:1024x768@70  54:832x624@75  55:800x600@75  56:800x600@72  57:800x600@60  58:720x576@50  59:720x576@50  60:720x480@60  61:720x480@60  62:640x480@75  63:640x480@73  64:640x480@67  65:640x480@60  66:640x480@60  67:720x400@70  68:1024x768@60 
        Geometry: 2560,0 1920x1080
        Scale: 1
        Rotation: 1
        Overscan: 0
        Vrr: incapable
        RgbRange: unknown
        HDR: incapable
        Wide Color Gamut: incapable
        ICC profile: none
        Color profile source: sRGB
        Color power preference: prefer efficiency and performance
        Brightness control: supported, set to 30% and dimming to 100%

I would be so happy with any solutions or workarounds!

Last edited by alfrednewman (2025-05-20 20:32:35)

Offline

#2 2025-05-19 22:16:05

seth
Member
Registered: 2012-09-03
Posts: 64,145

Re: [SOLVED] KDE on first monitor gets stuck after enabling second monitor

I am using KDE Wayland with an AMD RX 580.

And I assume there's no problem w/ KDE on X11?
Do you get pageflip errors in the system journal?
What if you omit the "output.HDMI-A-2.priority.1" part?

Offline

#3 2025-05-20 20:30:57

alfrednewman
Member
From: Canada
Registered: 2020-06-24
Posts: 5

Re: [SOLVED] KDE on first monitor gets stuck after enabling second monitor

I discovered that the issue was caused by Discover Overlay, a discord overlay I use. It runs in the background which was why I forgot about it. Once I quit the overlay, the screen lets me use the mouse again. Works fine turning on after both monitors are enabled.

So now I have expanded my aliases to restart discover overlay when I toggle the TV:

alias tvenable='kscreen-doctor output.HDMI-A-2.enable output.HDMI-A-2.priority.1 && killall discover-overlay && sleep 1 && discover-overlay & disown'
alias tvdisable='kscreen-doctor output.HDMI-A-2.disable && killall discover-overlay && sleep 1 && discover-overlay & disown'

Thanks for suggesting journalctl, I've seen the overlay in the logs and while it didn't report anything strange it helped me remember it is something that draws ontop of everything tongue

Offline

Board footer

Powered by FluxBB