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...")
 
(Blanked the page)
Line 1: Line 1:
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 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}}
 

Revision as of 09:07, 30 June 2014