From 18ffb81835dd0524535deb393d4282d45af69e2a Mon Sep 17 00:00:00 2001 From: Yorick Barbanneau Date: Thu, 28 Sep 2023 12:13:15 +0200 Subject: [PATCH] Confgure auto-cpufreq preoperly Disable intel_pstate then quto-cpufreq will work properly --- hosts/morty/hardware-configuration.nix | 3 +-- nixos/includes/hardware/cpufreq.nix | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hosts/morty/hardware-configuration.nix b/hosts/morty/hardware-configuration.nix index bb4c1ce..e29fc34 100644 --- a/hosts/morty/hardware-configuration.nix +++ b/hosts/morty/hardware-configuration.nix @@ -12,7 +12,7 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" "i915" ]; boot.extraModulePackages = [ ]; - boot.kernelParams = ["fbcon=rotate:1" "video=eDP-1:panel_orientation=right_side_up"]; + boot.kernelParams = ["fbcon=rotate:1" "video=eDP-1:panel_orientation=right_side_up" "intel_pstate=disable" ]; boot.loader.systemd-boot.consoleMode = "max"; fileSystems."/" = { device = "/dev/disk/by-uuid/d28d59b0-a44d-4b17-9338-2ca69a1efca7"; @@ -41,7 +41,6 @@ swapDevices = [ ]; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.opengl.enable = true; diff --git a/nixos/includes/hardware/cpufreq.nix b/nixos/includes/hardware/cpufreq.nix index 2a633e1..dfb44c0 100644 --- a/nixos/includes/hardware/cpufreq.nix +++ b/nixos/includes/hardware/cpufreq.nix @@ -7,8 +7,8 @@ turbo = "never"; }; charger = { - governor = "performance"; - turbo = "never"; + governor = "schedutil"; + turbo = "auto"; }; }; };