23

What command suspends an appropriately configured Arch Linux system?

User story: It's now or never. I'm on the run. I don't have time to read ArchWiki/Power_management/Suspend_and_hibernate but I want to be energy-efficient. How do I suspend Arch Linux before I miss my appointment?

Note: This question exists because Arch Wiki isn't straightforward the way StackExchange is and because it's a command (or a list of commands?) that is rarely used, making it hard to remember.

3 Answers 3

20

What command suspends an appropriately configured Arch Linux system?

systemctl suspend

You might have to use sudo. There might be other ways, depending on the configuration. If anybody is willing to extend or re-answer with a complete list of what kind of one-liner commands achieve this commonly on Arch Linux systems, that'd be great to all other energy-economic people on the run for that important meeting.

15

If you look under the section System Commands in the man-page for systemctl, you'll see the various options that are system related.

A brief list is as follows for different modes:

  • # systemctl default
  • # systemctl rescue
  • # systemctl emergency

Then, suspensions and the likes of which:

  • # systemctl halt
  • # systemctl poweroff
  • # systemctl reboot
  • # systemctl suspend
  • # systemctl hibernate
  • # systemctl hybrid-sleep

For more information regarding the system commands, you're recommended to read the man-page.

0

Press Ctrl+Alt+F1 or Ctrl+Alt+F2 first, to find a text terminal, to improve the preparation done, then:

echo mem | sudo tee /sys/power/state

Or...

sudo su
echo mem > /sys/power/state

This will work on any Linux that supports it, whether it has systemctl or not. Of course, your distributions' official way is best. But this is a good go-to if you're on the run.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.