I have a Dell XPS15 running through a cheap USB switcher. Whenever I switch away from the Dell it seems to lose the ability to connect to the devices on this switcher (keyboard, mouse, graphics tablet) when switching back. The mouse does not even appear to be powered on.
Continuously mashing the mouse buttons while plugging and uplugging the usb connection to the switcher resets the connection about 10% of the time. But mostly the keyboard and mouse are just dead. Plugging a new mouse into the same port works, but unplugging it and then plugging the switcher back in still refuses to work.
This link (https://unix.stackexchange.com/question ... 0-or-above) seems to suggest that it is the usbcore autosuspend feature that may be the culprit. But the solution provided apparently does not apply to CentOS7. I tried modifying my grub file to disable autosuspend as suggested, (by adding the string: usbbcore.autosuspend=-1 to the end of the GRUB_CMDLINE_LINUX line) but when I check:
Code: Select all
cat /sys/module/usbcore/parameters/autosuspend
Question #1:
Is there a way to change this value to be -1 for this current session? I tried this command:
Code: Select all
sudo echo -1 >/sys/module/usbcore/parameters/autosuspend
[EDIT: sudo apparently does not allow me to change this, but using the su command and becomming root does. At first glance, setting this to -1 seems to fix this issue, so it appears that I just need to figure out how to change it permanently.)
Question #2:
How do I change usbcore.autosuspend to be -1 across reboots?
Thanks!