From 65686fdf162c524f8f646686845906fc48deb521 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sun, 28 Jan 2024 15:08:20 +0100 Subject: [PATCH] Set some stuff up for the framework --- nki-framework/configuration.nix | 19 +------------------ nki-framework/hardware-configuration.nix | 4 ++++ 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/nki-framework/configuration.nix b/nki-framework/configuration.nix index b8c661a..9c6231b 100644 --- a/nki-framework/configuration.nix +++ b/nki-framework/configuration.nix @@ -26,24 +26,7 @@ percentageCritical = 3; percentageLow = 10; }; - services.tlp.enable = false; - services.tlp.settings = { - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - - CPU_MIN_PERF_ON_AC = 0; - CPU_MAX_PERF_ON_AC = 100; - CPU_MIN_PERF_ON_BAT = 0; - CPU_MAX_PERF_ON_BAT = 30; - - PLATFORM_PROFILE_ON_AC = "performance"; - PLATFORM_PROFILE_ON_BAT = "low-power"; - - USB_AUTOSUSPEND = 0; - }; - services.power-profiles-daemon.enable = false; + services.power-profiles-daemon.enable = true; # powerManagement.enable = true; # powerManagement.powertop.enable = true; services.logind.lidSwitch = "suspend"; diff --git a/nki-framework/hardware-configuration.nix b/nki-framework/hardware-configuration.nix index 989a1df..a80a9f9 100644 --- a/nki-framework/hardware-configuration.nix +++ b/nki-framework/hardware-configuration.nix @@ -13,6 +13,10 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; + boot.kernelParams = [ + # See https://community.frame.work/t/tracking-graphical-corruption-in-fedora-39-amd-3-03-bios/39073/143 + "amdgpu.sg_display=0" + ]; fileSystems."/" = {