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

KDE Hibernate and Suspend to RAM missing

Tags: None
(comma "," separated)
fernan82
Registered Member
Posts
20
Karma
0
OS
I don't have those options anywhere. If I go to System Settings > Power Management > Energy Saving all the drop downs show Do Nothing, Shutdown, Lock Screen, Prompt Logout Dialog, and Turn off Screen. I'm also missing the options in Kickoff > Leave.

I can hibernate fine using pm-tools and hibernate-script.

The reason may be that when I setup the system I did not enable the swap partition until after KDE was up and running but now the swap partition is setup and I still cannot Hibernate from KDE.

I'm also missing the Dim Screen option in power savings, I'm not sure if it's because I'm missing a driver or is something with KDE.

Any ideas?

Thanks
fernan82
Registered Member
Posts
20
Karma
0
OS
I figured it out for the most part. There is no pm-utils support on UPower 0.99.0, downgrading to 0.9.23 enables the options on the kickoff menu and on power settings. For Gentoo users there's an ebuild called upower-pmtools that installs the right version. However I still have no hibernate options on the login screen (kdm). I would also like to configure a timeout on the login screen so that when running on battery it hibernates after a few minutes idle.
Yuriy Shatrov
Registered Member
Posts
1
Karma
0
I'm using Gentoo and having nearly the same problem.
After a full KDE rebuild (e.g. when upgrading), the suspend and hibernate options are displayed and working. But after some time of usage, they magically disappear. Yet manual hibernation/suspend with pm-utils does work.
I could not determine what is the cause of the malfunction, but it really bothers a lot. It happens on three (!) systems I am using (all with Gentoo): my work PC, my home PC and laptop.
Digging a little deeper, I find that qdbus commands related to PM fail, and CanHibernate/CanSuspend return false. I rebuild pm-utils, powerdevil, but to no avail. I wouldn't like to rebuild the whole KDE over and over again...
wolfi323
Registered Member
Posts
1129
Karma
11
OS
fernan82 wrote:However I still have no hibernate options on the login screen (kdm).

There are no (and never have been AFAIK) such options on the login screen (kdm). So that's normal.

I would also like to configure a timeout on the login screen so that when running on battery it hibernates after a few minutes idle.

That's not possible either I suppose.
wolfi323
Registered Member
Posts
1129
Karma
11
OS
Yuriy Shatrov wrote:Digging a little deeper, I find that qdbus commands related to PM fail, and CanHibernate/CanSuspend return false.

That explains it of course.

I rebuild pm-utils, powerdevil, but to no avail. I wouldn't like to rebuild the whole KDE over and over again...

Well, I doubt that rebuilding KDE would change anything, as the problem seems to be with UPower itself. I think KDE/powerdevil just gets this from UPower.

I have no idea what could be the problem though.
And I never saw a similar problem on my (openSUSE) installations.
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Please verify that UPower is running on your system, and is not crashing at any point. Considering that the functionality is initially shown as being available and subsequently disappears, I suspect UPower may be crashing - making this functionality unavailable.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
fernan82
Registered Member
Posts
20
Karma
0
OS
@Yurly please see my 2nd post on this thread.
UPower deprecated pm-utils support after version 0.9.23 so the latest upower package on Gentoo doesnt have it.
On there's an ebuild called upower-pm-utils that will keep you at the latest version that supports pm-utils, you need to unmerge upower and emerge that one.
Then logoff and log back in to kde.

Code: Select all
emerge -C sys-power/upower && emerge sys-power/upower-pm-utils
fernan82
Registered Member
Posts
20
Karma
0
OS
wolfi323 wrote:
fernan82 wrote:However I still have no hibernate options on the login screen (kdm).

There are no (and never have been AFAIK) such options on the login screen (kdm). So that's normal.


It's there on some distros (OpenSUSE I think) but it's because they patched kdm.
I thought if you hibernate from the login screen it would be much faster to start backup than a normal boot (that is how Windows 8 boots so fast) but I tried with lightdm which has this option and it takes about the same to boot.

wolfi323 wrote:
I would also like to configure a timeout on the login screen so that when running on battery it hibernates after a few minutes idle.

That's not possible either I suppose.


I started writing a script for this that runs as a cron job every minute and detects activity not only within the X session but on virtual terminals as well but I haven't had time to finish it. I need to find a way to detect user activity when there's no user logged in both in the X login screen and on the virtual terminals (ie. if the user is typing a password it should reset the idle count). It's here if anyone wants to give it a shot.
wolfi323
Registered Member
Posts
1129
Karma
11
OS
fernan82 wrote:
wolfi323 wrote:
fernan82 wrote:However I still have no hibernate options on the login screen (kdm).

There are no (and never have been AFAIK) such options on the login screen (kdm). So that's normal.


It's there on some distros (OpenSUSE I think) but it's because they patched kdm.

No, it's not there in openSUSE.
There was indeed a patch which added those options, but it only ever worked with HAL, so it got dropped completely in the meantime (as nobody ported it to upower).
And that never was part of upstream KDM.

If you're interested though, here's the latest version of the patch, against KDM 4.10:
https://build.opensuse.org/package/view ... f?expand=1

But as I said, it didn't work any more on openSUSE long before that, as HAL had been dropped.

I don't know about other distros though.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft