Bug 412317

Summary: Disconnecting HDMI Cable does not remove secondary display
Product: [Plasma] KScreen Reporter: Chris Raven <chris>
Component: commonAssignee: kscreen-bugs-null <kscreen-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, nate, nicolas.fella
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: XRandr -Q Output

Description Chris Raven 2019-09-25 11:57:20 UTC
SUMMARY:

When running an external monitor via HDMI, the monitor is automatically detected and shows the dialog to choose Unified Outputs, Extended etc. Upon removing the HDMI Connection, the external monitor is still enabled under Display Settings, and has to be manually disabled. There is no dialog of confirmation that the HDMI cable has been removed either


STEPS TO REPRODUCE
1. Connect an external monitor to your laptop (which has display of eDP-1)
2. Secondary monitor is shown under 'Display Settings'. Remove the HDMI Cable without disabling the display

OBSERVED RESULT:
- Nothing shows on screen, and the display stays connected. Windows continue to open off screen, and move off screen when moved to the top of the screen.


EXPECTED RESULT
- External display is disabled, and only the eDP-1 display is left enable


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Linux 5.3.1-arch1-1-ARCH
KDE Plasma Version: plasmashell 5.16
KDE Frameworks Version: 5.26.0
Qt Version: 5.13.1

ADDITIONAL INFORMATION:
- This has been ongoing since KDE Plasma 5.11,  and happens when both the Modsetting Driver for Intel HD Graphics (UHD620) is used, and the xf86-video-intel driver.
Comment 1 David Edmundson 2019-09-25 12:07:04 UTC
Please include output of xrandr -q before and after unplugging
Comment 2 Chris Raven 2019-09-25 12:17:39 UTC
Created attachment 122861 [details]
XRandr -Q Output
Comment 3 Chris Raven 2019-09-25 12:18:28 UTC
Thanks David. I've attached it to the case. Interestingly, upon running [xrandr -Q] the screen flicked, and went back to single display mode which is the expected result!

I'm wondering if it's simply not refreshing / running xrandr upon disconnecting the HDMI Connection.
Comment 4 Nicolas Fella 2019-10-16 20:33:55 UTC

*** This bug has been marked as a duplicate of bug 403962 ***
Comment 5 Nate Graham 2019-10-16 20:57:36 UTC

*** This bug has been marked as a duplicate of bug 390283 ***
Comment 6 Nate Graham 2019-10-16 21:57:24 UTC

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