You are not logged in.
Pages: 1
Hello
I have read the wiki and have made my kde4 desktop system "go to sleep" on command. I could not get the keyboard sleep button to work and I came across a great guide to writing a script and binding the sleep button on the keyboard to this script. The script is :
dbus-send --print-reply --dest='org.freedesktop.PowerManagement' /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.Suspend
I am happy with this solution but I am confused. The "sleep" button invoked from the Kickoff works (I am not sure it did after a fresh install but I have since installed acpid, pm-utils etc.) How can I find out what the sleep button on Kickoff is actually doing. I don't mind using my own little script but I would prefer to use the inbuilt system.
Any help would be appreciated.
edit: typos
Last edited by esteeven (2010-07-29 06:40:14)
Offline
Take a look in /varlog/pm-suspend.log. You should find some information there.
All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.
Offline
The script is :
dbus-send --print-reply --dest='org.freedesktop.PowerManagement' /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.Suspend
Also: please put things like scripts in code brackets:
The script is:
dbus-send --print-reply --dest='org.freedesktop.PowerManagement' /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.SuspendThanks
Offline
loafer: Thanks. I will. Not sure I'll understand it though ![]()
JackH79: That's helpful. Thanks.
Offline
Could be outdated, but: http://forum.kde.org/viewtopic.php?f=66&t=64281#p137269
Take a look in /varlog/pm-suspend.log
What he means is that kickoff probably uses pm-utils and may invokes "/usr/sbin/pm-suspend". Not sure though.
Last edited by JackH79 (2010-07-29 08:13:31)
Offline
qdbus org.kde.kded /modules/powerdevil suspend 2This worked and is now mapped to my "sleep" key.
Thanks for the link JackH79.
Offline
Pages: 1