Bug 75461 - latest git master forcefully suspends my laptop while docked during system boot
Summary: latest git master forcefully suspends my laptop while docked during system boot
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high critical
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-24 18:30 UTC by Raymond Wooninck
Modified: 2014-03-03 20:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Raymond Wooninck 2014-02-24 18:30:05 UTC
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).
Comment 1 Lennart Poettering 2014-03-03 20:06:35 UTC
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.