Bug 530913 - Couldn't hibernate: Swap space is encrypted
Summary: Couldn't hibernate: Swap space is encrypted
Alias: None
Product: Fedora
Classification: Fedora
Component: DeviceKit-power
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
: 531226 531497 (view as bug list)
Depends On:
Blocks: F12Blocker, F12FinalBlocker
TreeView+ depends on / blocked
Reported: 2009-10-26 01:27 UTC by Mads Kiilerich
Modified: 2009-10-29 11:16 UTC (History)
6 users (show)

Clone Of:
Last Closed: 2009-10-29 10:36:57 UTC

Attachments (Terms of Use)

Description Mads Kiilerich 2009-10-26 01:27:18 UTC
Description of problem:

Hibernate used to work on my machine. But now after todays yum update I get

Oct 26 02:14:26 localhost gnome-session[11541]: devkit-power-gobject-WARNING: Couldn't hibernate: Swap space is encrypted
Oct 26 02:14:26 localhost gnome-session[11541]: WARNING: Unexpected hibernate failure: Swap space is encrypted

But I am pretty sure that my swap space is _not_ encrypted:

[root@localhost ~]# cat /proc/swaps 
Filename				Type		Size	Used	Priority
/dev/mapper/VolGroup00-LogVol01         partition	1966072	0	-1
[root@localhost ~]# blkid |grep swap
/dev/mapper/VolGroup00-LogVol01: TYPE="swap" 
/dev/VolGroup00/LogVol01: TYPE="swap" 
[root@localhost ~]# grep swap /etc/fstab 
/dev/VolGroup00/LogVol01 swap                   swap    defaults        0 0

I assume it was caused by my upgrade to DeviceKit-power-012-1.fc12.i686

* Mon Oct 19 2009 Richard Hughes <richard@hughsie.com> - 012-1
- Update to 012
- Detect encrypted swap and prevent hibernate in this case.
- When we do a delayed refresh, actually do 5 x 1 second apart rather
  than 1 x 3 seconds which should fix some slow battery devices.

(but other packages - such as the kernel - was updated at the same time, so I'm not 100% sure)

Version-Release number of selected component (if applicable):


Comment 1 Matthias Clasen 2009-10-26 15:31:16 UTC
Well, _is_ your swap space encrypted ?

Comment 2 Mads Kiilerich 2009-10-26 15:37:19 UTC
I have not intentionally made the swap space encrypted. How can I prove that it isn't?

I assume that encrypted swap space requires /etc/crypttab to configure a dm device in /dev/mapper which should be used as swap device? I have no /etc/crypttab and as you can see I use /dev/mapper/VolGroup00-LogVol01 directly.

Comment 3 Matthias Clasen 2009-10-26 15:48:16 UTC
I don't know. It might well be that DK-power is getting it wrong and thinks your swap is encrypted, even though it is not. 

I'll ask Richard to look into this when he's back

Comment 4 Matthias Clasen 2009-10-27 18:26:00 UTC
*** Bug 531226 has been marked as a duplicate of this bug. ***

Comment 5 Matthias Clasen 2009-10-27 18:27:27 UTC
Looks like it is not an isolated incident, putting on F12Blocker just in case

Comment 6 Matthias Clasen 2009-10-29 02:53:56 UTC
*** Bug 531497 has been marked as a duplicate of this bug. ***

Comment 7 Matthias Clasen 2009-10-29 02:56:41 UTC
Fixed in DeviceKit-power-012-2.fc12

Comment 8 Richard Hughes 2009-10-29 10:36:57 UTC

Comment 9 Mads Kiilerich 2009-10-29 11:16:42 UTC
DeviceKit-power-012-2.fc12 works for me - thanks!

Note You need to log in before you can comment on or make changes to this bug.