Suspend in LID close

From Alpine Linux
Revision as of 09:03, 30 June 2014 by Ncopa (talk | contribs) (Created page with "This article explanis how to make your laptop go to Suspend when closing the LID. This can be done via pm-utils and acpid. Install pm-utils if it is not already. {{cmd|apk ad...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This article explanis how to make your laptop go to Suspend when closing the LID.

This can be done via pm-utils and acpid. Install pm-utils if it is not already.

apk add pm-utils

Create an acpid hook script called /etc/acpi/LID/00000080:

Contents of /etc/acpi/LID/00000080

#!/bin/sh exec pm-suspend

Make the hook executable:

chmod +x /etc/acpi/LID/00000080

And that should be it. Make sure that the acpid daemon is running:

/etc/init.d/acpid start