Disable ACPI suspend after laptop lid close on Dell Mini with Ubuntu 14.04 LTS

Problem

When laptop lid is closed, system enters sleep or hybernate mode. This is a problem for me because I'm using the laptop as a mini server at home.

In addition, after entering this suspended mode, the system is unable to recover after lid is open, so even if I used it as a laptop, and didn't mind it entering suspended state, the freezing would still be a problem. This happened with BIOS A05 and with the latest A11.

One workaround could be to just run it with the lid open all the time, but then the keyboard collects dust, so I don't like that.

I know there's an option to control this in System Settings > Power, but this laptop is running a server without a GUI.

System Information

From dmidecode:

Manufacturer: Dell Inc.
Product Name: Inspiron 1010   
Version: A05 (later updated to A11)

Solution

Added HandleLidSwitch=ignore to /etc/systemd/logind.conf, then rebooted (could also just run restart systemd-logind).

Afterward, system no longer enters suspended mode on lid close. Yay!

Reference: How can I tell Ubuntu to do nothing when I close my laptop lid?

Things that didn't work

1. The acpi-support package

Installed the acpi-support package:

  $ sudo apt-get install acpi-support

And disabled suspend::

  $ diff -up /etc/default/acpi-support.default /etc/default/acpi-support
  --- /etc/default/acpi-support.default	2015-10-20 10:58:35.159052516 -0700
  +++ /etc/default/acpi-support	2015-10-20 10:58:52.747139731 -0700
  @@ -56,7 +56,7 @@
   # Please specify a space separated list of options. The recommended value is
   # "dbus pm-utils"
   #
  -SUSPEND_METHODS="dbus-pm dbus-hal pm-utils"
  +SUSPEND_METHODS="none"

2. Various boot loader options

Ubuntu hung during boot with acpi=off in /etc/default/grub:

  $ grep acpi /etc/default/grub
  GRUB_CMDLINE_LINUX_DEFAULT="acpi=off"

With noapic and/or nolapic, Ubuntu did boot, but it didn't fix the suspend/freeze issue.

Leave a comment

NOTE: Enclose quotes in <blockquote></blockquote>. Enclose code in <pre lang="LANG"></pre> (where LANG is one of these).