Hibernation fails to resume work

Hello guys, Im creating this topic because after trying so many things on the forum, nothing appears to fix this issue. So essentially i hibernate the pc (which takes quite a while also, find it weird because it takes longer than a full shutdown or reboot and EndOS is on an m.2), after it completely shuts down i boot it again, it displays the MB logo, grub and login screen, once i login it starts as if i had rebooted or shut the pc (i have session restore so it restores almost all windows). Additionally, this is a pretty new EndOS Plasma system, which was installed with swap with hibernate partition.

I have already tried multiple things, here are some of these topics

Here is inxi -Fxx --za if its useful

System:
  Kernel: 6.17.8-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 15.2.1
  Desktop: KDE Plasma v: 6.5.2 tk: Qt v: N/A wm: kwin_x11 dm: SDDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: B450-A PRO (MS-7B86) v: 2.0
    serial: <superuser required> UEFI: American Megatrends LLC. v: A.I1
    date: 05/17/2023
CPU:
  Info: 8-core model: AMD Ryzen 7 5700X bits: 64 type: MT MCP arch: Zen 3+
    rev: 2 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
  Speed (MHz): avg: 3599 min/max: 562/4666 boost: enabled cores: 1: 3599
    2: 3599 3: 3599 4: 3599 5: 3599 6: 3599 7: 3599 8: 3599 9: 3599 10: 3599
    11: 3599 12: 3599 13: 3599 14: 3599 15: 3599 16: 3599 bogomips: 108804
  Flags-basic: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a
    ssse3 svm
Graphics:
  Device-1: NVIDIA GA106 [GeForce RTX 3060 Lite Hash Rate]
    vendor: Micro-Star MSI driver: nvidia v: 580.105.08 arch: Ampere pcie:
    speed: 5 GT/s lanes: 16 ports: active: none off: HDMI-A-1
    empty: DP-1,DP-2,DP-3 bus-ID: 26:00.0 chip-ID: 10de:2504
  Display: x11 server: X.Org v: 21.1.20 with: Xwayland v: 24.1.9
    compositor: kwin_x11 driver: X: loaded: nvidia unloaded: modesetting
    alternate: fbdev,nouveau,nv,vesa gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 81
  Monitor-1: HDMI-A-1 mapped: HDMI-0 note: disabled model: AOC 27G2G4
    res: 1920x1080 hz: 60 dpi: 82 diag: 686mm (27")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 580.105.08
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
  API: Vulkan v: 1.4.328 surfaces: N/A device: 0 type: discrete-gpu
    driver: nvidia device-ID: 10de:2504
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-smi wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
Audio:
  Device-1: NVIDIA GA106 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16
    bus-ID: 26:00.1 chip-ID: 10de:228e
  Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio
    vendor: Micro-Star MSI driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
    lanes: 16 bus-ID: 28:00.4 chip-ID: 1022:1487
  API: ALSA v: k6.17.8-arch1-1 status: kernel-api
  Server-1: PipeWire v: 1.4.9 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Micro-Star MSI driver: r8169 v: kernel pcie: speed: 2.5 GT/s
    lanes: 1 port: f000 bus-ID: 22:00.0 chip-ID: 10ec:8168
  IF: enp34s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 3.66 TiB used: 272.13 GiB (7.3%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL81T0HFLB-00BH1
    size: 953.87 GiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 44.9 C
  ID-2: /dev/sda vendor: Western Digital model: WD10EVDS-63U8B1
    size: 931.51 GiB speed: 3.0 Gb/s serial: <filter>
  ID-3: /dev/sdb vendor: Western Digital model: WD10EZEX-08M2NA0
    size: 931.51 GiB speed: 6.0 Gb/s serial: <filter>
  ID-4: /dev/sdc vendor: Western Digital model: WD Blue SA510 2.5 1000GB
    size: 931.51 GiB speed: 6.0 Gb/s serial: <filter>
Partition:
  ID-1: / size: 902 GiB used: 54.96 GiB (6.1%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 2 GiB used: 328 KiB (0.0%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  ID-1: swap-1 type: partition size: 34.39 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3
Sensors:
  System Temperatures: cpu: 48.1 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 32 GiB available: 31.26 GiB used: 8.54 GiB (27.3%)
  Processes: 422 Power: uptime: 24m wakeups: 0 Init: systemd v: 258
    default: graphical
  Packages: 1204 pm: pacman pkgs: 1194 pm: flatpak pkgs: 10 Compilers:
    gcc: 15.2.1 Shell: Bash v: 5.3.3 running-in: konsole inxi: 3.3.39

[OT]
That is why I have given up on hibernation (suspend to disk).
I prefer suspension (suspend to RAM) or outright shutdown nowadays.

Thats most likely my last option, but i wanted to check if im able to fix before because even though session restore works fine, it doesnt restores everything and the browser is always complaining about not closing it properly

So as a surprise to absolutely nobody, apparently the issue was pretty much nvidia-related. After creating this post for some reason sleep started to fail also, the same way as hibernate, but anyway, what appeared to fix this issue was disabling both hibernate and suspend nvidia services with these commands

sudo systemctl mask nvidia-hibernate.service
sudo systemctl mask nvidia-suspend.service

Once disabled, I tried both hibernate and sleep using systemctl and with kde buttons, and everything worked completely fine. So if you have nvidia and everything related to the swap partition is set fine, try this.

Running journalctl -b -1 | grep -i hibernate also helped to identify that everything was working properly except nvidia…