Sospendere in RAM un notebook da linea di comando

From RVM Wiki
Jump to navigation Jump to search

Se si vuole fare il suspend to ram di una macchina da linea di comando:

Ubuntu Karmic 9.10

sudo pm-suspend

Oppure, senza privilegi amministrativi:

    dbus-send --print-reply \
        --system \
        --dest=org.freedesktop.DeviceKit.Power \
        /org/freedesktop/DeviceKit/Power \
        org.freedesktop.DeviceKit.Power.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

Riferimenti