fix(gamemode): properly configure gpu settings

This commit is contained in:
Alexandre Cavalheiro 2024-11-30 13:36:52 -03:00
parent 43f6b7b491
commit c770d8e038
Signed by: wizardlink
GPG key ID: A5767B54367CFBDF
2 changed files with 10 additions and 3 deletions

View file

@ -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

View file

@ -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