The latest git mastor of systemd (upcoming version 210) got some changes with regards to the handling of the situation where the lid of the laptop is closed. This however has a nasty side effect as that laptops that are docked have normally their lid closed. I already reported this to Lennart and his indication is that this should be fixed in the kernel (setting event SD_DOCK) or by the desktop environment. Unfortunately systemd starts already suspending the laptop during the boot process, long before I reach the login manager. This means that practically I can no longer boot my laptop while it is docked without opening the lid. As that I have an external monitor, this is a bit of a ridiculous situation. I already raised a bug for the kernel, but I do not expect a fast reply on that nor a fix. Raising a bug for the desktop environment (as suggested by Lennart) would be strange as that NO desktop environment is running at that time. The only process that is in full control at that moment is systemd (system boot time).
systemd git will now ignore lid switches for 3min after boot as well as for 30s after coming back from suspend. systemd git will also watch connected displays, and ignore lid switches when more than 1 display is connected. systemd git continues to watch SW_DOCK as before. All in all we should have a pretty robust scheme now, which works for any kind of dock, and gives USB docks enough time to settle. Also, for laptops with power buttons that are reachable with a closed lid we should have good behaviour for the "backpack" problem, as accidentally pressing it will result in the machine resuspending after 30s.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.