Hibernate Failing

Bug #1094595 reported by Clayton Lawless
108
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Dell Sputnik
New
Undecided
Unassigned
Ubuntu
Confirmed
Undecided
Unassigned

Bug Description

12.10 64-bit

Both sputnik ppa's installed.

When the machine tries to hibernate this error pops up and the machine shuts down.

[ 584.942608] dpm_run_callback(): pnp_bus_resume+0x0/0x80 returns -19

[ 584.942610] PM: Device 00:07 failed to thaw: error -19

Revision history for this message
Mike Meehan (mjmeehan) wrote :

Same issue for me, 12.04 64-bit.

Device 00:07 is:

$ cat /sys/bus/pnp/devices/00\:07/id
PNP0303

$ dmesg | grep PNP0303
[ 0.674312] pnp 00:07: Plug and Play ACPI device, IDs PNP0303 (active)
[ 1.126441] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12

$ lshal -u /org/freedesktop/Hal/devices/pnp_PNP0303
udi = '/org/freedesktop/Hal/devices/pnp_PNP0303'
  info.linux.driver = 'i8042 kbd' (string)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  info.product = 'IBM Enhanced (101/102-key, PS/2 mouse support)' (string)
  info.subsystem = 'pnp' (string)
  info.udi = '/org/freedesktop/Hal/devices/pnp_PNP0303' (string)
  linux.hotplug_type = 2 (0x2) (int)
  linux.subsystem = 'pnp' (string)
  linux.sysfs_path = '/sys/devices/pnp0/00:07' (string)
  pnp.description = 'IBM Enhanced (101/102-key, PS/2 mouse support)' (string)
  pnp.id = 'PNP0303' (string)

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

This might be swap-related. Could you please paste your /etc/fstab in here?

Revision history for this message
Clayton Lawless (clay-lawless) wrote :

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/ubuntu-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
UUID=500e7822-8f2f-410f-b740-df390a04b4eb /boot ext2 defaults 0 2
/dev/mapper/ubuntu-swap_1 none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0

Revision history for this message
John Kida (jdkida) wrote :

This bug is also effecting me, has anyone come up with a fix for it? Or do we just have to use suspend for now?

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

Here's my fstab. It's pretty simple.

$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda3 during installation
UUID=c24dcb8f-f3a8-481b-b68d-7f3f0e89ecbf / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=57326aa8-1fdf-45d9-a93d-6ce52a4d9e81 none swap sw 0 0

But note the presence of zram at run-time:

$ cat /proc/swaps
Filename Type Size Used Priority
/dev/zram0 partition 3866224 0 100
/dev/sda5 partition 15871996 0 -1

The resume device seems to be configured correctly:

$ cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=57326aa8-1fdf-45d9-a93d-6ce52a4d9e81
$ sudo blkid /dev/sda5
/dev/sda5: UUID="57326aa8-1fdf-45d9-a93d-6ce52a4d9e81" TYPE="swap

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

FYI, I'm using the official 12.04 Sputnik factory image. Hibernate originally worked, but it regressed after installing updates at some point.

Revision history for this message
Jared Dominguez (jared-dominguez) wrote :

Tristan, while it's possible that there are other issues, you won't be able to hibernate using Linux's hibernate functionality if you're using zram. Do you have either the zram-config or casper packages installed on your system?

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

Nope. I think initramfs-tools is enabling zram on its own, in /usr/share/initramfs-tools/hooks/compcache:

$ dpkg -S /usr/share/initramfs-tools/hooks/compcache
initramfs-tools: /usr/share/initramfs-tools/hooks/compcache
$

Revision history for this message
Jared Dominguez (jared-dominguez) wrote :

That is just a hook that can run and doesn't necessarily mean that zram is enabled. See /etc/initramfs-tools/initramfs.conf. You want COMPCACHE_SIZE="" therein.

Revision history for this message
Jared Dominguez (jared-dominguez) wrote :

