17

I've got pretty much the same problem as this old 2006 thread on the Ubuntu forums: my old laptop's lid is a bit shaky, which causes the computer to wakeup/suspend if I just touch it the wrong way (e.g. lifting it up to move it).

Back then, the fix (see link) was to have a startup script disable LID in /proc/acpi/wakeup every time the computer boots. I'm wondering if there's a better, less hacky, solution?

2 Answers2

4

Its no less hacky, but you can simplify the solution by adding echo "LID " > /proc/acpi/wakeup to the /etc/rc.local file. This way you don't have to create a startup script.

cmulk
  • 146
2

What about changing it to Blank screen when laptop lid is closed. This is way you will not get suspended.

System-->Preferences-->PowerManagement

Open Help
  • 694
  • 3
    Nope... this keeps the laptop running when I close the lid, but if I suspend it manually before that, it still wakes up when I open the lid. The idea is to prevent the laptop from waking up when the lid moves a bit, not preventing it from going to sleep. – Ludovic Chabant Oct 19 '10 at 04:38