Stop the annoying USB power autosuspend under GNU/Linux

Got a problem that the usb mouse will been poweroff/suspend periodically on Linuxmint 17 when the notebook is not in ac mode, here is a quick fix without rebooting system:

For permanent change, for example on Debian / Ubuntu based GNU/Linux, with usbcore module:


Linux kernel Power Management for USB documentation:

How to disable auto power off of usb devices like usb mouse?

FreeBSD的kernel source…



===> Staging for htop-1.0.2
===> htop-1.0.2 depends on executable: lsof - not found
===> Verifying install for lsof in /usr/ports/sysutils/lsof
===> lsof-4.88.g,8 requires kernel sources.
*** [install] Error code 1

Stop in /usr/ports/sysutils/lsof.
*** [run-depends] Error code 1

Stop in /usr/ports/sysutils/htop.

原來lsof需要kernel source這玩意兒…

解法: 從安裝光碟/隨身碟抓source tarball出來,剛好主機在學術網路上我就用網路抓了…

#tar -C / -xf src.txz