mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Hardware/AMD/amdgpu] set card power-level to "auto"
Some cards are forced into "low" mode for some reason.
This commit is contained in:
parent
17cb6c997c
commit
59a4deb6c6
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,10 @@ in {
|
|||
|
||||
aviallon.programs.config.rocmSupport = mkDefault devCfg.enable;
|
||||
|
||||
services.udev.extraRules = mkAfter ''
|
||||
SUBSYSTEM=="pci", DRIVER=="amdgpu", ATTR{power_dpm_force_performance_level}="auto"
|
||||
'';
|
||||
|
||||
services.xserver.videoDrivers =
|
||||
optional cfg.useProprietary "amdgpu-pro"
|
||||
++ [ "modesetting" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue