diff --git a/modules/home-manager/programs/gamemode.ini b/modules/home-manager/programs/gamemode.ini index 4fb8069..de3d6c0 100644 --- a/modules/home-manager/programs/gamemode.ini +++ b/modules/home-manager/programs/gamemode.ini @@ -42,17 +42,17 @@ inhibit_screensaver=0 ; It is also highly recommended you try these settings out first manually to find the sweet spots ; Setting this to the keyphrase "accept-responsibility" will allow gamemode to apply GPU optimisations such as overclocks -apply_gpu_optimisations=accept-responsibility +;apply_gpu_optimisations=accept-responsibility ; The DRM device number on the system (usually 0), ie. the number in /sys/class/drm/card0/ -gpu_device=1 +;gpu_device=1 ; AMD specific settings ; Requires a relatively up to date AMDGPU kernel module ; See: https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html#gpu-power-thermal-controls-and-monitoring ; It is also highly recommended you use lm-sensors (or other available tools) to verify card temperatures ; This corresponds to power_dpm_force_performance_level, "manual" is not supported for now -amd_performance_level=auto +;amd_performance_level=auto [supervisor] ; This section controls the new gamemode functions gamemode_request_start_for and gamemode_request_end_for diff --git a/modules/nixos/packages.nix b/modules/nixos/packages.nix index b4c1ded..4beff17 100644 --- a/modules/nixos/packages.nix +++ b/modules/nixos/packages.nix @@ -26,6 +26,13 @@ programs.gamemode = { enable = true; enableRenice = true; + settings = { + gpu = { + apply_gpu_optimisations = "accept-responsibility"; + gpu_device = 1; + amd_performance_level = "auto"; + }; + }; }; # Enable KDEConnect