Suspend on LID close: Difference between revisions

From Alpine Linux
m (+ link pm-utils (arch wiki))
(moved the entire content to Power management and added redirect)
Tag: New redirect
 
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
This article explains how to make your laptop go to Suspend when closing the LID.
#REDIRECT [[Power management]]
 
This can be done via <code>acpid</code> with a hook in {{path|/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}}
 
= =
* [https://unix.stackexchange.com/questions/484550/pm-suspend-vs-systemctl-suspend pm-suspend vs systemd...]
* [http://archive.fo/Bcqlz pm-utils (arch wiki)]
 
[[Category:Power Management]]
[[category: Desktop]]

Latest revision as of 19:28, 2 May 2025

Redirect to: