Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Missing suspend & hibernate options in KDE
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
wdsci
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2007
Posts: 149
Location: US

PostPosted: Fri Sep 12, 2014 7:45 pm    Post subject: Missing suspend & hibernate options in KDE Reply with quote

I just installed Gentoo on my new laptop about a week ago, but KDE doesn't offer the menu options to suspend or hibernate the system, both in the menu (K menu or Lancelot, I've tried both) and in the Power Management settings applet. Suspend and hibernate functionality does work, and I can manually trigger them by running pm-suspend or pm-hibernate respectively, I just can't get the corresponding buttons to show up in KDE.

I have =sys-power/upower-0.99.0-r1 installed, and running upower -d gives, in part, the following output
Code:
$ upower -d
...
Daemon:
  daemon-version:  0.99.0
  on-battery:      no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       no
  critical-action: PowerOff

In particular the "can-suspend" and "can-hibernate" lines are not present (which some other sites have recommended checking).

I've disabled and re-enabled the Power Management service in System Settings > Startup and Shutdown > Service Manager, and nothing changed.

Some sites recommend using qdbus to check the org.freedesktop.login1 service. That doesn't exist on my laptop.
Code:
$ qdbus org.freedesktop.login1
Service 'org.freedesktop.login1' does not exist.
$ qdbus --system org.freedesktop.login1
Service 'org.freedesktop.login1' does not exist.

The org.freedesktop.PowerManagement service does exist, and when I use it to query whether suspend or hibernate are enabled, it reports that they are not:
Code:
$ qdbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.CanSuspend
false
$ qdbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.CanHibernate
false

Perhaps this is at the root of the problem?

If I actually try to suspend or hibernate using DBus,
Code:
$ qdbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.Suspend

$ qdbus org.freedesktop.PowerManagement /org/freedesktop/PowerManagement org.freedesktop.PowerManagement.Hibernate


it locks the screen but does not actually suspend or hibernate the system.

The file /usr/share/polkit-1/actions/org.freedesktop.login1.policy doesn't exist. (And just to be sure, I checked that no file in /usr/share/polkit-1 mentions suspend or hibernate.)

What else can I check or fix to see the suspend/hibernate buttons and menu options?
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Fri Sep 12, 2014 9:47 pm    Post subject: Reply with quote

You need upower-pm-utils, that will keep you on the last version of upower that supported pm-utils since it's been deprecated.

Code:

emerge -C sys-power/upower && emerge sys-power/upower-pm-utils
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Sat Sep 13, 2014 3:38 pm    Post subject: Reply with quote

I did what you write last kde update o so, but now it doesn't work anymore.
Maybe after the very last kde update.

Thanks.
Andrea
Back to top
View user's profile Send private message
fernan82
n00b
n00b


Joined: 24 Jul 2014
Posts: 70

PostPosted: Sat Sep 13, 2014 4:25 pm    Post subject: Reply with quote

bandreabis wrote:

but now it doesn't work anymore.


What does that means, you don't have the menu options anymore?
Does pm-hibernate (as root) works?
Back to top
View user's profile Send private message
sebB
l33t
l33t


Joined: 02 Mar 2011
Posts: 806
Location: S.O. France

PostPosted: Sat Sep 13, 2014 8:54 pm    Post subject: Reply with quote

How do you start kde? startx or kdm?
If startx, can you post your .xinitrc (Maybe a *kit problem)
You use openrc or systemd?
Back to top
View user's profile Send private message
bandreabis
Advocate
Advocate


Joined: 18 Feb 2005
Posts: 2490
Location: イタリアのロディで

PostPosted: Sat Sep 13, 2014 9:38 pm    Post subject: Reply with quote

Yep! Suspend option disappeared.
pm-hibernate hibernates but do not resume... but I think it's because I didn't set it up with hibernate file or partition.
pm-supend work lika a charm as usual.

I'm using openrc, and kdm.

####EDIT####
WTF!!! They are back! Don't know how and why, but they are back!
I did nothing but go to the cinema, answer to you questions and test pm-*
8O 8O

Thanks is the only thing I may say!
Back to top
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Sun Sep 14, 2014 4:25 pm    Post subject: Reply with quote

Doesn't work with me anymore too. The menu point for hibernate ans suspend are gone. Doesn't seem to be a Plasma issue as it doesn't work with other desktops, for instance lxde, either. It's for some weeks now. I do not use that notebook anymore and I hadn't the time to look into it.
pm-hibernate/suspend works if issued as root.
Back to top
View user's profile Send private message
wdsci
Tux's lil' helper
Tux's lil' helper


Joined: 02 Oct 2007
Posts: 149
Location: US

PostPosted: Mon Sep 15, 2014 6:50 pm    Post subject: Reply with quote

Sorry for the late reply; I couldn't access the forums over the weekend. Unmerging upower and switching to upower-pm-utils did the trick for now (so thanks), but what do I do when upower-0.9 (and upower-pm-utils) become obsolete and are removed from the Portage tree?
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