fix(koumakyou): set max-performance on disconnect

This commit is contained in:
514fpv 2024-06-13 08:56:50 +08:00
parent ab7e7606f0
commit 2751536816
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw

View file

@ -5,7 +5,7 @@
jovian = { jovian = {
hardware.has.amd.gpu = true; hardware.has.amd.gpu = true;
steamos.useSteamOSConfig = true; steamos.useSteamOSConfig = true;
#steamos.enableDefaultCmdlineConfig = false; steamos.enableDefaultCmdlineConfig = false;
steam = { steam = {
enable = true; enable = true;
@ -61,6 +61,13 @@
stateDir = "/nix/persist/decky"; stateDir = "/nix/persist/decky";
}; };
boot.kernelParams = [ "iomem=relaxed" "amd_pstate=passive" ]; boot.kernelParams = [
"iomem=relaxed"
"amd_pstate=passive"
];
services.udev.extraRules = ''
SUBSYSTEM=="power_supply", ATTR{online}=="0", RUN+="${pkgs.ryzenadj}/bin/ryzenadj --max-performance"
'';
}; };
} }