Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KDE suspend action missing after upgrading to polkit-0.107
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
DSHugo
n00b
n00b


Joined: 26 Aug 2007
Posts: 46

PostPosted: Fri Nov 23, 2012 6:58 am    Post subject: KDE suspend action missing after upgrading to polkit-0.107 Reply with quote

After a recent ugrade to sys-auth/polkit-0.107-r1 from sys-auth/polkit-0.104-r1, and to sys-auth/consolekit-0.4.5_p20120320-r1 from sys-auth/consolekit-0.4.5_p20120320, KDE has stopped suspending on corresponding keyboard shortcut (Fn+f4), and "suspend" action is missing from "when laptop lid is closed" in "systemsettings -> energy saving settings" (dropdowns with "suspend" previously assigned are now blank). There appears to be an "org.freedesktop.upower.suspend" action in "systemsettings -> Actions policy", with same implicit authorizations as org.freedesktop.consolekit.system.restart (restarting seems to work from KDE still). Acpid still registers Fn+f4 shortcut, so it possible to suspend through acpid + pm-suspend, but I miss my "auto-suspend when lid closed when on battery". Does anybody have any idea what's might have gone wrong with those udates?
Back to top
View user's profile Send private message
DSHugo
n00b
n00b


Joined: 26 Aug 2007
Posts: 46

PostPosted: Fri Nov 23, 2012 7:15 am    Post subject: Reply with quote

Looks like I was wrong, restarting from KDE doesn't work anymore either.

I'm not sure it is helpful in any way, but
Code:
/usr/bin/ck-list-sessions                                                       [9:14/11.23]
Session1:
        unix-user = '1000'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2012-11-23T07:09:55.888210Z'
        login-session-id = ''
Back to top
View user's profile Send private message
DSHugo
n00b
n00b


Joined: 26 Aug 2007
Posts: 46

PostPosted: Sun Nov 25, 2012 8:54 am    Post subject: Reply with quote

Also, it appears that KDE sometimes manages to handle "sleep" event properly. E.g. after reboot KDE never reacts to Fn+f4, and does not suspend, but after logout and re-login it does work, as if some service was not initialized properly during the first login.
Back to top
View user's profile Send private message
Quincy
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 188
Location: Germany

PostPosted: Mon Dec 03, 2012 10:08 am    Post subject: Reply with quote

In another thread the upgrade to KDE 4.9 is subjected to break things and so was my feeling because the upgrade of polkit and consolekit came earlier and did not lead directly to problems. Perhaps the combination of both is needed?

I (also) see the following behaviour:
- Suspend with keyboard shortcut does not work anymore
- Suspend and Hibernate are missing from the energy saving options
- Suspend and hibernate are still working when invoked in a root shell by pm-susend/-hibernate

I also recognized that the actions from a widget with suspend/hibernate now additionally ask if I really want to suspend hibernate (is this Windows or what? Seems this is intended to prevent accidentally putting your computer to sleep...). If I answer yes the screen is locked, but the sleep action is never carried out.


Last edited by Quincy on Fri Mar 01, 2013 8:29 am; edited 1 time in total
Back to top
View user's profile Send private message
Quincy
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 188
Location: Germany

PostPosted: Mon Dec 03, 2012 10:29 am    Post subject: Reply with quote

Logging out and directly afterwards login in again indeed seems to be a workaround, because now all functions work like before. some race condition when starting and loggin in for the first time?
I additionally recognized that my dashboard which was normally only a transparent overlay and not has been working (was opaque with own background as if compositing was turned off) directly after reboot is also brought back by this action. I thought this was another bug, but now it seems to be linked...
Back to top
View user's profile Send private message
Goverp
Guru
Guru


Joined: 07 Mar 2007
Posts: 335

PostPosted: Sat Jan 05, 2013 9:19 am    Post subject: Reply with quote

I'll add my vote to this.
I've got the same symptoms after my latest upgrade to KDE 4.9.3 from 4.8.5, and polkit 0.107-r1 from 0.104-r1.
Logging in and out has no effect. pm-suspend and pm-hibernate work.
Closing the lid and Fn+F1 (used to be sleep) don't work, neither does the Hibernate nor Sleep actions from the KDE "Leave" menu.
I wonder if Bug 438790 is related (though that's talking about KDE 4.10)
_________________
Greybeard
Back to top
View user's profile Send private message
Quincy
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 188
Location: Germany

PostPosted: Sat Jan 05, 2013 11:30 pm    Post subject: Reply with quote

Strangely everything is back to normal in my case. I'm still on KDE 4.9.3 and polkit 0.107-r1, but now the options show up again in the power settings and also function keys and lid closing work as they ever did. I'm not aware of any special change I made, just updating my system on a weekly basis, so perhaps you should try to sync and update the whole thing (perhaps including kernel) when you're not already up-to-date.
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 846

PostPosted: Mon Jun 30, 2014 7:30 pm    Post subject: Reply with quote

Hi

Same problem with polkit-0.112-r1 and kde-4.12.5-r1.
Will try logoff/login to see if it's the exact same behavior.
_________________
Powered by (x86) Gentoo Linux since 2003
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 846

PostPosted: Mon Jun 30, 2014 8:43 pm    Post subject: Reply with quote

Fixed for me.
Needed to install upower-pm-utils as suggested in the portage news. :oops:
_________________
Powered by (x86) Gentoo Linux since 2003
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum