I don't know how , but somehow automatic power-off of usb devices got accidentally enabled. Now my usb mouse goes off even if it's idle for 2-3 seconds. It's really irritating.
This happened after I installed
powernap. Maybe it has something to do with these two applications.
How can I disable this "feature"?