Slow boot, plasma crashing after login, can't resume from sleep

Soooo, I have been sitting on this issue for a few months now every time trying to solve it and possibly failing. I am slowly figuring out some thing but would love some help. I think it might be because I tried to enable hibernate along side zram in the past and failed. The other culprit might be related to BTRFS snapshots.

I’m inclined to believe think these 3 are related which is why I’m lumping them into one post.

Startup finished in 17.480s (firmware) + 15.281s (loader) + 9.683s (kernel) + 1min 40.214s (userspace) = 2min 22.660s
graphical.target reached after 1min 34.324s in userspace.

So this is my systemd-analyse after disabling rate mirrors on boot and turning it into a weekly task as well as docker because I’d rather enable it when I need it rather then waste 10s each boot.

systemd-analyse blame

7.240s NetworkManager-wait-online.service
1.677s NetworkManager.service
1.386s dev-nvme1n1p4.device
1.334s libvirtd.service
1.057s grub-btrfs-snapper.service
 997ms systemd-tmpfiles-setup-dev-early.service
 924ms systemd-userdbd.service
 490ms ldconfig.service
 402ms proton.VPN.service
 258ms systemd-udev-trigger.service
 252ms home.mount
 226ms dev-zram0.swap
 211ms user@1000.service
 144ms mnt-games1.mount
 141ms containerd.service
 131ms systemd-journald.service
 127ms upower.service
 116ms udisks2.service
 104ms lvm2-monitor.service
  98ms systemd-remount-fs.service
  98ms systemd-journal-flush.service
  87ms plymouth-quit-wait.service
  87ms plymouth-quit.service
  86ms bolt.service
  62ms systemd-udevd.service
  59ms polkit.service
  56ms systemd-modules-load.service
  52ms cups.service
  50ms cachyos-iw-set-regdomain.service
  47ms avahi-daemon.service
  43ms dev-hugepages.mount
  43ms systemd-tmpfiles-setup.service
  42ms dev-mqueue.mount
  42ms sys-kernel-debug.mount
  41ms sys-kernel-tracing.mount
  41ms power-profiles-daemon.service
  40ms sys-kernel-config.mount
  39ms sys-fs-fuse-connections.mount
  39ms systemd-logind.service
  38ms accounts-daemon.service
  38ms systemd-zram-setup@zram0.service
  37ms systemd-sysctl.service
  37ms systemd-tmpfiles-clean.service
  36ms systemd-udev-load-credentials.service
  34ms dbus-broker.service
  34ms plymouth-start.service
  33ms systemd-journal-catalog-update.service
  30ms systemd-resolved.service
  30ms systemd-sysusers.service
  29ms systemd-hostnamed.service
  26ms systemd-fsck@dev-disk-by\x2duuid-3375\x2d3215.service
  26ms dev-disk-by\x2ddiskseq-5\x2dpart5.swap
  25ms wpa_supplicant.service
  24ms systemd-update-done.service
  24ms bluetooth.service
  24ms alsa-restore.service
  23ms boot-efi.mount
  22ms systemd-timesyncd.service
  21ms systemd-update-utmp.service
  20ms systemd-rfkill.service
  19ms user-runtime-dir@1000.service
  19ms user-runtime-dir@1000.service
  18ms systemd-validatefs@home.service
  17ms systemd-vconsole-setup.service
  14ms systemd-tmpfiles-setup-dev.service
  13ms root.mount
  13ms plymouth-read-write.service
  12ms kmod-static-nodes.service
  12ms systemd-journalctl.socket
  11ms srv.mount
  10ms proc-sys-fs-binfmt_misc.mount
  10ms systemd-machined.service
   9ms systemd-random-seed.service
   9ms rtkit-daemon.service
   6ms var-cache.mount
   5ms systemd-userdb-load-credentials.service
   5ms var-log.mount
   5ms systemd-user-sessions.service
   5ms var-tmp.mount
   4ms systemd-binfmt.service
   3ms tmp.mount
 648us polkit-agent-helper.socket
 554us sshd-unix-local.socket
 447us systemd-coredump.socket
 363us systemd-mute-console.socket
 356us systemd-ask-password.socket
 350us systemd-factory-reset.socket
 314us systemd-bootctl.socket
 278us systemd-sysext.socket
 267us systemd-repart.socket
 264us systemd-creds.socket
 231us gpg-agent-ssh@etc-pacman.d-gnupg.socket
 100us dirmngr@etc-pacman.d-gnupg.socket
  47us gpg-agent@etc-pacman.d-gnupg.socket
  38us avahi-daemon.socket
  36us keyboxd@etc-pacman.d-gnupg.socket
  33us systemd-userdbd.socket
  33us gpg-agent-browser@etc-pacman.d-gnupg.socket
  32us gpg-agent-extra@etc-pacman.d-gnupg.socket
  30us systemd-importd.socket
  27us systemd-resolved-monitor.socket
  27us systemd-machined.socket
  27us systemd-journald-dev-log.socket
  25us systemd-journald.socket
  20us lvm2-lvmpolld.socket
  20us dm-event.socket
  19us cups.socket
  18us dbus.socket
  18us libvirtd.socket
  17us systemd-hostnamed.socket
  17us systemd-udevd-varlink.socket
  15us systemd-udevd-control.socket
  14us systemd-logind-varlink.socket
  14us systemd-resolved-varlink.socket
  12us virtlogd.socket
  12us libvirtd-admin.socket
  11us libvirtd-ro.socket
  11us virtlockd.socket
  10us virtlogd-admin.socket
  10us virtlockd-admin.socket
   9us systemd-udevd-kernel.socket
   7us systemd-rfkill.socket



Relevant Hardware:

  • AMD Ryzen 9 7900X (24) @ 5.74 GHz
  • NVIDIA GeForce RTX 5070 Ti [Discrete]
  • RAM 64gb of DDR5 (got it before the shortage)
  • Booting off gen 3 nvme ssd atm(will probably reinstall cachy on a different drive if I can’t solve this soon)
  • 2 monitors

Relevant software info:

  • Plasma 6.7(unrelated to the recent update)
  • login manager SSDM (Base theme different background image set via plasma setttings)
  • swap is at 126.19 gb ATM half of it is zram and the other is the swap partition
  • fs is BTRFS

Description of the issues:

  • Boot time is loooonnnngggg, gets mostly stuck in userspace
  • my DE crashes back to SSDM about 70% of the time then takes a long time to reload there is a very small chance it would happen more then once but usually it just works fine after that.
  • When trying to resume from sleep the whole system freezes and won’t work until it’s rebooted. A hibernate action does show up in the menu but couldn’t ever resume(in the past it just meant that the pc would just do a fresh boot.

Would appreciate any help. :folded_hands:t3::green_heart: