NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/58330: zzz should suspend machine



>Number:         58330
>Category:       bin
>Synopsis:       zzz should suspend machine
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 09 21:10:00 +0000 2024
>Originator:     Taylor R Campbell
>Release:        current, 10, 9, ...
>Organization:
The NetBSD Suspension
>Environment:
>Description:
A long time ago, the zzz(8) command was the front end to triggering system suspend.

It was deleted a while ago with the rest of legacy APM support, but the man page confusingly persists: https://man.netbsd.org/zzz.8

Instead, the supported way to trigger suspend on ACPI-based systems is:

sysctl -w hw.acpi.sleep.state=3

This is quite a mouthful and hard to remember (and it also changed from machdep.acpi.sleep_state or something a few years ago).

We should restore the much more memorably-named zzz(8) as a one-liner shell script to do this.
>How-To-Repeat:
try to remember how to suspend a machine
>Fix:
Yes, please!



Home | Main Index | Thread Index | Old Index