Ubuntu – Pm-hibernate freezes and/or fails to resume on Dell XPS 13, 14.04, 3.19 kernel

14.04dellhibernatesuspend

I'm running 14.04 on a new XPS 13. In order to support the newer hardware, I'm running a mainline 3.19 kernel.

Hibernate resume has been iffy with the entire 3.19 kernel line, but recently (3.19.5) pm-hibernate no longer works at all. The screen will either a) switch off momentarily, then back on with all inputs frozen or b) switch off entirely, and fail to resume upon power on (despite displaying the correct resume-from-uuid message).

I have enough swap space (and it has worked in the past), I have checked that the uuid is being correctly referenced, and nothing seems particularly amiss in /var/log/pm-suspend.log (last 200 lines here: http://pastebin.com/1dvyHhmQ)

Thanks for your help.

Best Answer

For the situation I described running a non-stock kernel, the following solution worked. Depending on what kernel series you're using, YMMV:

You'll need to do these to get grub/initramfs set up correctly:

sudo blkid | grep swap <-- get your swap uuid
sudo <your_text_editor_here> /etc/default/grub <-- edit your grub file    
GRUB_CMDLINE_LINUX="RESUME=UUID=<your_swap_uuid>" <-- add this to grub file
uname -r <-- get running kernel name
sudo update-initramfs -u -k <your_kernel_name> <-- init with the right kernel
sudo update-grub

Reboot, and then check for hibernate compatibility by doing pm-hibernate at the command line. Hope this helps someone else!

Related Question