From 79194e41380df3f811f63cac1e02da011aa3c993 Mon Sep 17 00:00:00 2001 From: Myned Date: Fri, 25 Oct 2024 13:39:16 -0500 Subject: [PATCH] linux: fix amdgpu manual power profile with kernel 6.11 Signed-off-by: Myned --- machines/mynix/default.nix | 3 ++- options/custom/settings/boot.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/machines/mynix/default.nix b/machines/mynix/default.nix index 04509fb..9e8e135 100644 --- a/machines/mynix/default.nix +++ b/machines/mynix/default.nix @@ -63,6 +63,7 @@ "z /mnt/gaymer 0755 myned users" ]; + # BUG: "manual" profile is the same as "auto" with kernel 6.10 # TODO: Remove when Linux 6.12 is released # https://gitlab.freedesktop.org/agd5f/linux/-/commit/ec1aab7816b06c32f42935e34ce3a3040c778afb # Work around performance issues with AMD power scaling @@ -73,7 +74,7 @@ #?? ls -l /dev/dri/by-path/*-card #?? grep '*' /sys/class/drm/card*/device/pp_power_profile_mode services.udev.extraRules = '' - SUBSYSTEM=="drm", KERNEL=="renderD128", DRIVERS=="amdgpu", ATTR{device/power_dpm_force_performance_level}="manual", ATTR{device/pp_power_profile_mode}="1" + SUBSYSTEM=="drm", KERNEL=="card1", DRIVERS=="amdgpu", ATTR{device/power_dpm_force_performance_level}="manual", ATTR{device/pp_power_profile_mode}="1" ''; # https://github.com/Zygo/bees diff --git a/options/custom/settings/boot.nix b/options/custom/settings/boot.nix index 72ec2f6..66060e7 100644 --- a/options/custom/settings/boot.nix +++ b/options/custom/settings/boot.nix @@ -16,7 +16,7 @@ in { kernel = mkOption { default = if config.custom.full - then pkgs.linuxPackages_zen + then pkgs.linuxPackages_6_11 else pkgs.linuxPackages; }; systemd-boot = mkOption {default = config.custom.minimal;};