Disable auto suspend for USB - martikainen87/Home-Automation GitHub Wiki
Install TLP and list USB Devices
The port for your sound device is auto-suspended when it is idle. The TLP package is the easiest way to manage this. Use these commands:
sudo apt install tlp
sudo lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 003 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 003 Device 005: ID 0001:0000 Fry's Electronics
Bus 003 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 007: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 006: ID 0658:0200 Sigma Designs, Inc.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Find the ID for the devices you want to disable autosuspend for
Then edit the file /etc/default/tlp
sudo nano /etc/default/bash
Scroll down and find the USB_BLACKLIST=1, you could change this to 0 do disable autosuspend for all devices.
add this row with all the devices you want to disable autosuspend for.
USB_BLACKLIST="0001:0000 0bda:2838 0403:6015 0658:0200"
Then reboot the host