TransWikia.com

Garbled console after hibernate resume

Ask Ubuntu Asked by Bram on December 25, 2020

My workstation has no ACPI S3 available:

ACPI: (supports S0 S4 S5)

So instead, I wanted to try suspend to disk instead.

I have an adequatly sized swap partition (larger than my RAM,) which is correctly targetted for the resume.

To suspend, I ran s2disk from the uswsusp package, and I ran it without X running, to take GPUs out of the equation.

When I woke the machine, the OS came back, and restored me to the console with the s2disk command just executed. So that’s good. But the screen was all garbled:

garbled text

I tried to rectify this with service console-font restart but my machine has no such service.

The output from the kernel when woken:

ACPI: Waking up from system sleep state S4
[  624.048906] usb usb1: root hub lost power or was reset
[  624.048907] usb usb2: root hub lost power or was reset
[  624.048932] pci 0000:16:05.0: disabled boot interrupts on device [8086:2034]
[  624.049091] pci 0000:64:05.0: disabled boot interrupts on device [8086:2034]
[  624.049130] pci 0000:b2:05.0: disabled boot interrupts on device [8086:2034]
[  624.289310] nvme nvme0: 15/0/0 default/read/poll queues
[  624.403150] usb 1-2: reset full-speed USB device number 3 using xhci_hcd
[  624.679179] usb 1-6: reset full-speed USB device number 4 using xhci_hcd
[  624.955196] usb 1-7: reset high-speed USB device number 5 using xhci_hcd
[  625.231150] usb 1-4: reset full-speed USB device number 7 using xhci_hcd
[  625.667205] usb 1-7.1: reset low-speed USB device number 6 using xhci_hcd
[  625.867082] pcieport 0000:b2:03.0: pciehp: Timeout on hotplug command 0x07d5 (issued 1920 msec ago)
[  625.867086] pcieport 0000:b2:00.0: pciehp: Timeout on hotplug command 0x07d5 (issued 1920 msec ago)
[  625.867090] pcieport 0000:b2:01.0: pciehp: Timeout on hotplug command 0x07d5 (issued 1920 msec ago)
[  625.867092] pcieport 0000:b2:02.0: pciehp: Timeout on hotplug command 0x07d5 (issued 1920 msec ago)
[  625.868743] serial 00:03: activated
[  625.870165] serial 00:04: activated
[  626.103190] Restarting kernel threads ... done.
[  626.103815] PM: Basic memory bitmaps freed
[  626.103816] OOM killer enabled.
[  626.103817] Restarting tasks ... done.

The contents of /var/log/pm-suspend.log

Initial commandline parameters: 
Thu 12 Nov 2020 09:58:49 PM PST: Running hooks for hibernate.
Running hook /usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate:
/usr/lib/pm-utils/sleep.d/000kernel-change hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/000record-status hibernate hibernate:
/usr/lib/pm-utils/sleep.d/000record-status hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/00logging hibernate hibernate:
Linux Workstation 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Module                  Size  Used by
nvidia_uvm           1003520  0
intel_rapl_msr         20480  0
nvidia_drm             53248  0
intel_rapl_common      24576  1 intel_rapl_msr
ipmi_ssif              36864  0
snd_hda_codec_hdmi     61440  1
nvidia_modeset       1212416  2 nvidia_drm
isst_if_common         16384  0
skx_edac               20480  0
nfit                   65536  1 skx_edac
x86_pkg_temp_thermal    20480  0
intel_powerclamp       20480  0
coretemp               20480  0
nvidia              27676672  19 nvidia_uvm,nvidia_modeset
snd_hda_intel          53248  2
snd_intel_dspcfg       24576  1 snd_hda_intel
snd_hda_codec         135168  2 snd_hda_codec_hdmi,snd_hda_intel
snd_hda_core           90112  3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_hwdep              20480  1 snd_hda_codec
snd_pcm               106496  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
binfmt_misc            24576  1
kvm_intel             282624  0
xpad                   40960  0
snd_seq_midi           20480  0
nls_iso8859_1          16384  1
ff_memless             20480  1 xpad
input_leds             16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
kvm                   663552  1 kvm_intel
snd_rawmidi            36864  1 snd_seq_midi
crct10dif_pclmul       16384  1
ghash_clmulni_intel    16384  0
snd_seq                69632  2 snd_seq_midi,snd_seq_midi_event
aesni_intel           372736  0
crypto_simd            16384  1 aesni_intel
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer              36864  2 snd_seq,snd_pcm
cryptd                 24576  2 crypto_simd,ghash_clmulni_intel
glue_helper            16384  1 aesni_intel
drm_kms_helper        184320  1 nvidia_drm
snd                    90112  13 snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_pcm,snd_rawmidi
fb_sys_fops            16384  1 drm_kms_helper
mei_me                 40960  0
syscopyarea            16384  1 drm_kms_helper
rapl                   20480  0
sysfillrect            16384  1 drm_kms_helper
intel_cstate           20480  0
soundcore              16384  1 snd
sysimgblt              16384  1 drm_kms_helper
mei                   106496  1 mei_me
ioatdma                53248  0
ipmi_si                65536  0
ipmi_devintf           20480  0
ipmi_msghandler       106496  3 ipmi_devintf,ipmi_si,ipmi_ssif
acpi_tad               16384  0
joydev                 24576  0
mac_hid                16384  0
sch_fq_codel           20480  9
parport_pc             40960  0
ppdev                  24576  0
lp                     20480  0
drm                   491520  3 drm_kms_helper,nvidia_drm
parport                53248  3 parport_pc,lp,ppdev
ip_tables              32768  0
x_tables               40960  1 ip_tables
autofs4                45056  2
hid_generic            16384  0
usbhid                 57344  0
hid                   131072  2 usbhid,hid_generic
crc32_pclmul           16384  0
igb                   221184  0
nvme                   49152  3
i2c_algo_bit           16384  1 igb
nvme_core             102400  5 nvme
i2c_i801               32768  0
dca                    16384  2 igb,ioatdma
wmi                    32768  0
              total        used        free      shared  buff/cache   available
