Bug 457734 - Freeze upon disconnecting primary display
Summary: Freeze upon disconnecting primary display
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.25.4
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-10 21:18 UTC by Robin Tetour
Modified: 2022-08-12 16:42 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.