Hibernation causes hard reboot on waking

Hello, I am having issues with the “Hibernate” functionality. After setting the computer to hibernate, the system performs a hard reboot on start. I remember looking into this issue and it seems to be related to the latest version of nvidia drivers, but I can’t seem to find the thread anymore, so I don’t know what version to downgrade to. Additionally, maybe someone knows how to get the hibernate functionality to work properly again without necessarily locking down my nvidia drivers at a specific older version.

This issue is consistently reproducible, I will provide all the logs that were requested in other related threads. Here’s the list of logs that I will provide further below:

  1. journalctl -b -u systemd-hibernate.service
  2. journalctl -b -t systemd-sleep
  3. journalctl -b | grep hiber
  4. free -h
  5. swapon --show
  6. inxi -F
  7. cat /etc/fstab | grep swap
  8. cat /etc/default/grub | grep resume

Logs:

arseniykd@bark ~ $ journalctl -b -u systemd-hibernate.service
-- No entries --
arseniykd@bark ~ $ journalctl -b -t systemd-sleep
-- No entries --
arseniykd@bark ~ $ journalctl -b | grep hiber
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0x00000000-0x00000fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0x000a0000-0x000fffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0x09d1f000-0x09ffffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0x0a200000-0x0a20dfff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xc3483000-0xc3483fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xc55d7000-0xc5787fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xc703a000-0xc703afff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xca125000-0xca4d8fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xca4d9000-0xca62efff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xca62f000-0xca999fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xca99a000-0xcbb5dfff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xcbb5e000-0xcbbfefff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xcd000000-0xcfffffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xd0000000-0xefffffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xf0000000-0xf7ffffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xf8000000-0xfd1fffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfd200000-0xfd2fffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfd300000-0xfd3fffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfd400000-0xfd5fffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfd600000-0xfe9fffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfea00000-0xfea0ffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfea10000-0xfeb7ffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfeb80000-0xfec01fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfec02000-0xfec0ffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfec10000-0xfec10fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfec11000-0xfecfffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfed00000-0xfed00fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfed01000-0xfed3ffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfed40000-0xfed44fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfed45000-0xfed7ffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfed80000-0xfed8ffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfed90000-0xfedc1fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfedc2000-0xfedcffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfedd0000-0xfedd3fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfedd4000-0xfedd5fff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xfedd6000-0xfeffffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: Registered nosave memory: [mem 0xff000000-0xffffffff]
Sep 17 12:03:58 bark kernel: PM: hibernation: resume from hibernation
Sep 17 12:03:58 bark kernel: PM: hibernation: resume failed (-16)
arseniykd@bark ~ $ free -h
               total        used        free      shared  buff/cache   available
Mem:            15Gi       3.0Gi        11Gi       297Mi       1.4Gi        11Gi
Swap:           17Gi          0B        17Gi
arseniykd@bark ~ $ swapon --show
NAME           TYPE       SIZE USED PRIO
/dev/nvme0n1p3 partition 17.2G   0B   -2
arseniykd@bark ~ $ inxi -F
System:
  Host: bark Kernel: 5.19.9-arch1-1 arch: x86_64 bits: 64 Desktop: KDE Plasma
    v: 5.25.5 Distro: EndeavourOS
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF GAMING X570-PLUS (WI-FI) v: Rev X.0x
    serial: <superuser required> UEFI: American Megatrends v: 4021
    date: 08/10/2021
CPU:
  Info: 12-core model: AMD Ryzen 9 5900X bits: 64 type: MT MCP cache:
    L2: 6 MiB
  Speed (MHz): avg: 2537 min/max: 2200/4950 cores: 1: 3700 2: 2200 3: 2200
    4: 2200 5: 2200 6: 2200 7: 3700 8: 2200 9: 2200 10: 2200 11: 2200 12: 2200
    13: 2200 14: 2200 15: 2200 16: 3700 17: 2200 18: 2800 19: 3700 20: 3700
    21: 2200 22: 2200 23: 2200 24: 2200
Graphics:
  Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate] driver: nvidia
    v: 515.65.01
  Device-2: Logitech C920 PRO HD Webcam type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org v: 21.1.4 driver: X: loaded: nvidia
    unloaded: modesetting gpu: nvidia,nvidia-nvswitch resolution:
    1: 2560x1440~60Hz 2: 1440x2560
  OpenGL: renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2 v: 4.6.0 NVIDIA
    515.65.01
Audio:
  Device-1: NVIDIA GA106 High Definition Audio driver: snd_hda_intel
  Device-2: AMD Starship/Matisse HD Audio driver: snd_hda_intel
  Device-3: FiiO K5 Pro type: USB driver: snd-usb-audio
  Device-4: Logitech C920 PRO HD Webcam type: USB
    driver: snd-usb-audio,uvcvideo
  Device-5: FIFINE K669 Microphone type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Sound Server-1: ALSA v: k5.19.9-arch1-1 running: yes
  Sound Server-2: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Intel Wireless-AC 9260 driver: iwlwifi
  IF: wlan0 state: down mac: 7a:86:c1:04:5a:d5
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: 04:42:1a:e6:1e:fb
Drives:
  Local Storage: total: 2.73 TiB used: 580.95 GiB (20.8%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO Plus 1TB
    size: 931.51 GiB
  ID-2: /dev/sda vendor: Seagate model: ST2000DM008-2UB102 size: 1.82 TiB
Partition:
  ID-1: / size: 898.64 GiB used: 580.95 GiB (64.6%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 299.4 MiB used: 448 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 17.15 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme0n1p3
Sensors:
  System Temperatures: cpu: 47.0 C mobo: N/A gpu: nvidia temp: 50 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 0%
Info:
  Processes: 414 Uptime: 3m Memory: 15.53 GiB used: 3.44 GiB (22.2%)
  Shell: Zsh inxi: 3.3.21
arseniykd@bark ~ $ cat /etc/fstab | grep swap
UUID=956ce507-a168-4b8b-a859-a49a6b3f33e3 swap           swap    defaults,noatime 0 0
arseniykd@bark ~ $ cat /etc/default/grub | grep resume
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=956ce507-a168-4b8b-a859-a49a6b3f33e3 loglevel=3 nowatchdog nvme_load=YES nvidia-drm.modeset=1"

Thanks for the help in advance!

nvidia-suspend, nvidia-resume, nvidia-hibernate and nvidia-persistenced services in use or none of them ?

i see this one only:

I looked at the output of systemctl list-units --all and did not find any reference to hibernate, sleep, or nvidia.

Looking at that thread, it seems as though it’s not really applicable. I am running on desktop (so Optimus does not apply), and the forum post mostly refers to suspend-then-hibernate not working as intended while systemctl hibernate and systemctl suspend working as intended. I probably should have clarified this point: the thread I found a while back was from the Endeavour OS forum.

Welcome to the purple space @arseniykd !!
:rocketa_purple: :enos_flag: :purple_square:

?

Attempted that just now, no luck.

Also, for reference, just tried setting the computer to sleep for the first time ever, and waking from sleep works as intended.