Bug 498176 - On X11, black desktop and missing panel on 2nd screen when switching monitor inputs or wake from monitor sleep
Summary: On X11, black desktop and missing panel on 2nd screen when switching monitor ...
Status: RESOLVED DUPLICATE of bug 496926
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (other bugs)
Version First Reported In: 6.2.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2025-01-02 18:15 UTC by Kalinda
Modified: 2025-01-03 17:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
journalctl from after I switch back to HDMI (9.76 KB, text/x-log)
2025-01-02 18:15 UTC, Kalinda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kalinda 2025-01-02 18:15:58 UTC
Created attachment 177051 [details]
journalctl from after I switch back to HDMI

SUMMARY
I switch inputs on my second monitor when I want to use my GPU passthrough VM, which uses displayport while my Linux uses HDMI. Since Plasma 6.2.4, switching back to the HDMI gives me a black screen. I can still move my mouse on it, drag windows over to it, and alt+tab, but the plasma desktop is completely gone from the monitor. I can't right click, either. The only way to bring it back is to go into the settings and switch primary monitor to secondary and then back. Running 'plasmashell --replace' also fixes it.

This issue can also occur when waking the monitor from sleep. Usually it'll happen after it's been asleep for a while, but switching inputs is a guaranteed way to reproduce. 

I'm using Xorg. I've attached the journalctl that happens after I switch the input back to HDMl, Please let me know if other logs are needed.

Thanks!

STEPS TO REPRODUCE
1. Switch monitor input from Linux screen to something else.
2. Switch it back to Linux screen.

OBSERVED RESULT
Desktop background and panels are gone, screen is black. Mouse and windows still work on it, as does alt-tab.

EXPECTED RESULT
The screen looks the same as it did before the input switch when changing back.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
The multiple 'kde.plasmashell: requesting unexisting screen available rect -1' lines in the journalctl jump out at me as maybe being something related to the bug.
Comment 1 Nate Graham 2025-01-02 20:01:04 UTC
Does it still happen on Wayland?
Comment 2 Kalinda 2025-01-02 21:46:03 UTC
(In reply to Nate Graham from comment #1)
> Does it still happen on Wayland?

I just checked and it does not.
Comment 3 Nate Graham 2025-01-03 17:22:22 UTC
Thanks.

*** This bug has been marked as a duplicate of bug 496926 ***