Suspend in LID close: Difference between revisions

From Alpine Linux
(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...")
 
m (removed Double redirect)
Tag: Redirect target changed
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This article explanis how to make your laptop go to Suspend when closing the LID.
#REDIRECT [[Power management]]
 
This can be done via pm-utils and acpid. Install pm-utils if it is not already.
{{cmd|apk add pm-utils}}
 
Create an acpid hook script called /etc/acpi/LID/00000080:
{{cat|/etc/acpi/LID/00000080|#!/bin/sh
exec pm-suspend
}}
 
Make the hook executable:
{{cmd|chmod +x /etc/acpi/LID/00000080}}
 
And that should be it. Make sure that the acpid daemon is running:
{{cmd|/etc/init.d/acpid start}}

Latest revision as of 13:56, 3 May 2025

Redirect to: