Sospendere in RAM un notebook da linea di comando

From RVM Wiki
Revision as of 11:41, 11 February 2009 by Gabriele.vivinetto (talk | contribs) (New page: 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): <pre> dbus-send \ --se...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Riferimenti