USB Mouse sleeping after 5 seconds when on battery [duplicate]
To solve this problem on 12.04 and continue using laptop-mode-tools edit the file:
/etc/laptop-mode/conf.d/usb-autosuspend.conf
$ sudo gedit /etc/laptop-mode/conf.d/usb-autosuspend.conf
And look for the line:
AUTOSUSPEND_USBTYPE_BLACKLIST=""
Replace with:
AUTOSUSPEND_USBTYPE_BLACKLIST="usbhid usb-storage"
This will automatically disable USB autosuspend if you have ANY mouse and even USB drives plugged in.
I had the same problem, I think after I installed either laptop-mode-tools
or powertop
. Instead of uninstalling them again...
- enter
sudo powertop
in a terminal - use the right arrow key to change to the tab Tunables
- use the down arrow key to select the line with
Autosuspend
for your USB mouse - press Enter to toggle this line to
Bad
- quit powertop with the key q
EDIT: Too bad, this is just a temporary solution. It does not survive a reboot...
However, I found something else. If you have laptop-mode-tools
installed, try to set
CONTROL_USB_AUTOSUSPEND=0
in the file /etc/laptop-mode/conf.d/usb-autosuspend.conf
EDIT: setting BATT_SUSPEND_USB=0 should also solve the problem (at least it solved mine).