Sospendere in RAM un notebook da linea di comando
Se si vuole fare il suspend to ram di una macchina da linea di comando:
Ubuntu Karmic 9.10
sudo pm-suspend
Ubuntu Jaunty 9.04
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