TOOL » LINUX » SYSTEMCTL

Suspend

Usage

shell
systemctl COMMAND
CommandDescription
suspendAlso known as sleep, saves the current state to RAM and suspends the system.
hibernateSaves the current state to disk and shuts down the system.
hybrid-sleepSaves the current state to both RAM and disk, then suspends the system.

Hibernate issues

In some machines ethernet may become unusable after hibernation. Restarting the ethernet module seems to fix it.

Find the name of the module:

shell
lspci -knn

Create the file /usr/lib/systemd/system-sleep/fix_ethernet.sh:

shell
##!/bin/sh
case $1/$2 in
  pre/*)
    ;;
  post/*)
    modprobe -r alx
    modprobe alx
    ;;
esac