I have a USB audio device that has input and output from/to guitar. It gets power from USB. It was working all well before. But after recent updates, It's kind of half-working. The device only gets power when there is some audio is being playing in laptop or some input signal is sent from guitar. So, If I stop playing guitar for a second, it turns off and when I play again it goes on. I want to get continuous power. Is there any way I can fix this problem?
This question seems really simular: https://superuser.com/questions/408683/why-my-usb-mouse-gets-suspended-after-3-seconds-of-inactivity
You can check if you have the same issue as the one above by entering the command:
for i in /sys/bus/usb/devices/*/power/control; do echo on > $i; done
If this fixes your problem, you can make it permanent by editing
/etc/laptop-mode/conf.d/usb-autosuspend.conf in scratch
sudo scratch-text-editor /etc/laptop-mode/conf.d/usb-autosuspend.conf
The permanent fix seems to have changed, if
modprobe usbcore autosuspend=-1 doesn't do anything, you need to change the bootloader.
To do this, you have to open the GRUB config in scratch.
sudo scratch-text-editor /etc/default/grub and loof for a line that states
GRUB_CMDLINE_LINUX_DEFAULT and add
usbcore.autosuspend=-1 to that line.
The line will be something along the lines of this:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.autosuspend=-1"