I'm using Ubuntu 11.04 64 bit laptop, and I have a Microsoft mouse. When I'm on the battery power the mouse cuts in and out, I have full battery power so it's not because of low power. It never does this in Windows, and in the past when I ran Karmic it never did this either, only when I reinstalled Ubuntu with Natty. As soon as I plug in the power it works perfectly fine.
This behaviour is caused by
laptop-mode-tools
. While it's true that removing it completely solves the "problem", you may still want to keep the package on your system.In order to disable the usb autosuspend feature of laptop-mode-tools for your mouse, you can insert your mouse's USBID (obtainable through
lsusb
) inon the line
where your-usb-id is of the format
093a:2510
(this is my mouse). IfAUTOSUSPEND_USBID_BLACKLIST
is already there, simply add the necessary USBID (note this will work only ifAUTOSUSPEND_USE_WHITELIST
is set to0
).Finally, reload laptop-mode-tools by executing
or
Make sure you don't have the
laptop-mode-tools
orpowertop
packages installed. If you do, uninstall them by runningThis solved the issue for me on Mint 13 on an Alienware M14x R2.
I should note that after 11.10 that problem no longer existed for me. So the answer to this problem is just update! :D
It seems like your computer is set to disable USB when iddle as a power saving measure.
This is usually suggested by powertop, but it's a very bad idea if you are using a USB mouse. This command fixes it temporally:
You need to substitute yourmouse for your mouse bus and device number, you can usually find it with:
Unluckily this will work only until whatever the program that have changed the setting kicks on again: either at boot time, when you disconnect your computer from electricity, or whatever. You need to discover what package is changing it to resolve the issue.
I had a similar problem and I solved it by disabling pm-powersave with
Then I rebooted my laptop and everything was just fine. I don't know, however, the other implications of this action.
Using Ubuntu Mate 15.10 I solved this with one terminal command ..
it looks like tlp (power manager) blocks the usb mouse to save power