Ubuntu 18.04 does not restore from hibernate on X1 Carbon

I purchased an X1 Carbon because it is supposed to be Ubuntu certified: https://certification.ubuntu.com/hardware/201712-26045/

50% of the time it fails to restore from hibernation. This makes it useless and I lose all my work. Please, please help. I can't even tell why it fails. It says it does s2disk before it hibernates, but just freezes on a back screen.

Update

Is there some element of this that is transparently problematic?

+++ System Info
System         = LENOVO ThinkPad X1 Carbon 6th 20KH002KUS
BIOS           = N23ET59W (1.34 )
Release        = Ubuntu 18.04.2 LTS
Kernel         = 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64
/proc/cmdline  = BOOT_IMAGE=/boot/vmlinuz-4.15.0-46-generic root=UUID=64f9d81d-0494-4f90-983e-5168b6420c6e ro resume=/dev/nvme0n1p4 no_console_suspend initcall_debug acpi.ec_no_wakeup=1 resume=/dev/nvme0n1p4 no_console_suspend initcall_debug acpi.ec_no_wakeup=1
Init system    = systemd v237
Boot mode      = UEFI

Solution 1:

Try installing tlp Linux Advanced Power Management to try a workaround the issues of the kernel. This is not guaranteed to work but its worth a try. It also has some features tailored to thinkpads so it might improve battery life even more with a little digging on their site You can install it using the command below:

   sudo apt install tlp tlp-rdw

to run it run the below command:

   sudo tlp start 

Solution 2:

When all other hibernation Tips & Tricks fail, install TuxOnIce:

sudo add-apt-repository ppa:tuxonice/ppa
sudo apt-get update
sudo apt-get install tuxonice-userui linux-generic-tuxonice 

If suspend or resume does not work, take a look at /var/log/pm-suspend.log and dmesg, provide feedback on the [email protected] mailing list.

Having said the above, never believe a random stranger on the Internet to install a PPA, do your own due diligence and obviously a PPA with 1000s of happy users will be more safe than ppa:maffia.it/botnet with a few 100 users...

Solution 3:

Hibernate is broken in 18.04. I've been experiencing this and I'm not alone.

I personally fixed by switching to ubuntu 18.10. it may not be LTS but good god an incredible number of things that don't work on 18.04 work on 18.10 and none of the things that work on 18.04 don't work on 18.10.