20 lines
593 B
Nix
20 lines
593 B
Nix
{
|
|
# Fix black screen after resuming from suspend
|
|
# Source: https://discourse.nixos.org/t/black-screen-when-resuming-from-suspend/10299
|
|
#
|
|
# Issue: https://gitlab.freedesktop.org/drm/amd/-/issues/2223
|
|
# Fixed in 6.1-rc4
|
|
specialisation."amdgpu-patch-2223" = {
|
|
inheritParentConfig = true;
|
|
configuration = {
|
|
boot.loader.grub.configurationName = "amdgpu-patch-2223";
|
|
#boot.kernelPackages = pkgs.linuxPackages_6_0;
|
|
boot.kernelPatches = [
|
|
{
|
|
name = "amdgpu-patch";
|
|
patch = ./patches/fail_suspend.patch;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|