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:

echo "-1" | sudo tee /sys/bus/usb/devices/*/power/autosuspend_delay_ms
echo "on" | sudo tee /sys/bus/usb/devices/*/power/control

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

echo "options usbcore autosuspend=-1" | sudo tee /etc/modprobe.d/disable-usb-autosuspend.conf 
options usbcore autosuspend=-1

Reference:

Linux kernel Power Management for USB documentation:
https://www.kernel.org/doc/Documentation/usb/power-management.txt

How to disable auto power off of usb devices like usb mouse?
http://askubuntu.com/a/301416

在 Linux 底下的 VirtualBox 連接 USB device 設定

透過 apt-get 或是從 virtualbox.org 下載 deb 在 LinuxMint 底下裝的Virtualbox,發現要從 Client 直接存取 Host 的 USB device 的時候發現virtualbox 的 USB 選單裏面什麼都沒有

原來是要把自己的帳戶加入 vboxusers 群阻就OK了:

sudo usermod -a -G vboxusers username

相關的說明可以參考 :

Oracle VM VirtualBox® User Manual / Chapter 2. Installation details / 2.3.4. The vboxusers group

我以為這東西應該要像 apache 一樣打包進去,安裝的時候自動處理就好了… xD