From 42894309895d6830e21e8e2d76f24084a66ed1f3 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Wed, 28 Aug 2024 21:20:59 +0200 Subject: [PATCH] fix that mouse and keyboard power off during normal use --- share/common.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/share/common.nix b/share/common.nix index f2310c1..422e674 100644 --- a/share/common.nix +++ b/share/common.nix @@ -27,8 +27,14 @@ in # use the latest kernel boot.kernelPackages = pkgs.linuxPackages_latest; - # don't check for split locks, for KVM and Co. - boot.kernelParams = [ "split_lock_detect=off" ]; + # my kernel parameters + boot.kernelParams = [ + # don't check for split locks, for KVM and Co. + "split_lock_detect=off" + + # avoid that my USB stuff sleeps + "usbcore.autosuspend=-1" + ]; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; @@ -247,11 +253,6 @@ in systemd.targets.hibernate.enable = false; systemd.targets.hybrid-sleep.enable = false; - # save power - powerManagement.enable = true; - powerManagement.cpuFreqGovernor = "ondemand"; - powerManagement.powertop.enable = true; - # allow unfree packages nixpkgs.config.allowUnfree = true;