Sleep and Hibernation failures

I am having intermittent issues with the Sleep and Hibernation under XFCE.

At present, I have my machine set to power of monitors at 10 minutes, and hibernation/sleep after 30 minutes of inactivity. When hibernation comes along, I find my machine sometimes hasnā€™t fallen asleep, or if it has and has been awoken, XFCE starts reporting issues.

I find my networking has completely dropped out, and Systemd NetworkManager need to be restarted manually to restore connections, or XFCE fails to launch programs or apps. And strangely enough, when I want to shutdown the system, I am thrown an error about being unable to launch the logind controls to power off.

At times, I am also notified that a ā€œSleep or Hibernation operation is already in progressā€. Something may have blocked the operation from completion and failed to terminate. And I have to do a hard power cycle to kill the machine.

Recently I have been leaving the machine in the background when playing music with Audacious. (I have seen other report Spotify causing some conflict too, though I am yet to use it). Others is just a silent operation and something breaks. JournalCtl doesnā€™t decode much.

I donā€™t know if this is a Kernel, XFCE or Power Management issue.

EDIT: For the system details.
My initial issue occurred around 15:03 local time.

System:
  Kernel: 5.10.68-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=/dev/mapper/vgsystem-los rw quiet udev.log_priority=3 
  amdgpu.ppfeaturemask=0xffffffff 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.29 info: xfce4-panel wm: xfwm 4.16.1 vt: 7 
  dm: LightDM 1.30.0 Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop Mobo: Micro-Star model: B450I GAMING PLUS AC (MS-7A40) v: 2.0 
  serial: <filter> UEFI: American Megatrends v: A.60 date: 03/06/2019 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 15.64 GiB used: 3.15 GiB (20.1%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: AMD Ryzen 5 2600 bits: 64 type: MT MCP arch: Zen+ 
  family: 17 (23) model-id: 8 stepping: 2 microcode: 800820D cache: L2: 3 MiB 
  bogomips: 81613 
  Speed: 1531 MHz min/max: 1550/3400 MHz boost: enabled Core speeds (MHz): 
  1: 1531 2: 1535 3: 1514 4: 1535 5: 1523 6: 1544 7: 1535 8: 1545 9: 1525 
  10: 1503 11: 1530 12: 1549 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext clflush clflushopt clzero cmov cmp_legacy constant_tsc cpb cpuid 
  cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid f16c flushbyasid 
  fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb irperf lahf_lm lbrv lm mca 
  mce misalignsse mmx mmxext monitor movbe msr mtrr mwaitx nonstop_tsc nopl 
  npt nrip_save nx osvw overflow_recov pae pat pausefilter pclmulqdq pdpe1gb 
  perfctr_core perfctr_llc perfctr_nb pfthreshold pge pni popcnt pse pse36 
  rdrand rdseed rdtscp rep_good sep sev sev_es sha_ni skinit smap smca sme 
  smep ssbd sse sse2 sse4_1 sse4_2 sse4a ssse3 succor svm svm_lock syscall tce 
  topoext tsc tsc_scale v_vmsave_vmload vgif vmcb_clean vme vmmcall wdt 
  xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: 
  disabled, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Hawaii XT / Grenada XT [Radeon R9 290X/390X] 
  vendor: Micro-Star MSI driver: radeon v: kernel alternate: amdgpu 
  bus-ID: 1f:00.0 chip-ID: 1002:67b0 class-ID: 0300 
  Device-2: Logitech HD Pro Webcam C920 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 3-3.3.3:11 chip-ID: 046d:082d 
  class-ID: 0102 serial: <filter> 
  Display: x11 server: X.Org 1.20.13 compositor: xfwm4 v: 4.16.1 driver: 
  loaded: ati,radeon unloaded: modesetting alternate: fbdev,vesa 
  display-ID: :0.0 screens: 1 
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.7x15.0") 
  s-diag: 777mm (30.6") 
  Monitor-1: DVI-1 res: 2560x1440 hz: 60 dpi: 109 size: 597x336mm (23.5x13.2") 
  diag: 685mm (27") 
  OpenGL: renderer: AMD HAWAII (DRM 2.50.0 5.10.68-1-MANJARO LLVM 12.0.1) 
  v: 4.5 Mesa 21.2.2 direct render: Yes 
Audio:
  Device-1: AMD Hawaii HDMI Audio [Radeon R9 290/290X / 390/390X] 
  vendor: Micro-Star MSI driver: snd_hda_intel v: kernel bus-ID: 1f:00.1 
  chip-ID: 1002:aac8 class-ID: 0403 
  Device-2: AMD Family 17h HD Audio vendor: Micro-Star MSI 
  driver: snd_hda_intel v: kernel bus-ID: 21:00.3 chip-ID: 1022:1457 
  class-ID: 0403 
  Device-3: Logitech G430 Surround Sound Gaming Headset type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-3.2.3:8 
  chip-ID: 046d:0a4d class-ID: 0300 
  Device-4: Logitech HD Pro Webcam C920 type: USB 
  driver: snd-usb-audio,uvcvideo bus-ID: 3-3.3.3:11 chip-ID: 046d:082d 
  class-ID: 0102 serial: <filter> 
  Device-5: RODE Microphones RODE NT-USB type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-3.4:5 chip-ID: 19f7:0003 
  class-ID: 0300 
  Sound Server-1: ALSA v: k5.10.68-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Micro-Star MSI driver: r8169 v: kernel port: f000 bus-ID: 1b:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp27s0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  Device-2: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi 
  v: kernel port: f000 bus-ID: 1c:00.0 chip-ID: 8086:24fb class-ID: 0280 
  IF: wlp28s0 state: down mac: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8 
  bus-ID: 1-8:2 chip-ID: 8087:0aa7 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running 
  rfk-block: hardware: no software: yes address: see --recommends 
Logical:
  Message: Unable to run lvs. Root privileges required. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 465.76 GiB used: 80.28 GiB (17.2%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital 
  model: WDS500G1B0C-00S6U0 size: 465.76 GiB block-size: physical: 512 B 
  logical: 512 B speed: 15.8 Gb/s lanes: 2 type: SSD serial: <filter> 
  rev: 201000WD temp: 36.9 C scheme: GPT 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 160 GiB size: 156.49 GiB (97.81%) used: 12.69 GiB (8.1%) 
  fs: ext4 dev: /dev/dm-0 maj-min: 254:0 mapped: vgsystem-los label: N/A 
  uuid: N/A 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 368 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A 
  uuid: 6FD0-B30F 
  ID-3: /home raw-size: 288.25 GiB size: 282.73 GiB (98.08%) 
  used: 67.59 GiB (23.9%) fs: ext4 dev: /dev/dm-1 maj-min: 254:1 
  mapped: vgsystem-lhome label: N/A uuid: N/A 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 17.21 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A 
  uuid: b7b62e3d-a332-4878-b2bf-525fcea2b10d 
Unmounted:
  Message: No unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 10 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-8:2 info: Intel Wireless-AC 3168 Bluetooth type: Bluetooth 
  driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA 
  chip-ID: 8087:0aa7 class-ID: e001 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-3: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-4: 3-3:2 info: Realtek RTS5411 Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  chip-ID: 0bda:5411 class-ID: 0900 
  Device-1: 3-3.1:3 info: Logitech G502 Mouse type: Mouse,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  power: 300mA chip-ID: 046d:c07d class-ID: 0300 serial: <filter> 
  Hub-5: 3-3.2:4 info: Genesys Logic Logitech G110 Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s power: 100mA chip-ID: 05e3:0607 class-ID: 0900 
  Device-1: 3-3.2.1:6 info: Logitech G19 Gaming Keyboard type: Keyboard,HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 1.5 Mb/s 
  power: 100mA chip-ID: 046d:c228 class-ID: 0300 
  Device-2: 3-3.2.2:7 info: Logitech G19 Gaming Keyboard Macro Interface 
  type: HID driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 480 Mb/s 
  chip-ID: 046d:c229 class-ID: 0300 
  Device-3: 3-3.2.3:8 info: Logitech G430 Surround Sound Gaming Headset 
  type: Audio,HID driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 
  rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 046d:0a4d class-ID: 0300 
  Hub-6: 3-3.3:9 info: Microchip (formerly SMSC) USB 2.0 Hub ports: 3 rev: 2.0 
  speed: 480 Mb/s power: 2mA chip-ID: 0424:2514 class-ID: 0900 
  Hub-7: 3-3.3.1:10 info: Microchip (formerly SMSC) USB 2.0 Hub ports: 3 
  rev: 2.0 speed: 480 Mb/s power: 2mA chip-ID: 0424:2640 class-ID: 0900 
  Device-1: 3-3.3.1.1:12 
  info: Microchip (formerly SMSC) Ultra Fast Media Reader type: Mass Storage 
  driver: usb-storage interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 96mA 
  chip-ID: 0424:4063 class-ID: 0806 serial: <filter> 
  Device-2: 3-3.3.3:11 info: Logitech HD Pro Webcam C920 type: Video,Audio 
  driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s 
  power: 500mA chip-ID: 046d:082d class-ID: 0102 serial: <filter> 
  Device-3: 3-3.4:5 info: RODE Microphones RODE NT-USB type: Audio,HID 
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 1.1 
  speed: 12 Mb/s power: 100mA chip-ID: 19f7:0003 class-ID: 0300 
  Hub-8: 4-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-9: 4-3:6 info: Realtek Hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 0bda:0411 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 31.5 C mobo: N/A gpu: radeon temp: 30.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 295 Uptime: 17m wakeups: 0 Init: systemd v: 249 tool: systemctl 
  Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1140 lib: 388 
  Shell: Bash v: 5.1.8 running-in: xfce4-terminal inxi: 3.3.06 

journalctl

ep 20 15:03:18 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:18 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:18 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:18 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:18 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:19 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:19 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:19 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:19 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:19 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 20 15:03:32 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 2, error -71
Sep 20 15:03:37 jimmyson-ms7a40 kernel: usb 4-3: device descriptor read/8, error -110
Sep 20 15:03:37 jimmyson-ms7a40 kernel: hub 4-3:1.0: set hub depth failed
Sep 20 15:03:39 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 3, error -71
Sep 20 15:03:39 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 4, error -71
Sep 20 15:03:40 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 5, error -71
Sep 20 15:03:42 jimmyson-ms7a40 kernel: usb usb4-port3: Cannot enable. Maybe the USB cable is bad?
Sep 20 15:03:46 jimmyson-ms7a40 lightdm[957]: gkr-pam: unable to locate daemon control file
Sep 20 15:18:28 jimmyson-ms7a40 kernel: hub 4-3:1.0: config failed, can't read hub descriptor (err -22)
Sep 20 15:18:28 jimmyson-ms7a40 kernel: usb 4-3: Failed to suspend device, error -19
Sep 20 15:18:36 jimmyson-ms7a40 lightdm[3907]: gkr-pam: unable to locate daemon control file
Sep 20 15:18:42 jimmyson-ms7a40 kernel: usb 3-3.4: cannot submit urb (err = -19)
Sep 20 15:18:42 jimmyson-ms7a40 kernel: usb 3-3.4: cannot submit urb 0, error -19: no device
Sep 20 15:18:42 jimmyson-ms7a40 kernel: usb 3-3.3.3: cannot submit urb (err = -19)
Sep 20 15:18:42 jimmyson-ms7a40 kernel: usb 3-3.3.3: cannot submit urb 0, error -19: no device
Sep 20 15:18:42 jimmyson-ms7a40 kernel: usb 3-3.4: cannot submit urb (err = -19)
Sep 20 15:18:42 jimmyson-ms7a40 kernel: usb 3-3.4: cannot submit urb 0, error -19: no device
Sep 20 15:48:50 jimmyson-ms7a40 kernel: usb usb4-port3: Cannot enable. Maybe the USB cable is bad?
Sep 20 15:49:04 jimmyson-ms7a40 lightdm[5233]: gkr-pam: unable to locate daemon control file
Sep 20 16:22:13 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 9, error -71
Sep 20 16:22:14 jimmyson-ms7a40 kernel: usb 4-3: Failed to suspend device, error -19
Sep 20 16:22:15 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 10, error -71
Sep 20 16:22:15 jimmyson-ms7a40 kernel: usb 4-3: device descriptor read/8, error -71
Sep 20 16:22:15 jimmyson-ms7a40 kernel: hub 4-3:1.0: set hub depth failed
Sep 20 16:22:16 jimmyson-ms7a40 kernel: usb 4-3: can't set config #1, error -71
Sep 20 16:22:22 jimmyson-ms7a40 kernel: usb 4-3: device descriptor read/all, error -110
Sep 20 16:22:23 jimmyson-ms7a40 kernel: usb 4-3: device descriptor read/8, error -71
Sep 20 16:22:24 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 12, error -71
Sep 20 16:22:24 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 13, error -71
Sep 20 16:22:26 jimmyson-ms7a40 lightdm[7076]: gkr-pam: unable to locate daemon control file
Sep 20 17:27:28 jimmyson-ms7a40 kernel: usb 4-3: device descriptor read/8, error -71
Sep 20 17:27:29 jimmyson-ms7a40 kernel: usb usb4-port3: Cannot enable. Maybe the USB cable is bad?
Sep 20 17:52:36 jimmyson-ms7a40 lightdm[10086]: gkr-pam: unable to locate daemon control file
1 Like

Welcome to the forum!

Never do that unless there really is no other way ā”€ read: if the kernel has died. Always attempt a safe reboot by way of the Magic SysRq keys first.

The way this works is as followsā€¦ Press and hold the Alt and PrtSc/SysRq keys together, and while holding them, enter the following sequence of keys, separated by a number of seconds, but no longer than 10 seconds between each key press, and using the drive activity LED on your computer as an indicator that the kernel is executing the commandā€¦:

R ā”€ set keyboard into translate mode (the characters go straight to the kernel)
S ā”€ emergency sync (flush all buffers)
E ā”€ cleanly terminate all processes except for PID 1 (i.e. systemd)
I ā”€ forcefully kill all remaining processes
S ā”€ emergency sync again
U ā”€ emergency remount of all filesystems in read-only mode
B ā”€ hard-reboot (resetting the processor)

You can use either one of two mnemonics for memorizing the sequenceā€¦:

  • Raising Skinny Elephants Is So Utterly Boring

  • The word ā€œbusierā€ spelled backwards.

Iā€™m afraid I canā€™t offer you any help with the hibernation problem ā”€ I never hibernate my computer anyway ā”€ other than that I would advise you to try a different kernel. I personally always prefer a long-term-support (LTS) kernel. But that said, I did want to give you that heads-up about the safe rebooting issue. :wink:

2 Likes

@Aragorn

REISUB needs to be activated in Manjaro as per this tutorial:

@Jimmyson

:+1: Welcome to Manjaro! :+1:

  1. Please read this:
    How to provide good information
    and press the three dots ā€¦ below your post and press the :pencil2: to give us more information so we can see whatā€™s really going on.
    Now we know the symptom of the disease, but we need some more probing to know where the origin liesā€¦ :grin:
  2. An inxi --admin --verbosity=7 --filter --no-host --width would be the minimum required information for us to be able to help you. (Personally Identifiable Information like serial numbers and MAC addresses will be filtered out by the above command)
    Also, please copy-paste that output in-between 3 backticks ``` at the beginning and end of the code/text.
  3. Do the following:
    • Note the exact time up to the second

    • go to a terminal and execute:

      systemctl suspend
      
    • REISUB

    • provide the output to:

      journalctl --system --priority=3 --since "YYYY-MM-DD HH:MM:SS"
      

      where obviously "YYYY-MM-DD HH:MM:SS" is the date/time noted earlier

:+1:

P.S. If you want to notify me that you did provide this information, please :heart: this message and Iā€™ll come back and have another look.
P.P.S. If you enter a bit more details in your profile, we can also see which Desktop Environment youā€™re using, which exact CPU/GPU or Kernel, ā€¦ you have without typing it every time.

2 Likes

Hello,
When I had similar problems, they were related to the size of the disk swap or it was incorrectly configured. In summary, my swap size is 1.5 times the memory size.

1 Like

Thatā€™s part of the inxi --admin --verbosity=7 --filter --no-host --width output and why Iā€™ve asked for it:

Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 75 (default 100) 
  ID-1: swap-1 type: partition size: 20 GiB used: 2 MiB (0.0%) priority: -2 
  dev: /dev/sda7 maj-min: 8:7 label: N/A 
  uuid: 18360b04-a96d-4a99-8323-b07717f36a30 

:wink:

Hey, just following up that I have updated my post with some system information and logging. Hope this information helps identify something.

please read this

If that didnā€™t solve the problem execute #3 above again and provide new output.

:bowing_man:

After doing some funky trickery with LVM, I managed to up my swap size to 20GB, as per the linked article.

Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 18.62 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p3 maj-min: 259:3 label: N/A 
  uuid: b7b62e3d-a332-4878-b2bf-525fcea2b10d 

I experienced the issue prior to this change. Will update if happens again.

1 Like

The issue was repeated today. After increasing the swap partition, and leaving the machine for 30 minutes. The system failed to sleep, and upon return, I had found the network was disconnected, and manually telling the computer to perform a sleep or hibernate yielded no results.

Following a repeat of the #3 step, I was immediately prompted with an issue suspending SystemCtl. I took the liberty of fetching the journalctl tooā€¦

 jimmyson ī‚° ~ ī‚° systemctl suspend
Failed to suspend system via logind: There's already a shutdown or sleep operation in progress
 jimmyson ī‚° ~ ī‚° journalctl --system --priority=3 --since "2021-09-30 18:00:00"                                                                                                                                                                            ī‚² 1 
-- Journal begins at Sat 2021-08-28 13:04:17 AEST, ends at Thu 2021-09-30 19:22:08 AEST. --
Sep 30 18:29:58 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:29:58 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:29:58 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:29:59 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:29:59 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:29:59 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 2, error -71
Sep 30 18:29:59 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:29:59 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:29:59 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:29:59 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:29:59 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 3, error -71
Sep 30 18:30:00 jimmyson-ms7a40 kernel: kvm: disabled by bios
Sep 30 18:30:00 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 4, error -71
Sep 30 18:30:01 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 5, error -71
Sep 30 18:30:01 jimmyson-ms7a40 kernel: usb usb4-port3: unable to enumerate USB device
Sep 30 18:30:36 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 6, error -71
Sep 30 18:30:37 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 7, error -71
Sep 30 18:30:38 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 7, error -71
Sep 30 18:30:39 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 7, error -71
Sep 30 18:30:40 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 7, error -71
Sep 30 18:30:40 jimmyson-ms7a40 kernel: hub 4-3:1.0: set hub depth failed
Sep 30 18:30:41 jimmyson-ms7a40 kernel: usb 4-3: device not accepting address 8, error -71
Sep 30 18:30:47 jimmyson-ms7a40 kernel: hub 4-3:1.0: config failed, can't read hub descriptor (err -22)
Sep 30 18:30:47 jimmyson-ms7a40 kernel: usb 4-3: Failed to suspend device, error -19
Sep 30 18:30:47 jimmyson-ms7a40 lightdm[902]: gkr-pam: unable to locate daemon control file
Sep 30 19:20:10 jimmyson-ms7a40 lightdm[2781]: gkr-pam: unable to locate daemon control file

Network dropping out is also a symptom of this problem. It can be restored by restarting the NetworkManager service, but I feel thatā€™s just a band-aid solution, rather than a fix to addressing the hibernation problem.

New procedure:
Execute the following steps as quickly as you can:

  • reboot

  • Login

  • Open a terminal

  • Note the exact time up to the second

  • Execute:

    systemctl suspend
    
  • REISUB if system hung

  • provide the output to:

    journalctl --system --priority=3 --since "YYYY-MM-DD HH:MM:SS"
    

where obviously "YYYY-MM-DD HH:MM:SS" is the date/time noted earlier

as we donā€™t have the information of the hanging suspendā€¦

:sob:

Sorry if I havenā€™t followed up with anything yet.
Been having small teething issues.

Because I canā€™t get proper information around Hibernation, I have considered switching to ā€œsleepā€ mode for my machine when unused for 15 minutes. I am finding now that when the system wakes up, the entire OS either fails to resume the Window Manager, or fails to initiate any TTY sessions to help regain control. Even REISUB fails to trigger.

I had tried to fetch the Journal output, but scrolling too far back caused terminal to crash. I couldnā€™t even get the OS to shutdown the kernel.

Manually triggering systemctl suspend puts my PC to sleep as expected, and I need to press the power button to wake it up, rather than using any mouse/keyboard interactions.

I am starting to get worn out by this issue, and I feel I am not doing something correctly. Either XFCE is breaking the Power Management, or my BIOS needs updating so the Kernel can properly interact with the system, or there is something else in this puzzle.

:tired_face:

journalctl --system --priority=3 --since "YYYY-MM-DD HH:MM:SS" > /var/tmp/JimmysJournal.txt

then open /var/tmp/JimmysJournal.txt in an editor and copy-paste it hereā€¦

I just noticed something:

  1. please add as a grub parameter resume=UUID= with the UUID of your swap partition.
  2. ensure /etc/mkinitcpio.conf contains the resume hook

If you donā€™t know how to do that, please shout out!

:crossed_fingers:

Iā€™ve now added the resume=UUID= parameter to the default config file ready to update.
Seems the /etc/mkinitcpio.conf file IS missing the resume hook.

HOOKS="base udev autodetect modconf block keyboard keymap lvm2 filesystems"

Iā€™m guessing it should be a matter of adding in the hook with a text editor and initiating mkinitcpio from terminal once done, as per this Wiki doc.
https://wiki.archlinux.org/title/Mkinitcpio

NOTE: I also have a pacnew variant sitting in the directory tooā€¦

[jimmyson@jimmyson-ms7a40 ~]$ sudo nano /etc/mk
mke2fs.conf             mkinitcpio.conf         mkinitcpio.conf.pacnew  mkinitcpio.d/   
1 Like

compare both .pacnew and mkinitcpio.conf and provide the differences, please?

(just to be sure)

Also, ensure resume is anywhere in the HOOKS= line regardless of the comparison.

:crossed_fingers:

Just to make sure, you added your actual UUID of the swap partition to this?
It should look like resume=UUID=38dkei..... (of course with your UUID not the 38ā€¦)

1 Like
diff /etc/mkinitcpio.conf /etc/mkinitcpio.conf.pacnew 
7c7
< MODULES=""
---
> MODULES=()
19c19
< FILES=""
---
> FILES=()
52c52
< HOOKS="base udev autodetect modconf block keyboard keymap lvm2 filesystems"
---
> HOOKS=(base udev autodetect modconf block filesystems keyboard fsck)
62a63
> #COMPRESSION="zstd"

Of course :yum:

Add:

too to the hooks.

then execute:

 sudo mkinitcpio --preset linux510
 sudo update-grub
 sync; sync; sync
 sudo reboot

and try again!

:hourglass_flowing_sand:

ā€¦ but then the ā€œresumeā€ keyword still isnā€™t present

@Jimmyson
the .pacnew file has a different syntax now - the difference is in things like:

FILES=()

vs

FILES=""

ā€¦ keep all your HOOKS and add ā€œresumeā€ at the end

1 Like

Jimmmy already did that here:

:wink:

Ok, I have updated the mkinitcpio, grub config and executed the code as highlighted.
I performed a dry run of Hibernation and things look OK for now. I would need to let the system idle for about 15 minutes to trigger a Hibernation to see how it responses and wakes.

In the mean time, I am also checking the Sleep/Suspend processes too, as I mention I also had issues there a couple of posts back. Seems I am still having issues when waking it up, and no journal logs exist during the sleep and wake processes.

My order of operation was the following

  • 23:41PM Initiate Sleep from logind panel, and system falls asleep.
  • 23:44PM Wake by keyboard entry/mouse movement. Nothing response. Press power button instead.
  • 23:45PM System running yet no video output. Switching TTY not responding.
  • 23:47PM REISUB to regain control. Nothing is waking. Switching TTY still not responding
  • 23:48PM Hard shutdown. And reboot
  • 23:48PM Back into system.

Below is the log that was reported from Journalctl. Clearly no logs would be present due to a hard shutdown, but there is also no logs of the sleep action too.

journalctl --system --priority=3 --since "2021-10-07 23:35:00"
-- Journal begins at Sat 2021-10-02 16:22:10 AEST, ends at Thu 2021-10-07 23:58:08 AEDT. --
Oct 07 23:36:34 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:34 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:35 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:35 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:35 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:35 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:35 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:35 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:35 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:36 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:36:47 jimmyson-ms7a40 lightdm[1126]: gkr-pam: unable to locate daemon control file
-- Boot 23df679956db4250a2c39e77929b42b9 --
Oct 07 23:48:31 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:31 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:31 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:32 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:32 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:32 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:32 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:32 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:32 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:33 jimmyson-ms7a40 kernel: kvm: disabled by bios
Oct 07 23:48:39 jimmyson-ms7a40 lightdm[1138]: gkr-pam: unable to locate daemon control file