You are not logged in.

#1 2011-10-08 19:15:43

RetroX
Member
Registered: 2009-10-17
Posts: 106

dbus-shutdown scripts

AUR package for the lazy: https://aur.archlinux.org/packages.php?ID=53011

These are just simple scripts that I made because it's far too tedious to type the entire commands out.  I've included scripts to halt, reboot, suspend (to RAM), or hibernate your system with D-Bus.

/usr/bin/dbus-halt

#!/bin/bash
dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop

/usr/bin/dbus-reboot

#!/bin/bash
dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart

/usr/bin/dbus-suspend

#!/bin/bash
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

/usr/bin/dbus-hibernate

#!/bin/bash
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate

Offline

#2 2011-10-16 14:01:33

giowck
Member
Registered: 2011-07-13
Posts: 77

Re: dbus-shutdown scripts

Thank you! Great stuff.

Offline

#3 2011-10-16 15:06:43

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,110
Website

Offline

#4 2011-10-16 15:17:24

RetroX
Member
Registered: 2009-10-17
Posts: 106

Re: dbus-shutdown scripts

Fully aware, falconindy.  That's where I got the scripts from.  I thought that it would be easier to simply pack them into an AUR package so that they would be more convenient.

Offline

Board footer

Powered by FluxBB