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.
36 Answers
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) in
/etc/laptop-mode/conf.d/usb-autosuspend.confon the line
AUTOSUSPEND_USBID_BLACKLIST="your-usb-id"where your-usb-id is of the format 093a:2510 (this is my mouse).
If AUTOSUSPEND_USBID_BLACKLIST is already there, simply add the necessary USBID (note this will work only if AUTOSUSPEND_USE_WHITELIST is set to 0).
Finally, reload laptop-mode-tools by executing
# service laptop-mode reloador
$ sudo service laptop-mode reload 1 Make sure you don't have the laptop-mode-tools or powertop packages installed. If you do, uninstall them by running
sudo apt-get remove --purge laptop-mode-tools powertop && apt-get autoremoveThis solved the issue for me on Mint 13 on an Alienware M14x R2.
1I 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:
echo -1 | sudo tee /sys/bus/usb/devices/yourmouse/../power/autosuspendYou need to substitute yourmouse for your mouse bus and device number, you can usually find it with:
lsusbUnluckily 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.
20I had a similar problem and I solved it by disabling pm-powersave with
# pm-powersave falseThen 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 ..
sudo tlp acit looks like tlp (power manager) blocks the usb mouse to save power
1