Browse Source

try fix bluetooth connection problems 2

Johan Rong 5 ngày trước cách đây
mục cha
commit
ca397cbe17
1 tập tin đã thay đổi với 15 bổ sung và 1 xóa
  1. 15 1
      nixos/modules/hardware/bluetooth/default.nix

+ 15 - 1
nixos/modules/hardware/bluetooth/default.nix

@@ -1,5 +1,19 @@
 { pkgs, ... }:
 {
-  hardware.bluetooth.enable = true;
+  hardware.bluetooth = {
+    enable = true;
+    powerOnBoot = true;
+    settings = {
+      General = {
+        Enable = "Source,Sink,Media,Socket";
+        AutoConnect = true;
+        FastConnectable = true; 
+      };
+    };
+  };
   services.blueman.enable = true;
+
+  boot.extraModprobeConfig = ''
+    options btusb enable_autosuspend=0
+  '';
 }