Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a laptop running 12.04 Server Edition, and I'd like to be able to shut the lid without anything happening.

I need it to remain pingable and sshable and continue to run all of its daemons and everything after the lid is closed.

Remember, no GUI conf utilities, because this is server edition, with no X server installed. Thanks.

share|improve this question

1 Answer 1

Put HandleLidSwitch=ignore under /etc/systemd/logind.conf

enter image description here

You have to restart systemd daemon with restart systemd-logind or restart your laptop.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.