I have two available displays on a laptop with Intel gfx: - Enabled Panel (LVDS1), id 67, 1600x900 - Disabled External Display (HDMI2), id 72, 2048x1152 Wen closing the lid, I'd expect the external monitor to get active, instead it tries to enable a config without any monitor and gives up on that. A kscreen-console runing in parallel crashes inside libKF5Screen (KScreen::Output::name()). I've attached debug logs. Feel free to let me test patches etc. Reproducible: Always Steps to Reproduce: 1. Laptop docked, panel enabled 2. Close Lid Actual Results: Nothing happens, libkscreen crashes Expected Results: Move to target monitor.
Created attachment 99059 [details] Logs collected by systemd
Created attachment 99060 [details] kscreen monitor output until crash
Thanks for the report! Would it be possible to run kscreen-monitor in gdb and reproduce the crash? I'd be highly interested in the backtrace.
Hi, Also, if you start the machine in the docker, with the lid already closed, the composer shows both screens active, though obviously you don't see laptop screen. This comes to a trouble when some windows turn up in the other screen. Thanks!
Matthias, would it be possible for you to test the current development version of Plasma (git master)? We've fixed a number of bugs that prevented enabling newly connected displays correctly, so it's quite likely that this particular problem doesn't exist anymore. I can't reproduce it on my systems here with git master.
Yes, indeed. I have seen your recent activity and that laptop is already running kscreen git as of 4-5 days ago. Unfortunately, the laptop still has issues detecting changes in monitors while docking (only discovered upon the first xrandr call on command line). This occurs both with the intel as well as with the modesetting driver. It might very well be a kernel driver issue? Since it is not my personal laptop I haven't investigated further, I'll try to have a look next weekend again.
I cannot reproduce this bug anymore with latest git, since the Laptop now goes to sleep - even though its on AC power and docked, while the second monitor is connected. Stupid, but hey....
You can tell it not to suspend in Systemsettings | Power Management | Button Events handling. There's a checkbox that allows to not suspend when the lid is closed and an external monitor is connected.
(In reply to Sebastian Kügler from comment #8) > You can tell it not to suspend in Systemsettings | Power Management | Button > Events handling. There's a checkbox that allows to not suspend when the lid > is closed and an external monitor is connected. Yes, but in this case, the external monitor is initially disabled and I expect it to switch to it once the lid is closed. In this case, suspend was not suppressed. I had to disable logind suspend events to make it work...
So you want to switch layouts when the lid closes from only laptop screen enabled to only external enabled? That sounds kind of weird to me. You can achieve the same by just having the external screen connected or not, doing it when the lid closes seems counter-intuitive to me. Aside from that, I wouldn't know how to present it in the UI.