From b5782f633c68637068b8cb7a871350ddcf7bace3 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 5 Oct 2021 22:53:49 +0200 Subject: [PATCH] mayushii: Add power saving configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When booted with my mouse connected to my kvm switch connected to my dock connected to mayushii, powertop’s default configuration enables power saving features that disable the mouse until it registers a click. My current workaround is to unplug and plug the dock, so the hot-plug input devices connected to it are reset. --- machines/mayushii/hardware-configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/machines/mayushii/hardware-configuration.nix b/machines/mayushii/hardware-configuration.nix index f3e5ec8..0b3afcf 100644 --- a/machines/mayushii/hardware-configuration.nix +++ b/machines/mayushii/hardware-configuration.nix @@ -38,7 +38,11 @@ }; }; - powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; + powerManagement = { + cpuFreqGovernor = "schedutil"; + powertop.enable = true; + }; + services.tlp.enable = true; # Most of the time I want to use both screens at the same time and suspend it # regularily by closing the lid