diff options
| author | Grisha Shipunov | 2025-01-05 23:42:40 +0100 |
|---|---|---|
| committer | Grisha Shipunov | 2025-01-05 23:43:42 +0100 |
| commit | ee3c877d5bc320dbffe02547ccbac7a7f7f1cd8a (patch) | |
| tree | b9aa923e7a0339a35f4815a4c401d01ce535118d | |
| parent | 5b8fa1a5e8f95e2a442dd8b78d31600037e907f6 (diff) | |
amdgpu: never buy amd laptop ever again
| -rw-r--r-- | hosts/toaster/amd-new-pstate.nix | 5 | ||||
| -rw-r--r-- | hosts/toaster/amd.nix | 7 | ||||
| -rw-r--r-- | hosts/toaster/default.nix | 1 |
3 files changed, 7 insertions, 6 deletions
diff --git a/hosts/toaster/amd-new-pstate.nix b/hosts/toaster/amd-new-pstate.nix deleted file mode 100644 index 179cce3..0000000 --- a/hosts/toaster/amd-new-pstate.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ ... }: -{ - # use new amd pstate driver - boot.kernelParams = [ "amd_pstate=active" ]; -} diff --git a/hosts/toaster/amd.nix b/hosts/toaster/amd.nix index 667fda1..54872a0 100644 --- a/hosts/toaster/amd.nix +++ b/hosts/toaster/amd.nix @@ -1,6 +1,13 @@ { pkgs, config, ... }: { boot.initrd.kernelModules = [ "amdgpu" ]; + boot.kernelParams = [ + # use new amd pstate driver + "amd_pstate=active" + # try to fix weird flickering + "amdgpu.sg_display=0" + ]; + # hardware.graphics = { # extraPackages = with pkgs; [ # rocm-opencl-icd diff --git a/hosts/toaster/default.nix b/hosts/toaster/default.nix index f9839e4..860b582 100644 --- a/hosts/toaster/default.nix +++ b/hosts/toaster/default.nix @@ -1,7 +1,6 @@ { pkgs, ... }: { imports = [ ./amd.nix - ./amd-new-pstate.nix ./hardware-configuration.nix # ./irc.nix ./network |
