Artix Linux Forum

Artix Linux => System => Topic started by: dawcek on 27 December 2018, 14:22:51

Title: Suspend/Hibernate operation from comandline
Post by: dawcek on 27 December 2018, 14:22:51
Hello all.

I am wondering how I can suspend/hibernate my system from command line.
I mean if in artix linux exist some commands, which helps suspend hibernate system.

I know that I can perform this operation in low level way by putting content to /sys/power/state

Is this only one way of doing this?
Title: Re: Suspend/Hibernate operation from comandline
Post by: konimex on 27 December 2018, 17:34:38
You can use loginctl. See man loginctl for details.

As for hibernation, you may want to read ArchWiki's entry about it (https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Hibernation).
Title: Re: Suspend/Hibernate operation from comandline
Post by: dawcek on 27 December 2018, 20:39:13
Thanks you a lot for answer! :)
Title: Re: Suspend/Hibernate operation from comandline
Post by: nous on 28 December 2018, 12:05:49
Also, laptop-mode-tools from the AUR (https://aur.archlinux.org/packages/laptop-mode-tools/) provides the pm-suspend and pm-hibernate commands.