From ee3c877d5bc320dbffe02547ccbac7a7f7f1cd8a Mon Sep 17 00:00:00 2001 From: Grisha Shipunov Date: Sun, 5 Jan 2025 23:42:40 +0100 Subject: [PATCH] amdgpu: never buy amd laptop ever again --- hosts/toaster/amd-new-pstate.nix | 5 ----- hosts/toaster/amd.nix | 7 +++++++ hosts/toaster/default.nix | 1 - 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 hosts/toaster/amd-new-pstate.nix 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