linux: fix amdgpu manual power profile with kernel 6.11
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
27b25b8b3c
commit
79194e4138
2 changed files with 3 additions and 2 deletions
|
@ -63,6 +63,7 @@
|
||||||
"z /mnt/gaymer 0755 myned users"
|
"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
|
# TODO: Remove when Linux 6.12 is released
|
||||||
# https://gitlab.freedesktop.org/agd5f/linux/-/commit/ec1aab7816b06c32f42935e34ce3a3040c778afb
|
# https://gitlab.freedesktop.org/agd5f/linux/-/commit/ec1aab7816b06c32f42935e34ce3a3040c778afb
|
||||||
# Work around performance issues with AMD power scaling
|
# Work around performance issues with AMD power scaling
|
||||||
|
@ -73,7 +74,7 @@
|
||||||
#?? ls -l /dev/dri/by-path/*-card
|
#?? ls -l /dev/dri/by-path/*-card
|
||||||
#?? grep '*' /sys/class/drm/card*/device/pp_power_profile_mode
|
#?? grep '*' /sys/class/drm/card*/device/pp_power_profile_mode
|
||||||
services.udev.extraRules = ''
|
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
|
# https://github.com/Zygo/bees
|
||||||
|
|
|
@ -16,7 +16,7 @@ in {
|
||||||
kernel = mkOption {
|
kernel = mkOption {
|
||||||
default =
|
default =
|
||||||
if config.custom.full
|
if config.custom.full
|
||||||
then pkgs.linuxPackages_zen
|
then pkgs.linuxPackages_6_11
|
||||||
else pkgs.linuxPackages;
|
else pkgs.linuxPackages;
|
||||||
};
|
};
|
||||||
systemd-boot = mkOption {default = config.custom.minimal;};
|
systemd-boot = mkOption {default = config.custom.minimal;};
|
||||||
|
|
Loading…
Reference in a new issue