You are not logged in.

#1 2010-07-29 06:33:16

esteeven
Member
Registered: 2010-07-28
Posts: 25

Suspend to RAM : my confusion

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

#2 2010-07-29 06:48:38

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Suspend to RAM : my confusion

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

#3 2010-07-29 07:10:30

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: Suspend to RAM : my confusion

esteeven wrote:

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.Suspend

Thanks

Offline

#4 2010-07-29 07:26:11

esteeven
Member
Registered: 2010-07-28
Posts: 25

Re: Suspend to RAM : my confusion

loafer: Thanks. I will. Not sure I'll understand it though smile

JackH79: That's helpful. Thanks.

Offline

#5 2010-07-29 08:09:01

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: Suspend to RAM : my confusion

Could be outdated, but: http://forum.kde.org/viewtopic.php?f=66&t=64281#p137269

loafer wrote:

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

#6 2010-07-29 13:14:22

esteeven
Member
Registered: 2010-07-28
Posts: 25

Re: Suspend to RAM : my confusion

qdbus org.kde.kded /modules/powerdevil suspend 2

This worked and is now mapped to my "sleep" key.

Thanks for the link JackH79.

Offline

Board footer

Powered by FluxBB