Difference between revisions of "Suspend in LID close"

From Alpine Linux
Jump to: navigation, search
(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 (Redirect to extant article)
(Tag: New redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
This article explanis how to make your laptop go to Suspend when closing the LID.
+
#REDIRECT [[Suspend_on_LID_close]]
 
 
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 08:40, 19 March 2021