Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I don't know how , but somehow automatic power-off of usb devices got accidently enabled. Now my usb mouse goes off even if it's idle for 2-3 seconds. it's really irritating.

help?!!!!!

P.S. This happened after i installed powertop and powernap. May be it has something to do with these two.

share|improve this question
    
askubuntu.com/questions/285434/… –  Qasim Jun 14 '13 at 14:53

6 Answers 6

up vote 5 down vote accepted

It's PowerNap that's doing this.

You can disable just this part of PowerNap's power savings scripts with:

sudo powernap-action --disable usb_autosuspend
share|improve this answer

Just copy paste the following command in terminal and it will disable auto suspending.

Disabling auto suspending USB

    for i in /sys/bus/usb/devices/*/power/autosuspend;
    do echo 2 > $i;
    done

Disable USB autosuspend

for foo in /sys/bus/usb/devices/*/power/level;
do echo on > $foo;
done
share|improve this answer
1  
Disable USB autosuspend is exactly what I was looking for. Here I don't have powernap installed. –  Fernando Kosh Jan 24 at 1:08
    
Same, I don't have powernap either. This worked for me. –  eggonlegs Feb 25 at 1:10
    
Is that reboot-persistent ? –  Kwaio Apr 25 at 12:23
    
nope @Kwaio ... also have a look askubuntu.com/questions/285434/… –  Qasim Apr 25 at 12:37
    
How to make it reboot-persistent: askubuntu.com/questions/73590/… –  Bryce Sep 18 at 23:54

This how-to seems correct : http://www.hecticgeek.com/2012/06/fix-usb-mouse-not-working-laptop-mode-tools-ubuntu/

share|improve this answer
2  
Welcome to Ask Ubuntu! Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  fossfreedom Jul 12 '12 at 9:40

Could it be that laptop mode tools are causing this? If so, try the following:

  1. optional: Create a backup of /etc/laptop-mode/conf.d/usb-autosuspend.conf by copying it in your home folder:

    cp /etc/laptop-mode/conf.d/usb-autosuspend.conf ~/usb.autosuspend.old
    
  2. Get the USB ID of your mouse/keyboard

    lsusb
    

    This will return a list including ID xxxx:xxxx for your mouse/keyboard.

  3. Edit the original usb-autosuspend.conf

    sudo gedit /etc/laptop-mode/conf.d/usb-autosuspend.conf
    
  4. There will be an entry called AUTOSUSPEND_USBID_BLACKLIST='' change this to AUTOSUSPEND_USBID_BLACKLIST='xxxx:xxxx'

  5. This should stop your USB mouse/keyboard from being suspended. Now you either need to restart your computer or restart laptop-mode using

    sudo service laptop-mode restart
    
share|improve this answer

Is this any help? It details how to change autosuspend for USB devices:

http://www.lesswatts.org/projects/devices-power-management/usb.php

share|improve this answer
3  
Link above looks broken. –  Gustav Bertram Apr 23 '13 at 6:58
    
Yep, it is, looks like I answered this before I noticed it was good practise not to just link without copying some relevance. I'll delete the answer [Edit: oh I can't delete an accepted answer] –  Caesium Apr 23 '13 at 16:10

click on device manager and select universal serial bus controller.and click on generic usb hub and select power management at the top and uncheck the box(allow the computer to turn off this device to save power.do this rest of th three.

share|improve this answer
1  
This would be useful advice under Windows. Ubuntu, not so much... –  Jez W May 29 '13 at 9:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.