| Summary: | systemd-logind default configuration suspends laptop when closing lid | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | David Walser <luigiwalser> |
| Component: | RPM Packages | Assignee: | Colin Guthrie <mageia> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | critical | ||
| Priority: | Normal | ||
| Version: | 3 | ||
| Target Milestone: | --- | ||
| Hardware: | i586 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | systemd-195-22.mga3.src.rpm | CVE: | |
| Status comment: | |||
|
Description
David Walser
2013-09-06 00:09:17 CEST
Sorry, but I completely disagree with this suggestion. The only sane action is to suspend and park the disk heads. This has all be thought through and discussed a lot upstream and in various other places and I do not want to rehash the same issues here. The low level stuff must take a safety first approach. If you close your laptop lid it *must* suspend. Closing the lid and running for a bus, finding your laptop was still running and a spinning your disks and losing your data is NOT an option. The user has very little feedback when the lid is closed. If you want to prevent visually or key-based suspend actions, then there are inhibitors in place that allow you to do this and display appropriate UI guidance to the user user explaining that their suspend request has been denied because a DVD is burning or they are rendering a large video or downloading large updates etc. These inhibitors allow for this kind of prevention. You can also take inhibitor locks for the laptop lid at a Desktop Environment level if you like, but it's very much discouraged for the "safety first" reasons given above (although 'delay' inhibitors which give you the chance to react, do stuff, save temporary state files etc, before allowing the suspend/shutdown/reboot or whatever are quite OK) Ultimately the low level tools provide the necessary interfaces and higher level tools often provide ways to override this (e.g. in gnome-tweak-tool, you can change the behaviour of the laptop lid if you really must - not sure about mga3 state of that but it's available in cauldron). Unlike the setting changes the tweaks in the desktop environments happen immediately as they take the inhibitor lock via dbus. systemd-inhibit --list will show you any active inhibitors. If the DE's want to override this behaviour, then they do so via this mechanism and it's generally preferred to do this and give the user a nice UI rather than setting the config file. Anyway, safety first is sensible and it's not something I'd be willing to change as a default. Making it easier for people to make concious decisions is fine, but I'm not going to change something which is based on sound reasoning. Status:
NEW =>
RESOLVED |