Bug 575898 - gnome-power-manager doesn't think my laptop can hibernate
Summary: gnome-power-manager doesn't think my laptop can hibernate
Keywords:
Status: CLOSED DUPLICATE of bug 540067
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-power-manager
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-22 16:37 UTC by Ben Slusky
Modified: 2010-05-20 00:45 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-05-20 00:45:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
log from successful hibernation (6.07 KB, application/octet-stream)
2010-03-22 16:37 UTC, Ben Slusky
no flags Details

Description Ben Slusky 2010-03-22 16:37:51 UTC
Created attachment 401817 [details]
log from successful hibernation

Description of problem:
On a Thinkpad X60s running Fedora 12 i386, gnome-power-manager won't let me hibernate my laptop. The config applet used to list "hibernate" as an option for when the laptop lid is closed etc., but that disappeared sometime between the initial install and when I decided to see if hibernate would work. Pressing the hibernate button (Fn-F12) pops up a dialog saying "Your computer failed to hibernate."

I ran through all the diagnostics in the FAQ, and they all check out. In fact, hibernate works great when I run pm-hibernate from the command line. So why won't gnome-power-manager hibernate?


Version-Release number of selected component (if applicable):
gnome-power-manager-2.28.2-2.fc12.i686
DeviceKit-power-014-1.fc12.i686


How reproducible:
Always.


Steps to Reproduce:
1. Press hibernate button.
2. Get apologetic error message from gnome-power-manager.
3. Hibernate laptop by running pm-hibernate.
4. Laptop hibernates and resumes normal functionality when woken.

Comment 1 Richard Hughes 2010-03-22 17:23:23 UTC
What does "upower --dump" say?

Comment 2 Ben Slusky 2010-03-23 00:39:34 UTC
ITYM "devkit-power --dump"?

$ devkit-power --dumpDevice: /org/freedesktop/DeviceKit/Power/devices/line_power_AC
  native-path:          /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC
  power supply:         yes
  updated:              Mon Mar 15 09:29:26 2010 (644930 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             no

Device: /org/freedesktop/DeviceKit/Power/devices/battery_BAT0
  native-path:          /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
  vendor:               SONY
  model:                42T4631
  serial:               4161
  power supply:         yes
  updated:              Mon Mar 22 20:38:12 2010 (4 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              27.24 Wh
    energy-empty:        0 Wh
    energy-full:         37.44 Wh
    energy-full-design:  37.44 Wh
    energy-rate:         10.868 W
    voltage:             15.416 V
    time to empty:       2.5 hours
    percentage:          72.7564%
    capacity:            100%
    technology:          lithium-ion
  History (charge):
    1269304692	72.756	discharging
    1269304662	73.077	discharging
    1269304632	73.344	discharging
    1269304602	73.611	discharging
  History (rate):
    1269304692	10.868	discharging
    1269304662	11.075	discharging
    1269304632	11.528	discharging
    1269304602	11.590	discharging

Daemon:
  daemon-version:  014
  can-suspend:     yes
  can-hibernate    no
  on-battery:      yes
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:   yes

Comment 3 Richard Hughes 2010-03-23 13:27:10 UTC
What does

dbus-send --system --dest=org.freedesktop.UPower --print-reply /org/freedesktop/UPower org.freedesktop.UPower.Hibernate

Return?

Comment 4 Ben Slusky 2010-03-23 14:54:45 UTC
Still no upower here...

$ dbus-send --system --dest=org.freedesktop.DeviceKit.Power --print-reply /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.Hibernate
Error org.freedesktop.DeviceKit.Power.GeneralError: Swap space is encrypted

Comment 5 Richard Hughes 2010-03-23 16:56:46 UTC
(In reply to comment #4)
> Still no upower here...

OOps, sorry, long day.

>  Swap space is encrypted    

There is your answer. DeviceKit-power refuses to suspend as it thinks your swap space is encrypted and can't be thawed. Is your swap encrypted? Are you using the swap device or doing swapoff before you hibernate?

Comment 6 Ben Slusky 2010-03-23 17:28:03 UTC
I am using an encrypted swap device (created by anaconda) to hibernate. The initramfs created by dracut manages to thaw just fine.

Comment 7 Ben Slusky 2010-05-20 00:45:09 UTC

*** This bug has been marked as a duplicate of bug 540067 ***


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