Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 840  / 3 Years ago, thu, july 22, 2021, 3:45:13

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?


More From » 20.04

 Answers
7

This is (can be) a symptom of running Ubuntu in SecureBoot mode. See here for more detail.


According to this (at least as I understand it), your error message is telling you that hibernation is not allowed in your system, as it is trying to comply with secure boot standards.


To disable SecureBoot, you need to boot into the BIOS settings menu. The process for opening the BIOS menu and for locating this setting are machine dependant. If you do not already know the process, a quick google search of:


<laptop-make-&-model> BIOS settings

...will give detailed instructions. Substituting or adding the word "SecureBoot" will tell you where at in the menu the option is hiding, although it is usually fairly easy to locate. Often, it is located under a 'security' tab or somethinng similar.


As far as the nvidia card/driver, I am running the same setup, and the only issue I have come across was with sway, and that ended up being minor.


[#1312] Saturday, July 24, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
iedncommon

Total Points: 200
Total Questions: 95
Total Answers: 132

Location: Tonga
Member since Mon, Aug 2, 2021
3 Years ago
iedncommon questions
;