This forum has been archived. All content is frozen. Please use KDE Discuss instead.

suspend to RAM command [SOLVED]

Tags: None
(comma "," separated)
painteru
Registered Member
Posts
18
Karma
0
OS

suspend to RAM command [SOLVED]

Sun Feb 13, 2011 3:35 pm
Hello,
After I upgraded to KDE 4.6 I’m not able to use my old desktop icon I made for suspend: a simple widget icon with this command on click :
# qdbus org.kde.kded /modules/powerdevil suspend 2
This is the error message I get when I do it in a console:
"Cannot find ‘.suspend’ in object /modules/powerdevil at org.kde.kded."
The "suspend to RAM" button from kicker works very well and also a "suspend" plasma widget I have installed.
Please, can anyone tell me what command I must use for suspend to RAM? I very like a very very clean desktop and a simple transparent icon with just a dot as “title” is what I used before and what I want to use..
Thank you
Daniel

Last edited by painteru on Sun Feb 13, 2011 3:45 pm, edited 1 time in total.


painteru
Registered Member
Posts
18
Karma
0
OS

Re: suspend to RAM command  Topic is solved

Sun Feb 13, 2011 3:44 pm
Hahaha,
I've just found the command I need!

#dbus-send --print-reply --dest='org.freedesktop.PowerManagement' /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.Suspend

it works


seld
Registered Member
Posts
5
Karma
0
OS

Re: suspend to RAM command [SOLVED]

Thu Feb 17, 2011 8:47 pm
Thank you!

I had the same command, but on the keyboard shortcut. Of course after updating to KDE 4.6 it stopped working, which was slowly driving me nuts, because I used this shortcut for a long time.

I tried using kdbus program to find the new command, but did not figure out how to do it. How did you find it out?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: suspend to RAM command [SOLVED]

Fri Feb 18, 2011 12:23 am
You can use "qdbusviewer" and "qdbus" to browse the systems accessible over D-Bus.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
seld
Registered Member
Posts
5
Karma
0
OS

Re: suspend to RAM command [SOLVED]

Fri Feb 18, 2011 4:25 pm
bcooksley wrote:You can use "qdbusviewer" and "qdbus" to browse the systems accessible over D-Bus.

Thanks, it seems to work better than kdbus.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]