Saban hari pernah nulis "Command Bwt Matiin Tanpa Masukin Password" Nah ini versi agak lebih kumplit :
1. Reboot :
/usr/bin/dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
2. Shutdown :
/usr/bin/dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
3. Suspend :
/usr/bin/dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Suspend
4. Hibernate :
/usr/bin/dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Hibernate
Nah, masalah Suspend dan Hibernate ga jalan di desktop, mungkin kalo di lapotop jalan (belom tes sih).
Nah command bwt Reboot dan Shutdown gw aplikasiin di desktop gw via OBMenu (maklum doyan Openbox)
Tidak ada komentar:
Posting Komentar