Sospendere in RAM un notebook da linea di comando
Se si vuole fare il suspend to ram di una macchina da linea di comando, usare il seguente comando COME UTENTE ATTUALEMENTE LOGGATO (quindi non usare sudo):
dbus-send \
--session \
--dest=org.freedesktop.PowerManagement \
--type=method_call \
--print-reply \
--reply-timeout=2000 \
/org/freedesktop/PowerManagement \
org.freedesktop.PowerManagement.Suspend
Se si vuole invece ibernare la macchina (Suspend to Disk), cambiare l'ultimo comando in Hibernate:
dbus-send \
--session \
--dest=org.freedesktop.PowerManagement \
--type=method_call \
--print-reply \
--reply-timeout=2000 \
/org/freedesktop/PowerManagement \
org.freedesktop.PowerManagement.Hibernate