Skip to content

Commit 2c0e5a8

Browse files
Update raptor-gaming.sh
1 parent d49b706 commit 2c0e5a8

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

files/scripts/raptor-gaming.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,18 @@ cat << 'INPUTRULES' > /usr/lib/udev/rules.d/61-raptor-input.rules
817817
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usbhid", \
818818
ATTR{power/autosuspend}="-1"
819819
820+
# Disable USB autosuspend for Bluetooth adapters (btusb driver). This is a
821+
# SEPARATE device from any HID rule above — a Bluetooth mouse/keyboard talks
822+
# to the OS through this adapter, not as its own USB HID node, so the usbhid
823+
# rule above never protected it. Applying autosuspend to a Bluetooth adapter
824+
# is a known way to leave it unresponsive after its next suspend cycle,
825+
# breaking every Bluetooth input device connected through it until a manual
826+
# USB reset or reboot. This affects internal laptop Bluetooth chips too —
827+
# most enumerate as USB devices even though they're physically built in.
828+
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="btusb", \
829+
ATTR{power/control}="on", \
830+
ATTR{power/autosuspend}="-1"
831+
820832
# uinput: allow user-space to create virtual devices (antimicro, xpadneo, etc.)
821833
KERNEL=="uinput", SUBSYSTEM=="misc", \
822834
OPTIONS+="static_node=uinput", TAG+="uaccess", TAG+="udev-acl", \

0 commit comments

Comments
 (0)