Bug 466222

Summary: KDE does not remember which screen is being used after resume/restart on wayland
Product: [Plasma] kwin Reporter: Ivan Tham <pickfire>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: fw.smit01, kdelibs-bugs-null, nicolas.fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ivan Tham 2023-02-21 23:47:40 UTC
SUMMARY

After resume, I have to always set switch to external screen since I always disable my laptop screen. In X11, I don't have to do this.

STEPS TO REPRODUCE
1. Ctrl+P, switch to external screen
2. Sleep-Resume / Restart
3. KDE resets to show stuff on both screens

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Ivan Tham 2023-02-21 23:49:18 UTC
SUMMARY

After resume, I have to always set switch to external screen since I always disable my laptop screen. In X11, I don't have to do this.

STEPS TO REPRODUCE
1. Ctrl+P, switch to external screen
2. Sleep-Resume / Restart

OBSERVED RESULT
KDE resets to show stuff on both screens

EXPECTED RESULT
KDE remembers which screen was being used

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.12-zen1-1.1-zen (64-bit)
Graphics Platform: Wayland
Processors: 6 × AMD Ryzen 5 4500U with Radeon Graphics
Memory: 15.0 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: TIMI
Product Name: RedmiBook 14 II

ADDITIONAL INFORMATION
Comment 2 fw.smit01 2023-02-22 14:04:08 UTC
Did you set the Ctrl-p shortcut yourself? It's not set by default in KDE. I haven't got this issue on my laptop

You can try removing the configuration at .local/share/kscreen/* to reset it. See if you can reproduce it again after that.
Comment 3 Ivan Tham 2023-02-22 15:24:49 UTC
> Did you set the Ctrl-p shortcut yourself? It's not set by default in KDE. I haven't got this issue on my laptop

Sorry, I mean Super+p.
Comment 4 Ivan Tham 2023-02-22 16:26:21 UTC
(In reply to fw.smit01 from comment #2)
> Did you set the Ctrl-p shortcut yourself? It's not set by default in KDE. I
> haven't got this issue on my laptop
> 
> You can try removing the configuration at .local/share/kscreen/* to reset
> it. See if you can reproduce it again after that.

Yeah, after I removed those it works. Also, most likely I am going to ditch wayland since it keep crashing the wayland session randomly for a few times.

Thanks.