First of all, this is not a duplicate of this question
My USB mouse is sleeping after three seconds and I have to click to wake it up. This is a system which was upgraded from 14.04 to 16.04. I was using laptop mode tools in 14.04 and I was facing the same issue there. I applied the fix mentioned in the above question by blacklisting my usb mouse id.
The fix was working untill I upgraded to 16.04. Currently the configuration change in /etc/laptop-mode/conf.d/usb-autosuspend.conf
is not correcting this behaviour.
Is there anything else which is handling auto suspend in 16.04? What can I do to fix this?
UPDATE: I noticed that this is not happening in every reboots. If the mouse is sleeping it will sleep till I power off. The next boot may or may not have the issue.
I have also tried changing CONTROL_USB_AUTOSUSPEND=0
in the file /etc/laptop-mode/conf.d/usb-autosuspend.conf
without any success.
This is the output of the grep command.
me@mypc:~$dpkg --get-selections | grep powertop
me@mypc:~$
your help is appreciated.
I have finally resolved this. The solutions mentioned in the other threads assume that the auto suspend is done by laptop mode tools or powertop.The auto suspend behaviour here is caused by the Linux Kernel. This can be overcome by adding a device specific rule
Add the following lines in the file
use lsusb to find your device id and vendor id and replace them in the above code.
SOURCE: http://hamwaves.com/usb.autosuspend/en/