bugs: add hibernate-mt7921e

This commit is contained in:
陈浩南 2024-06-01 20:01:23 +08:00
parent 6dca3f3acf
commit 9eea7cb2dc
2 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,7 @@ inputs:
slurm = { enable = true; cpu = { cores = 16; threads = 2; }; memoryMB = 90112; gpus."4060" = 1; };
xrdp = { enable = true; hostname = [ "pc.chn.moe" ]; };
};
bugs = [ "xmunet" "backlight" "amdpstate" ];
bugs = [ "xmunet" "backlight" "amdpstate" "hibernate-mt7921e" ];
};
system.nixos.tags = [ "next" ];
networking.extraHosts = "74.211.99.69 mirism.one beta.mirism.one ng01.mirism.one";

View File

@ -38,6 +38,8 @@ inputs:
};
backlight.boot.kernelParams = [ "nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1" ];
amdpstate.boot.kernelParams = [ "amd_pstate=active" ];
hibernate-mt7921e.powerManagement.resumeCommands =
let modprobe = "${inputs.pkgs.kmod}/bin/modprobe"; in "${modprobe} -r -w 3000 mt7921e && ${modprobe} mt7921e";
};
in
{