Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

It's my first time running ubuntu server and I'm trying to figure out a way to prevent the machine from going into suspend mode (I'm guessing) when the Lid is closed on the Laptop.

Is it possible to stop the laptop from entering suspend mode when the lid is closed? Possibly without needing to install some GUI package.

share|improve this question

Power management is handled by acpid; man 8 acpid and poke around in /etc/acpi/events.

share|improve this answer
Then what you're seeing now is what the BIOS is configured to do in the absence of an ACPI handler in the OS. You may or may not be able to tell the BIOS how to behave; if you can't, you'll need to install the acpid package. You'll also want to apt-get source --download-only acpi-support and poke through it; actually installing the package requires X11 because many of the support scripts are for X11 multimedia foo. (This is arguably a packaging bug.) – geekosaur Mar 12 '11 at 5:05

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.