![]() Registered Member ![]()
|
Hi, folks!
I'm running KDE 4.3.5. I have session saving while shutting down on, so all my stuff will get back on KDE startup. To terminate KDE session I usually press Control-Alt-Del, so, the session get saved correctly. In that way, to switch off my puter I have to exit from KDE session by pressing Control-Alt-Del and than press power button (so, acpid will do the rest). Is there is a way to exit KDE session correctly, saving it, but using any console command, so I can add it to my acpid rule or to shutdown my station remotely? |
![]() Administrator ![]()
|
You need to communicate with KSMServer. Catch is the command must be run as your user, otherwise D-Bus will refuse the message for security reasons, even if the sender is root.
If you wish to instruct KDE to perform a system shutdown ( including proper KDE logout ) run:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
That works! But where can I find more information about parameters?
|
![]() Administrator ![]()
|
More information can be found here: http://majewsky.wordpress.com/2009/07/1 ... om-remote/
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
My solution can be found here:
http://forums.gentoo.org/viewtopic-t-832639.html |
![]() Registered Member ![]()
|
Beautifull , I was searching for these commands from half a decade.,
|
![]() Registered Member ![]()
|
Very useful!
(and all the other stuff one could do with dbus... Controll the network manager and such...) The commands dont't work as given if I use them from a virtual terminal. But
does the trick! |
![]() Registered Member ![]()
|
thanks for this tip! also, you have to run this command under the same user as you are running the kde session Edit: just read bcooksley already mentioned that ![]() |
![]() Registered Member ![]()
|
Great post! Thanks a lot.
jlinkels |
Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]