Bug 457734

Summary: Freeze upon disconnecting primary display
Product: [Plasma] kwin Reporter: Robin Tetour <Rob.Tetour>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: crash CC: nate
Priority: NOR    
Version: 5.25.4   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Robin Tetour 2022-08-10 21:18:40 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
I am using eGPU but it is still present when the eGPU is unplugged.

KWin freezes when a display set as primary is disconnected. The Kwin should recognize this and adjust remaining displays accordingly.

STEPS TO REPRODUCE
1. Connect external monitor
2. Change the external monitor to primary
3. Disconnect the monitor

OBSERVED RESULT
Freeze upon disconnecting the primary monitor.

EXPECTED RESULT
KWin should logically change different available monitor to primary and adjust according to that to avoid crash/freeze.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 36
(available in About System)
KDE Plasma Version: 5.25.4
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Device: Lenovo Yoga Slim 7 ProX 14IAH7
Comment 1 Nate Graham 2022-08-11 18:07:50 UTC
What specifically freezes? The cursor? All windows on screen? Everything? Can you be specific about exactly what happens?
Comment 2 Robin Tetour 2022-08-12 12:00:48 UTC
(In reply to Nate Graham from comment #1)
> What specifically freezes? The cursor? All windows on screen? Everything?
> Can you be specific about exactly what happens?

Sorry. Whole laptop - that is frozen screen, can't move my mouse and only thing that works is a sound from a video (youtube video for instance) but screen is a still frame. I always have to force the laptop to shutdown via the power button.
Comment 3 Robin Tetour 2022-08-12 16:42:43 UTC
(In reply to Robin Tetour from comment #2)
> (In reply to Nate Graham from comment #1)
> > What specifically freezes? The cursor? All windows on screen? Everything?
> > Can you be specific about exactly what happens?
> 
> Sorry. Whole laptop - that is frozen screen, can't move my mouse and only
> thing that works is a sound from a video (youtube video for instance) but
> screen is a still frame. I always have to force the laptop to shutdown via
> the power button.

So it is definitely an issue with power-profiles-daemon. I cannot replicate any of these system crashes/freezes since I uninstalled that package. Closing this issue. I am going to open an issue on ppd gitlab.