Couldn't resume from suspend on btrfs

Hello!

I’ve made a new installation of nixos with btrfs subvolumes mounted at respective folders (e.g. root for /, nix for /nix, …).

Everything is working, except I can’t resume from suspend. I can see the login screen, but the disk is unavailable, it seems. Here is what I see when I switch to terminal:

The config is minimal right now, it’s KDE version with almost no additional packages. What could it be?
I don’t use swap partition, btw.

EDIT

After some search I think it’s a hardware related problem since it’s Lenovo laptop with AMD 7840HS.

EDIT2

Fixed by

boot.kernelParams = [ “amd_iommu=off” “iommu=soft” ]

1 Like

This could be something to add to GitHub - NixOS/nixos-hardware: A collection of NixOS modules covering hardware quirks..

1 Like