Skip to content

Commit

Permalink
fix(louise): disable auto-suspend of bluetooth devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mnacamura committed Jan 9, 2022
1 parent 1d81262 commit a48541b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hosts/louise/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
# Enable both GuC and HuC firmware loading (for processors before Gen 11)
# https://wiki.archlinux.org/title/Intel_graphics#Enable_GuC_/
"i915.enable_guc=2"

# Disable auto suspend of bluetooth devices:
# https://github.com/linrunner/TLP/issues/545#issuecomment-833576226
"btusb.enable_autosuspend=0"
# But it seems not working...
];

blacklistedKernelModules = [
Expand Down Expand Up @@ -87,6 +92,11 @@

CPU_SCALING_GOVERNOR_ON_AC = "powersave";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";

# Bluetooth adopter gets powered off after disconnecting bluetooth mouse.
# Both of these lines do not work.
# USB_EXCLUDE_BTUSB = true;
# USB_DENYLIST = "0489:e0a2"; # Bus 001 Device 003: ID 0489:e0a2 Foxconn / Hon Hai
};

dropbox.enable = true;
Expand Down

0 comments on commit a48541b

Please sign in to comment.