Wireless mouse temporarily freezes (sleeps) on battery power

I have been getting a very annoying problem since recently in Ubuntu 12.04, probably due to another update that did more bad than good...

When I resume from sleep on battery power my Lenovo Thinkpad T420, my wireless laser mouse (Logitech M705) freezes everytime I leave it for 2 seconds. It then starts moving again when I shake it for 5 seconds. The touchpad works normally.

I'm guessing the mouse enters some sleep mode and I'd like to know where to change this "timeout" value.


I found a solution on this page:

http://ubuntuforums.org/showthread.php?t=1675277

here's what I did:

in /etc/laptop-mode/conf.d/usb-autosuspend.conf

CONTROL_USB_AUTOSUSPEND=0

And everything works normal now.