-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Prevent disconnection of usb devices. | ||
[Documentation](https://ubuntuforums.org/showthread.php?t=2159645&page=6&p=12926730#post12926730) | ||
|
||
/etc/rc.local: | ||
|
||
``` | ||
# Prevents the Bluetooth USB card from getting reset which disconnects the mouse | ||
BTUSB_DEV="0a5c:21e8" | ||
BTUSB_BINDING="$(lsusb -d "$BTUSB_DEV" | | ||
cut -f 1 -d : | | ||
sed -e 's,Bus ,,' -e 's, Device ,/,' | | ||
xargs -I {} udevadm info -q path -n /dev/bus/usb/{} | | ||
xargs basename)" | ||
echo "Disabling autosuspend for Bluetooth USB Soundcard: $BTUSB_BINDING..." | ||
echo -1 > "/sys/bus/usb/devices/$BTUSB_BINDING/power/autosuspend_delay_ms" | ||
``` |