Suspend on LID close: Difference between revisions

From Alpine Linux
No edit summary
(moved the entire content to Power management and added redirect)
Tag: New redirect
 
(17 intermediate revisions by 9 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 acpid with a hook in /etc/acpi/LID/00000080:
 
'''a) with pm-utils:'''
{{cmd|apk add pm-utils}}
{{cat|/etc/acpi/LID/00000080|#!/bin/sh
exec pm-suspend
}}
 
'''b) with this raw variant:'''
{{cat|/etc/acpi/LID/00000080|#!/bin/sh
echo mem > /sys/power/state
}}
 
 
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 19:28, 2 May 2025

Redirect to: