Skip to main content
Topic: [SOLVED] suspend with dinit (Read 807 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] suspend with dinit

long usage of systemd made me dumb, and I have no idea how to put the computer on S3 state from a command/script.

dinit does the halt/reboot things, but not suspend. I read that state can directly be set by echoing in sys:

Code: [Select]
echo "mem" > /sys/power/state

But that can put the graphic card (nvidia with nvidia driver... yes I know, or vmware in a virtualbox) in a weird state, so the resume does not work correctly.

Some of you have hints?

 

Re: suspend with dinit

Reply #1
As in all of Artix's inits, the recommeded way to suspend is loginctl suspend. loginctl also allows powering off and rebooting without sudo.

It's not like echo mem > /sys/power/state doesn't suspend, but it doesn't run any sleep hooks/scripts, one of which is required by the nvidia driver.