Freeze after resuming from hibernate

Hi,
currently i am on 6.12.6-arch1-1 with following setup:

inxi -FG

System:
  Host: LOQ Kernel: 6.12.6-arch1-1 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.2.4 Distro: EndeavourOS
Machine:
  Type: Laptop System: LENOVO product: 83DV v: LOQ 15IRX9
    serial: <superuser required>
  Mobo: LENOVO model: LNVNB161216 v: No DPK serial: <superuser required>
    UEFI: LENOVO v: NECN39WW date: 09/06/2024
Battery:
  ID-1: BAT1 charge: 48.8 Wh (78.5%) condition: 62.2/60.0 Wh (103.7%)
CPU:
  Info: 10-core (6-mt/4-st) model: 13th Gen Intel Core i5-13450HX bits: 64
    type: MST AMCP cache: L2: 9.5 MiB
  Speed (MHz): avg: 801 min/max: 800/4600:3400 cores: 1: 801 2: 801 3: 801
    4: 801 5: 801 6: 801 7: 801 8: 801 9: 801 10: 801 11: 801 12: 801 13: 801
    14: 801 15: 801 16: 801
Graphics:
  Device-1: NVIDIA AD107M [GeForce RTX 4060 Max-Q / Mobile] driver: nvidia
    v: 565.77
  Device-2: Luxvisions Innotech Integrated Camera driver: uvcvideo type: USB
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: X: loaded: nvidia unloaded: modesetting
    gpu: nvidia resolution: 1: 2954x1662 2: 1920x1080
  API: EGL v: 1.5 drivers: nvidia
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6.0 vendor: nvidia v: 565.77 renderer: NVIDIA GeForce
    RTX 4060 Laptop GPU/PCIe/SSE2
  API: Vulkan v: 1.4.303 drivers: N/A surfaces: xcb,xlib,wayland
Audio:
  Device-1: Intel Raptor Lake High Definition Audio driver: snd_hda_intel
  Device-2: NVIDIA AD107 High Definition Audio driver: snd_hda_intel
  API: ALSA v: k6.12.6-arch1-1 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    driver: r8169
  IF: enp8s0 state: up speed: 1000 Mbps duplex: full mac: 40:c2:ba:3d:56:1b
  Device-2: Realtek RTL8852BE PCIe 802.11ax Wireless Network
    driver: rtw89_8852be
  IF: wlan0 state: up mac: b8:1e:a4:cd:6e:43
Bluetooth:
  Device-1: Realtek Bluetooth Radio driver: btusb type: USB
  Report: btmgmt ID: hci0 state: up address: B8:1E:A4:CD:6E:44 bt-v: 5.2
Drives:
  Local Storage: total: 1.84 TiB used: 33.26 GiB (1.8%)
  ID-1: /dev/nvme0n1 vendor: solidgm model: SSDPFINW010TZL size: 953.87 GiB
  ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 990 PRO 1TB size: 931.51 GiB
Partition:
  ID-1: / size: 913.57 GiB used: 33.26 GiB (3.6%) fs: btrfs
    dev: /dev/nvme1n1p2
  ID-2: /boot/efi size: 1022 MiB used: 584 KiB (0.1%) fs: vfat
    dev: /dev/nvme1n1p1
  ID-3: /home size: 913.57 GiB used: 33.26 GiB (3.6%) fs: btrfs
    dev: /dev/nvme1n1p2
  ID-4: /var/log size: 913.57 GiB used: 33.26 GiB (3.6%) fs: btrfs
    dev: /dev/nvme1n1p2
Swap:
  ID-1: swap-1 type: partition size: 16.94 GiB used: 0 KiB (0.0%)
    dev: /dev/nvme1n1p3
Sensors:
  System Temperatures: cpu: 34.8 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.4 GiB used: 6.7 GiB (43.5%)
  Processes: 469 Uptime: 5m Shell: fish inxi: 3.3.36

I use hibernation very often and every third or fourth time the system completly freezes after logging in. I am not able to switch tty oder doing anything but hardreset.

Output of sudo journalctl -k -b -0: https://0x0.st/8sXc.txt

Maybe in this log there is some hint of what the problem is.

https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks

See point 10 if running on nVidia.

I will give that a try. I am running nvidia.

systemctl status nvidia-suspend.service 
○ nvidia-suspend.service - NVIDIA system suspend actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-suspend.service; enabled; preset: disabled)
     Active: inactive (dead)

systemctl status nvidia-hibernate.service
○ nvidia-hibernate.service - NVIDIA system hibernate actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-hibernate.service; enabled; preset: disabled)
     Active: inactive (dead)

Dez 27 10:31:08 LOQ systemd[1]: Starting NVIDIA system hibernate actions...
Dez 27 10:31:08 LOQ hibernate[26706]: nvidia-hibernate.service
Dez 27 10:31:08 LOQ logger[26706]: <13>Dec 27 10:31:08 hibernate: nvidia-hibernate.service
Dez 27 10:31:11 LOQ systemd[1]: nvidia-hibernate.service: Deactivated successfully.
Dez 27 10:31:11 LOQ systemd[1]: Finished NVIDIA system hibernate actions.
Dez 27 10:31:11 LOQ systemd[1]: nvidia-hibernate.service: Consumed 1.905s CPU time, 2.4G memory peak.

systemctl status nvidia-resume.service
○ nvidia-resume.service - NVIDIA system resume actions
     Loaded: loaded (/usr/lib/systemd/system/nvidia-resume.service; enabled; preset: disabled)
     Active: inactive (dead)

Dez 27 17:34:23 LOQ systemd[1]: Starting NVIDIA system resume actions...
Dez 27 17:34:23 LOQ suspend[26923]: nvidia-resume.service
Dez 27 17:34:23 LOQ logger[26923]: <13>Dec 27 17:34:23 suspend: nvidia-resume.service
Dez 27 17:34:23 LOQ systemd[1]: nvidia-resume.service: Deactivated successfully.
Dez 27 17:34:23 LOQ systemd[1]: Finished NVIDIA system resume actions.
cat /etc/modprobe.d/nvidia.conf
# Automatically generated by EnvyControl

options nvidia-drm modeset=1
options nvidia NVreg_UsePageAttributeTable=1 NVreg_InitializeSystemMemoryAllocations=0

There is no “NVreg_PreserveVideoMemoryAllocations=1”, i will add that