Description of problem: In F11, I could hibernate my Lenovo ThinkPad X61s without any problems. After upgrading to F12, the button is no longer present in the "turn off system" dialogue box, nor is it available as an action in gnome-power-manager. In F11 the system would hibernate automatically when battery cacpacity was critically low, however in F12 I now just get a message that said it failed instead. Version-Release number of selected component (if applicable): F12, DeviceKit-power-012-2.fc12.x86_64 How reproducible: 100% Steps to Reproduce: 1. Try to hibernate the machine through standard GUI tools 2. 3. Actual results: It won't let me. Expected results: It should let me. After all, it worked in Fedora 11. Additional info: Smolt profile: http://www.smolts.org/show?uuid=pub_42d1d513-8f1c-4746-9d6b-7301d0ba27aa Admittedly I'm making a guess when assigning this report to the DeviceKit-power package. I'm not too familiar with which "under the hood" service does what task in a modern distro anymore, unfortunately. I apologise in advance if this DeviceKit-power is the wrong package, and ask you to reassign the bug to the correct one.
It's a bug in DeviceKit-power, see: https://bugs.freedesktop.org/show_bug.cgi?id=23196 .
Nice catch. I am indeed using encrypted swap. Tore
Same here, encrypted swap worked fine with FC11. After upgrade to FC12, the option was no longer available in the Gnome menus. Note that pm-hibernate still works fine with FC12 on my Dell Precision M6300. pm-is-supported --hibernate && echo OK OK devkit-power -d (...) Daemon: (...) can-hibernate no (...)
Is nothing being done to fix this very annoying bug? Both hibernation and disk encryption are pretty crucial features to many laptop users... Tore
Yes, it is very annoying. I hacked the source of the devkit-power-daemon to allow hibernate on encrypted swap. Hibernation is fine with that hack. In source file dkp-daemon.c, look for the following piece of code: /* encrypted swap? */ if (daemon->priv->hibernate_has_encrypted_swap) { error = g_error_new (DKP_DAEMON_ERROR, DKP_DAEMON_ERROR_GENERAL, "Swap space is encrypted"); g_error_free (error_local); dbus_g_method_return_error (context, error); goto out; } Put #if 0 and #endif around it and you are fine. The devkit-power-daemon lives in /usr/libexec. Replace it and restart the daemon (a reboot is the easy way).
Bas, thanks! To me your change does not seem as a hack at all, it seems to me the whole purpose of that code is to prevent hibernation to encrypted swap. However, hibernation to encrypted swap works just as well as hibernation to unencrypted swap. The check is obviously broken and should be removed - your change appears to me as the correct fix. It should really be added to F12/13. By the way, I think the reason for the check must be to prevent hibernation to encrypted swap if the user has no means to unlock the swap and thus resume from it. If this is the case or not depends on unlocking support in initramfs, and Fedora has had that since at least since F11 (probably longer), and it has been working well. There is therefore no reason to have this check in the Fedora packages, but plenty of reason to take it out. Tore
Yup, still broken in Fedora 12. Commit that introducted that behaviour: http://cgit.freedesktop.org/DeviceKit/DeviceKit-power/commit/?id=ea6ebd1a526653bb9d59d5143d844c0f7557a351 Above commit tries to fix the freedesktop bugilla bug 23196: http://bugs.freedesktop.org/show_bug.cgi?id=23196 Many thanks to Dustin Kirkland and the eCryptfs guys, that broke hibernate function in Fedora 12 to an encrypted swap, that is pretty good supported in Fedora 12!
I'm guessing this commit fixes things for you: http://cgit.freedesktop.org/upower/commit/?id=5f1e64709b62517e4a925e952d255ab16d818df0
It there a rpm available to test, e.g. in koji (or what is it called) or so?
Will there be an update for Fedora 12 for this package?
Yup, I'll hopefully do it this week at some point. If you need a fix now, rebuild the srpm package from here: http://people.freedesktop.org/~hughsient/fedora/13/SRPMS/
I replaced DeviceKit-power-014-1.fc12.x86_64 by upower-0.9.4-1.fc13.x86_64 and the "Hibernate" button appears and works now. Thanks for the fix.
*** Bug 575898 has been marked as a duplicate of this bug. ***
Works for me too. Thanks!
Fixed in current Fedora 13. Thanks!