#StackBounty: #20.04 #suspend #hibernate Ubuntu Focal freezes and does not resume after suspend (e.g. laptop close)

Bounty: 50

When I close my laptop and re-open it (or it auto sleeps after inactivity), the machine will not resume correctly. The screen will show the sleep screen — a brief description of the suspend activity — and the fans will start blowing like a 747 taking off. The only recourse is to hard-boot (hold power button for 4 seconds).

This used to work OK with Bionic (which became unstable after too many experiments with various hardware hacking), so I’m a bit baffled.

There is a reference in dmesg to hibernation:

[   30.198017] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7

But it’s not clear to me how to resolve this issue. man kernel_lockdown discusses the disabled "unencrypted" hibernation, which implies an encrypted hibernation is possible, but does not provide further detail.

Ubuntu docs on Enable Hibernate With Encrypted Swap does supply some instructions, but does not seem to work. This implies that lvm must be in use, which in my case it is not (I opted for the zfs root directory during install, which does not use lvm).

I thought for a while this was related to the nvidia drivers (currently 460) not resuming state correctly, but I’ve tried all the settings (including forcing the intel chipset) with no change.

The syslog output from just before reboot is as follows. I don’t think I see anything interesting here, but I might not know what to look for.

Jul 25 12:04:49 xenon wpa_supplicant[2208]: nl80211: deinit ifname=p2p-dev-wlp4s0 disabled_11b_rates=0
Jul 25 12:04:49 xenon systemd-sleep[165210]: Suspending system...
Jul 25 12:04:49 xenon kernel: [ 3360.130627] PM: suspend entry (deep)
Jul 25 12:04:49 xenon wpa_supplicant[2208]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
Jul 25 12:04:51 xenon gnome-shell[17784]: [17775:17977:0725/120451.785183:ERROR:connection_factory_impl.cc(429)] Failed to connect to MCS endpoint with error -106
Jul 25 12:04:54 xenon kernel: [ 3364.649231] Filesystems sync: 4.519 seconds
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (**) Option "fd" "44"
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) event3  - Power Button: device removed
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (**) Option "fd" "47"
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) event6  - Video Bus: device removed
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (**) Option "fd" "48"
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) event7  - Video Bus: device removed
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (**) Option "fd" "49"
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) event0  - Power Button: device removed
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (**) Option "fd" "50"
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) event1  - Sleep Button: device removed
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (**) Option "fd" "51"
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) event8  - Chicony USB 2.0 Camera: Chicony: device removed
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (**) Option "fd" "52"
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) event4  - AT Translated Set 2 keyboard: device removed
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (**) Option "fd" "53"
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) event5  - SynPS/2 Synaptics TouchPad: device removed
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) systemd-logind: got pause for 13:69
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) systemd-logind: got pause for 13:64
Jul 25 12:04:54 xenon kernel: [ 3364.965699] rfkill: input handler enabled
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) systemd-logind: got pause for 13:71
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) systemd-logind: got pause for 226:0
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) systemd-logind: got pause for 13:68
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) systemd-logind: got pause for 13:65
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) systemd-logind: got pause for 13:70
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) systemd-logind: got pause for 13:67
Jul 25 12:04:54 xenon /usr/lib/gdm3/gdm-x-session[3482]: (II) systemd-logind: got pause for 13:72

What have I not checked?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.