Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force hard system shutdown instead of suspend/hibernate #178

Closed
eloquence opened this issue Oct 30, 2018 · 3 comments
Closed

Force hard system shutdown instead of suspend/hibernate #178

eloquence opened this issue Oct 30, 2018 · 3 comments

Comments

@eloquence
Copy link
Member

For security reasons (e.g., full-disk encryption state, application of automatic system updates, etc.), we should ensure that the system is shut down instead of suspended/hibernated. At minimum, this should occur when closing the laptop lid; if we can disable (at least at the UI level) suspend/hibernate altogether, that would be preferable.

@eloquence eloquence added this to the 0.1.0beta milestone Oct 30, 2018
@conorsch
Copy link
Contributor

conorsch commented Oct 31, 2018

this should occur when closing the laptop lid

That we can do via /etc/systemd/logind.conf, setting HandleLidClose=poweroff (then bounce systemd-logind) in dom0. Tested it and it does indeed power off the machine when the lid is closed.

We'll need something else for disabling suspend altogether. A third case: when the machine is left idle for many hours, probably worth a shutdown, as well.

@eloquence
Copy link
Member Author

That we can do via /etc/systemd/logind.conf, setting HandleLidClose=poweroff

Nit: the setting is named HandleLidSwitch. I can confirm that changing it to poweroff and running sudo systemctl restart systemd-logind alters the behavior on my X1 Carbon as expected.

@emkll
Copy link
Contributor

emkll commented Mar 5, 2020

Closed via #475 and #473

@emkll emkll closed this as completed Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants