about summary refs log tree commit diff stats
path: root/hosts/tiamat/hardware
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 13:05:51 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-03-31 14:22:08 +0200
commit7a24bd6f7e5a29490c6ecd8d6a0bf527d636a1b4 (patch)
treea439e268c2649176c77b515cad391f881e62306c /hosts/tiamat/hardware
parentfix(hm/conf/nvim/plgs/vim-tex): Set `outdir` on latex command (diff)
downloadnixos-config-7a24bd6f7e5a29490c6ecd8d6a0bf527d636a1b4.tar.gz
nixos-config-7a24bd6f7e5a29490c6ecd8d6a0bf527d636a1b4.zip
fix(hosts/tiamat/hardware): Avoid having a suspended Bluetooth controller
The controller tends to never wake up again, so suspending it is rather
useless.
Diffstat (limited to '')
-rw-r--r--hosts/tiamat/hardware/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/tiamat/hardware/default.nix b/hosts/tiamat/hardware/default.nix
index 81a74620..b15c6e53 100644
--- a/hosts/tiamat/hardware/default.nix
+++ b/hosts/tiamat/hardware/default.nix
@@ -21,6 +21,11 @@
   boot = {
     kernelModules = ["kvm-amd"];
 
+    kernelParams = [
+      # Avoid loosing the Bluetooth controller to a sleep, from which it never wakes again
+      "btusb.enable_autosuspend=n"
+    ];
+
     initrd.availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
   };
 }