On 2021-09-18 18:39+0000 Alan Mackenzie <a...@muc.de> wrote: > Hello, Gentoo. > > I used to have a utility pm-suspend which would suspend the current > state of the machine to RAM (or, maybe to the swap partition) and shut > the machine down to a resting state. A keypress or mouse movement > would restore full functionality in a few seconds. > > I think I lost this program in the emerge --depclean I did a couple of > months ago (the one that wanted to make my machine unbootable). > > Is there anything to take its place? In particular I want actively to > put the machine into resting state (as opposed to it happening after a > period of inactivity), and I would prefer to do this without having to > start a GUI session. > > I feel there must be something like this in portage, I just don't know > how to find it. > > Thanks for the help! >
`loginctl suspend`[1] if you use sys-auth/elogind. `echo mem > /sys/power/state`[2] if not. [1] <https://wiki.gentoo.org/wiki/Elogind#loginctl> [2] <https://www.kernel.org/doc/html/v5.10/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation> -- Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at <https://tastytea.de/tastytea.asc>.
pgp8XLdUQN6XG.pgp
Description: Digitale Signatur von OpenPGP