Mouse and touchpad freeze without power supply

I have a fresh installed Ubuntu 12.04 LTS on my HP ProBook.

My external mouse and touchpad freeze in battery mode, but I can reinitialize them with Ctrl+Alt+1 and back to 7. As long as I move the mouse everything is fine. But not touching the mouse for one second will freeze it.

I could solve the problem for my touchpad putting these two lines into rc.local:

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps

But I have no solution for my external wired mouse. How to fix it?


Thank you:

sudo apt-get install powernap
sudo powernap-action --disable usb_autosuspend

solved my problem!