Mem:       32596948      447360    31018720        2012     1130868    31725260
Swap:      62499836           0    62499836
/usr/lib/pm-utils/sleep.d/00logging hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate:
/usr/lib/pm-utils/sleep.d/00powersave hibernate hibernate: success.

Running hook /etc/pm/sleep.d/10_grub-common hibernate hibernate:
/etc/pm/sleep.d/10_grub-common hibernate hibernate: success.

Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate hibernate hibernate:
/etc/pm/sleep.d/10_unattended-upgrades-hibernate hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/40inputattach hibernate hibernate:
/usr/lib/pm-utils/sleep.d/40inputattach hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/50unload_alx hibernate hibernate:
/usr/lib/pm-utils/sleep.d/50unload_alx hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant hibernate hibernate:
Failed to connect to non-global ctrl_ifname: (nil)  error: No such file or directory
/usr/lib/pm-utils/sleep.d/60_wpa_supplicant hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/75modules hibernate hibernate:
/usr/lib/pm-utils/sleep.d/75modules hibernate hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/90clock hibernate hibernate:
/usr/lib/pm-utils/sleep.d/90clock hibernate hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate:
/usr/lib/pm-utils/sleep.d/94cpufreq hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate:
/usr/lib/pm-utils/sleep.d/95hdparm-apm hibernate hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/95led hibernate hibernate:
/usr/lib/pm-utils/sleep.d/95led hibernate hibernate: not applicable.

Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate:
nVidia binary video drive detected, not using quirks.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler hibernate hibernate: success.

Running hook /usr/lib/pm-utils/sleep.d/99video hibernate hibernate:
/usr/lib/pm-utils/sleep.d/99video hibernate hibernate: success.

Thu 12 Nov 2020 09:58:51 PM PST: performing hibernate

Why is the console font garbled when coming back from hibernate?

I also tried hibernating from X, but that resulted in an unnamed kernelOops.

System details:

$ sudo inxi -F
System:    Host: Workstation Kernel: 5.4.0-53-generic x86_64 bits: 64 Desktop: Gnome 3.36.4 
           Distro: Ubuntu 20.04.1 LTS (Focal Fossa) 
Machine:   Type: Server System: Supermicro product: Super Server v: 0123456789 serial: 0123456789 
           Mobo: Supermicro model: X11SRM-F v: 1.01 serial: ZM18CS007146 UEFI: American Megatrends v: 2.3 
           date: 10/19/2020 
CPU:       Topology: 8-Core model: Intel Xeon W-2140B bits: 64 type: MT MCP L2 cache: 11.0 MiB 
           Speed: 1200 MHz min/max: 1200/4200 MHz Core speeds (MHz): 1: 1200 2: 1200 3: 1200 4: 1200 5: 1201 6: 1201 
           7: 1201 8: 1200 9: 1201 10: 1201 11: 1200 12: 1200 13: 1200 14: 1200 15: 1200 16: 1200 
Graphics:  Device-1: NVIDIA TU117 [GeForce GTX 1650] driver: nvidia v: 455.32.00 
           Display: server: X.Org 1.20.8 driver: nvidia resolution: 2560x1600~60Hz 
           OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 455.32.00 
Audio:     Device-1: NVIDIA driver: snd_hda_intel 
           Sound Server: ALSA v: k5.4.0-53-generic 
Network:   Device-1: Intel I210 Gigabit Network driver: igb 
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: ac:1f:6b:7c:4a:5e 
           Device-2: Intel I210 Gigabit Network driver: igb 
           IF: eno2 state: down mac: ac:1f:6b:7c:4a:5f 
Drives:    Local Storage: total: 931.51 GiB used: 19.77 GiB (2.1%) 
           ID-1: /dev/nvme0n1 vendor: Crucial model: CT1000P1SSD8 size: 931.51 GiB 
Partition: ID-1: / size: 857.03 GiB used: 19.76 GiB (2.3%) fs: ext4 dev: /dev/nvme0n1p3 
           ID-2: swap-1 size: 59.60 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p2 
Sensors:   Message: No ipmi sensors data was found. 
           System Temperatures: lm-sensors cpu: 22.0 C mobo: N/A gpu: nvidia temp: 26 C 
           Fan Speeds (RPM): lm-sensors N/A gpu: nvidia fan: 50% 
Info:      Processes: 292 Uptime: 29m Memory: 31.09 GiB used: 1.61 GiB (5.2%) Shell: bash inxi: 3.0.38 

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP