Bug 426056 - [Wayland] Plasma automatically logs out when external HDMI monitor is unplugged
Summary: [Wayland] Plasma automatically logs out when external HDMI monitor is unplugged
Status: RESOLVED DUPLICATE of bug 419728
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.19.4
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-01 12:11 UTC by postix
Modified: 2020-09-01 14:01 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
postix: Wayland+
postix: X11-


Attachments
(External monitor plugged in) qdbus org.kde.KWin /KWin supportInformation (5.94 KB, text/plain)
2020-09-01 12:11 UTC, postix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2020-09-01 12:11:42 UTC
Created attachment 131344 [details]
(External monitor plugged in) qdbus org.kde.KWin /KWin supportInformation

SUMMARY

Plasma automatically logs me out when the external HDMI connected TV (as the only screen), becomes unplugged.
This happens only on Wayland for me. On X11 it changes the screen back to the laptop, but with scaling issues.


STEPS TO REPRODUCE
1. Plugin in an external FullHD TV via HDMI
2. If Plasma doesn't automatically changes display configuration to "External Monitor only", make sure to display content only on the external device (haven't tested other cases yet)
3. Finally unplug the cable

OBSERVED RESULT
The screen goes back to the laptop for two seconds -- but with a wrong scaling (at least the panel is too big).
It's not possible to interact with anything. Finally I become log out.


EXPECTED RESULT
Screen moves back to the laptop without any scaling issues or whatever.


SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.74.0
Qt Version: 5.15.0
Kernel Version: 5.8.3-2-MANJARO
Graphics Processor: Mesa Intel® HD Graphics 620

ADDITIONAL INFORMATION
Scaling 2.0
Comment 1 postix 2020-09-01 12:52:09 UTC
Tried and confirmed it on a second laptop (Manjaro, too): 

1) As scaling 1.0 is used, there's no scaling issue after plugging the cable out
2) The desktop freezes for ~ 10 seconds and finally I find myself logged out too.

Like on the other system, I cleared the cache ~/.cache/* and rebooted before my tests. 

How can I further debug this issue for you? Which outputs / information do you need?
Comment 2 Patrick Silva 2020-09-01 13:35:11 UTC
possibly duplicate of bug 419728
Comment 3 postix 2020-09-01 13:36:51 UTC
(In reply to Patrick Silva from comment #2)
> possibly duplicate of bug 419728

Can you please quickly tell me how I can get the debug log / crash log if there's one? I'd like to test it ASAP.
Comment 4 postix 2020-09-01 13:52:09 UTC
Very likely a duplicate. Will look for a crash log later.

*** This bug has been marked as a duplicate of bug 419728 ***
Comment 5 Patrick Silva 2020-09-01 14:01:59 UTC
I use gdbserver, ssh and gdb to remotely get backtrace of kwin_wayland crashes.