Bug 390283 - Plasma sees external monitor after disconnecting
Summary: Plasma sees external monitor after disconnecting
Status: RESOLVED DUPLICATE of bug 372837
Alias: None
Product: KScreen
Classification: Plasma
Component: common (show other bugs)
Version: 5.12.0
Platform: Neon Linux
: VHI grave
Target Milestone: ---
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-11 19:32 UTC by Robert Kasperczyk
Modified: 2019-10-16 21:55 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kscreen-consol bug output (37.55 KB, text/plain)
2018-11-13 10:12 UTC, svrnwnsch
Details
entry in ~/.local/share/kscreen/ (498 bytes, text/plain)
2018-11-13 10:18 UTC, svrnwnsch
Details
entry in ~/.local/share/kscreen/ (995 bytes, text/plain)
2018-11-13 10:18 UTC, svrnwnsch
Details
entry in ~/.local/share/kscreen/ (895 bytes, text/plain)
2018-11-13 10:18 UTC, svrnwnsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Kasperczyk 2018-02-11 19:32:36 UTC
So, my problem is that after I disconnect my external(not primary) monitor nothing happens to the desktop set up, in "displays" there are still two monitors.

What's more I encounter this problem on Xorg and Wayland.`

My hardware is Thinkpad X1 Carobon 2nd gen with Intel 4400 GPU and I run fully updated fresh install of KDE Neon User edition.

I found a workaround to run xrandr -q, which triggers some kind of refresh to plasma displays, but I am curious if there are any proper solution or bug report which I can follow.
Comment 1 Alberto Curro 2018-03-23 17:51:10 UTC
Same issue is happening to me, plasma does not recognize hot-connecting or disconenecting screens for my Dell Latitude E7470, either using official Dell Docker stations (HDMI, DVI or DP, 3 different docking models), or miniDP on the own laptop.

My system is Linux Mint 18 with KDE, 4.13.0.

This was not happening with Linux Mint 17 and KDE 4.x, with my previous latitude laptop and the same dock stations or HDMI. KDE was keeping the configurations for the different monitors, and changing the layout accordingly, to follow the last configuration used with the recognized monitor.
Comment 2 Alberto Curro 2018-03-23 17:52:20 UTC
Sorry, 4.13 is the kernel version, KDE version is 5.8, from the official mint repositories.

(In reply to Alberto Curro from comment #1)
> Same issue is happening to me, plasma does not recognize hot-connecting or
> disconenecting screens for my Dell Latitude E7470, either using official
> Dell Docker stations (HDMI, DVI or DP, 3 different docking models), or
> miniDP on the own laptop.
> 
> My system is Linux Mint 18 with KDE, 4.13.0.
> 
> This was not happening with Linux Mint 17 and KDE 4.x, with my previous
> latitude laptop and the same dock stations or HDMI. KDE was keeping the
> configurations for the different monitors, and changing the layout
> accordingly, to follow the last configuration used with the recognized
> monitor.
Comment 3 Sebastian Kügler 2018-03-28 12:03:37 UTC
Thanks for the report!

The information requested in https://community.kde.org/Solid/Projects/ScreenManagement#Debugging_Information especially the kscreen.log would be helpful. Even cooler: if you could mark the log with <HERE I UNPLUGGED> or something like this, so I can actually see what you're physically doing would be great.

Cheers!
Comment 4 svrnwnsch 2018-11-13 10:12:55 UTC
Created attachment 116275 [details]
kscreen-consol bug output
Comment 5 svrnwnsch 2018-11-13 10:16:38 UTC
I have the same problem on Kubuntu 18.10 (Plasma version 5.13.5)
I attached a kscreen consol bug output.
Comment 6 svrnwnsch 2018-11-13 10:18:11 UTC
Created attachment 116276 [details]
entry in ~/.local/share/kscreen/
Comment 7 svrnwnsch 2018-11-13 10:18:27 UTC
Created attachment 116277 [details]
entry in ~/.local/share/kscreen/
Comment 8 svrnwnsch 2018-11-13 10:18:39 UTC
Created attachment 116278 [details]
entry in ~/.local/share/kscreen/
Comment 9 svrnwnsch 2018-11-13 10:24:00 UTC
The interesting part for me is that connecting a my screen always works.
For me its only a bug when i disconnect my hdmi cable from my laptop.
Comment 10 svrnwnsch 2018-11-14 07:57:05 UTC
It seems for me this could be Kernel bug in my case. If I run `udevadm monitor` I get the following output:

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent
* Here I disconnect HDMI *
* Here I reconnect HDMI *
KERNEL[477.138643] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
UDEV  [477.145948] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
KERNEL[477.440303] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)
UDEV  [477.442861] change   /devices/pci0000:00/0000:00:02.0/drm/card0 (drm)

Only connecting the HDMI cable results in kernel event. Where should I report such an error?

Linux Kernel: 4.18.0-10-generic
Computer: Thinkpad E480

The kernel seems to see
Comment 11 Nicolas Fella 2019-10-16 20:36:18 UTC
*** Bug 403962 has been marked as a duplicate of this bug. ***
Comment 12 Nate Graham 2019-10-16 20:57:36 UTC
*** Bug 412317 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2019-10-16 20:58:17 UTC
Can confirm, still a problem on X11 at least in Plasma 5.17 or 5.18 (i.e. built from source).
Comment 14 Nicolas Fella 2019-10-16 21:54:12 UTC
*** Bug 409330 has been marked as a duplicate of this bug. ***
Comment 15 Nicolas Fella 2019-10-16 21:55:47 UTC

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