Clayton: Please test with cryptswap disabled. While some have reported that they have cryptswap working with hibernate (such as https://help.ubuntu.com/community/EnableHibernateWithEncryptedSwap), it's not supported by Canonical or Dell and, if misconfigured, may prevent hibernation from working correctly.

John: Please paste the contents of /etc/fstab on your system.

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

Hmm. Not that either:

$ grep COMPCACHE_SIZE /etc/initramfs-tools/initramfs.conf
# COMPCACHE_SIZE: [ "x K" | "x M" | "x G" | "x %" ]
COMPCACHE_SIZE=""

And to confirm:

$ dpkg -s zram-config
Package `zram-config' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
$ dpkg -s casper
Package `casper' is not installed and no info is available.
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
$ cat /proc/swaps
Filename Type Size Used Priority
/dev/zram0 partition 3866224 0 100
/dev/sda5 partition 15871996 0 -1
$

:(

Who else could be doing it?

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

On a hunch, I rebuilt the initramfs with sudo update-initramfs -k all -u. Sure enough, after a reboot zram is gone and hibernate now works. But how did it get enabled in the initramfs in the first place? Strange.

Revision history for this message
Adrian Patrascu (adrian-patrascu) wrote :

I'm on 13.04 beta 2 with latest updates.

I get the same error -19 whenever i try to put the computer to sleep. Hibernate does not work at all. It is grayed out in the Power setting (in System Settings) and using pm-hibernate from the command line just crashes the computer and forces me to restart.

Revision history for this message
Ville Pätsi (sanguivor) wrote :

Hibernation, or restoring from hibernation, does not work for me with kernel 3.2.0-40.64+kamal15~DellXPS. Upon restarting and restoring the screen stays blank with backlight on, and the fan starts to run and the machine is non-responsive to anything but a power button hold down hard reset.

With kernel 3.2.0-30.48+kamal6~DellXPS hibernation does work without problems. I do get the same warnings/errors as mentioned in this bugs original report, but those don't seem to matter.

This is on Dell factory installed 12.04.02 LTS with unchanged package sources.

Revision history for this message
pedijan (pedram-hadjian) wrote :

Same issue here. I've been playing around with kernel versions, but none seems to do the job. My setup:

- 12.04 sputnik iso with dell ppas.
- Tried kernels 3.2.0-41-generic #66+kamal16~DellXPS-Ubuntu and linux-image-3.8.0-19-generic (package name).
- Older kernels give me the iwlwifi bug.

When doing hibernate it gives me:
[ 584.942608] dpm_run_callback(): pnp_bus_resume+0x0/0x80 returns -19

[ 584.942610] PM: Device 00:07 failed to thaw: error -19

After reboot, the screen stays black, but in graphics mode. Pressing keys show characters on screen. Mouse cursor visible, but then again its also visible on the ttys. Restarting lightdm gives me login screen again, but after reboot same error.

No zram or casper installed. /etc/initramfs-tools/initramfs.conf. has COMPCACHE_SIZE="".

Revision history for this message
pedijan (pedram-hadjian) wrote :

One more: I have BIOS version A06 installed. Going to try update to A08 now.

Revision history for this message
Daniel García (danielgarciaaubert) wrote :

Hi!

The same issue occurs in my XPS 13. When I try to hibernate and also when I suspend the system.

Are there any workaround for this bug?

Any suggestions??

Thanks in advance!

Revision history for this message
Ioannis Havoutis (ihavoutis) wrote :

Hi all,

I got the same issue :(

When I try hibernate I get:

[a number...] legacy_resume(): pnp_bus_resume+0x0/0x70 returns -19
[a number...] PM: Device 00:07 failed to thaw: error -19

Then when I turn on the laptop it starts up normally, i.e. does not resume from the hibernation state...

I got 12.04 with dell ppas, no zram, casper is installed though.

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

You have to remove Casper for hibernate to work.

Revision history for this message
Daniel García (danielgarciaaubert) wrote :

Hi everyone!

I got the same issue when I try hibernate or suspend the system.

The error output is the same.

I got 12.04 LTS, 1080p in my XPS 13.

Please, any workaround for the issue?

Thanks in advance.

Revision history for this message
Fabz (fabz1) wrote :

Hi all,

I had the same issue on my XPS 13 Developer Edition.
Problem was the /dev/zram0 and the casper package was installed.
After the deinstallation of casper and generating an new initramfs image,
hibernate works after a couple of restarts.

It didn't work direct after the first restart and also the error message:
[ 0.371325] pnp 00:07: Plug and Play ACPI device, IDs PNP0303 (active)
[ 0.652920] i8042: PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
is shown every time the XPS is sent to hibernate.

Thanks for the workaround.

Emun (upload-openaccess)
Changed in ubuntu:
status: New → Confirmed
Revision history for this message
Emun (upload-openaccess) wrote :

I get the same error with Linux Mint 15 Cinnamon 64bit (based on Ubuntu 13.04) on Samsung, model: NP300E5V-A02IN. It's happening on a fresh install of Mint.
Another person in Mint forums had the same error with Linux Mint 14 Cinnamon (based on Ubuntu 12.10) on Samsung "Series 9 laptop". ( http://forums.linuxmint.com/viewtopic.php?f=90&t=133500 )

Revision history for this message
Christian Vielma (cvielma) wrote :

Same error here... removed casper and executed (blindly, shame on me) "sudo update-initramfs -k all -u." as said by Tristan in comment #12. After that command is even worse because after failing hibernating it now also fails restarting after "hibernating".

Only original sources here...

Revision history for this message
Christian Vielma (cvielma) wrote :

By the way, what does "sudo update-initramfs -k all -u" do?

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

It rebuilds Linux's boot-time initialization environment from the latest settings in /etc. Usually adding or removing the relevant package should do it automatically, but in my case it was somehow out of sync.

Revision history for this message
Aaron Sarazan (t-aaron) wrote :

Any progress on this? I'd like to start moving toward Sputnik and away from Macbooks at work, but I absolutely can't move forward with a battery-killer like this in the mix.

Revision history for this message
Tobias Barden (tobias+b) wrote :

Reporting from a Dell XPS 13 Developer Edition with Ubuntu 13.04:

Hibernating is working, but getting the same error:

[108469.536550] ahci 0000:00:1f.2: setting latency timer to 64
[108469.540279] ehci-pci 0000:00:1a.0: cache line size of 64 is not supported
[108469.540400] ehci-pci 0000:00:1d.0: cache line size of 64 is not supported
[108469.644266] dpm_run_callback(): pnp_bus_resume+0x0/0x80 returns -19
[108469.644267] PM: Device 00:06 failed to resume: error -19
[108469.662172] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input24
[108469.855088] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)

[dmesg | grep -C 3 dpm_run_callback]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.