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

Disable sleep upon lid close. #54

Open
a-t-0 opened this issue Feb 2, 2023 · 0 comments
Open

Disable sleep upon lid close. #54

a-t-0 opened this issue Feb 2, 2023 · 0 comments

Comments

@a-t-0
Copy link
Contributor

a-t-0 commented Feb 2, 2023

https://askubuntu.com/a/372616

Open the /etc/systemd/logind.conf file in a text editor as root, for example,

 sudo -H gedit /etc/systemd/logind.conf

If HandleLidSwitch is not set to ignore then change it:

 HandleLidSwitch=ignore

Make sure it's not commented out (it is commented out if it is preceded by the symbol #) or add it if it is missing.

Restart the systemd daemon (be aware that this will log you off) with this command:

sudo systemctl restart systemd-logind

or, from 15.04 onwards:

sudo service systemd-logind restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant