|
|
(9 intermediate revisions by 6 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]] |
| | |
| == Busybox acpid ==
| |
| | |
| This can be done via <code>acpid</code> with a hook in {{path|/etc/acpi/LID/00000080}}:
| |
| | |
| # '''with zzz:'''{{cmd|apk add zzz}} {{cat|/etc/acpi/LID/00000080|#!/bin/sh | |
| exec zzz
| |
| }}
| |
| # '''or with pm-utils:''' {{cmd|apk add pm-utils}} {{cat|/etc/acpi/LID/00000080|#!/bin/sh
| |
| exec pm-suspend
| |
| }}
| |
| # '''or with 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}}
| |
| | |
| That should be it. To make sure that the acpid daemon is running, execute:
| |
| {{cmd|/etc/init.d/acpid start}}
| |
| | |
| = =
| |
| * [https://github.com/jirutka/zzz zzz]
| |
| * [https://unix.stackexchange.com/questions/484550/pm-suspend-vs-systemctl-suspend pm-suspend vs systemd...]
| |
| * [http://archive.md/Bcqlz pm-utils (arch wiki)]
| |
| | |
| [[Category:Power Management]]
| |
| [[category: Desktop]]
| |