You are not logged in.

#1 2013-10-29 11:08:02

hifi25nl
Member
Registered: 2011-05-07
Posts: 264

Force kde 4.11 use systemctl suspend

If I suspend with KDE sometime (not all times) I will resume to a black screen.
Using "systemctl suspend" is working fine.

Is it possible to force kde to use systemctl suspend?

Note: upower 0.9.23 is installed in my system. pm-utils not installed

Last edited by hifi25nl (2013-10-29 11:08:51)

Offline

#2 2013-11-18 19:18:02

PHF
Member
Registered: 2013-10-17
Posts: 8

Re: Force kde 4.11 use systemctl suspend

I have the exact same problem, with a very similar software setup.
Any help would be appreciated !

Offline

#3 2013-11-18 20:48:08

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: Force kde 4.11 use systemctl suspend

The same here. I tried to check it several times, i found out that when i use pm-suspend (from terminal), after resume my computer resumes...but it looks like it is being freezed (i see dekstop but can't do anything, even can't kill x). This thing don't happen when i use systemctl-suspend (terminal). I had pm-utils installed.

Strange thing is that i can't use kde buttons ( K > finish > suspend/hibernate) because they just lock screen and nothing happens (shutdown and rest of them work ok in kde).

Offline

#4 2013-11-18 21:44:05

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: Force kde 4.11 use systemctl suspend

This one should work, put it in ~/.local/share/applications/suspend.desktop

[Desktop Entry]
Name=Suspend (Systemd)
Comment=Suspend session using systemd
Categories=Utilities;System;
Exec=systemctl suspend
Icon=system-shutdown
Type=Application

Run kbuildsycoca4, then check the powerdevil settings and change the default action to this for e.g. lid close. This action will be available throught KRunner too.

Last edited by ilpianista (2013-11-19 13:51:05)

Offline

#5 2013-11-18 21:51:15

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 628

Re: Force kde 4.11 use systemctl suspend

I would like to ask for one thing: you named this file suspend.desktop, when in i found that there are also suspend@.desktop. Which is correct?

Last edited by firekage (2013-11-19 22:35:59)

Offline

#6 2013-11-18 23:25:25

hifi25nl
Member
Registered: 2011-05-07
Posts: 264

Re: Force kde 4.11 use systemctl suspend

I don't know...

kbuildsycoka4...command not found
Since I cannot set lid close because I am using a desktop computer, there is no option in Power management/Energy saving where I could use that desktop file. Normally I use Power button for shutting down the system and suspend key on keyboard for suspend or suspend icon on kde.

Offline

#7 2013-11-19 13:53:46

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: Force kde 4.11 use systemctl suspend

hifi25nl wrote:

kbuildsycoka4...command not found

That was a typo, use kbuildsycoca4

hifi25nl wrote:

Normally I use Power button for shutting down the system and suspend key on keyboard for suspend or suspend icon on kde.

Then map the keyboard key to kdesu systemctl suspend. About the power button I don't know yet.

firekage wrote:

I would like to ask for one thing: you named this file suspend.desktop, when in i found that there are also susnend@.desktop. Which is correct?

This is not systemd when you can specify arguments using the @. Save it as suspend.desktop or howDoYouLikeMore.desktop.

Offline

Board footer

Powered by FluxBB