Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.