这是一个非常老的问题,与笔记本电脑模式有关,但我将发布解决方案:
在Ubuntu 14.04中,我编辑了/etc/laptop-mode/conf.d/usb-autosuspend.conf
此行并将其更改为blacklist usbhid
:
# The list of USB driver types that should not use autosuspend. The driver
# type is given by "DRIVER=..." in a USB device's uevent file.
# Example: AUTOSUSPEND_USBID_BLACKLIST="usbhid usb-storage"
## Old value: AUTOSUSPEND_USBTYPE_BLACKLIST=""
AUTOSUSPEND_USBTYPE_BLACKLIST="usbhid"
在Ubuntu 12.04中,我必须编辑/etc/laptop-mode/conf.d/runtime-pm.conf
并将以下行更改为blacklist usbhid
:
# The list of device driver types that should use autosuspend. The driver
# type is given by "DRIVER=..." in a device's uevent file.
# Example: AUTOSUSPEND_DEVTYPE_WHITELIST="usbhid usb-storage"
## Old value: AUTOSUSPEND_RUNTIME_DEVTYPE_WHITELIST=""
AUTOSUSPEND_RUNTIME_DEVTYPE_WHITELIST="usbhid"
您也可以将其列入黑名单usb-storage
!并且您还可以按ID将设备列入黑名单(AUTOSUSPEND_RUNTIME_DEVID_WHITELIST
在Ubuntu 12.04或AUTOSUSPEND_USBID_BLACKLIST
Ubuntu 14.04中)。
然后,您需要重新启动笔记本电脑模式才能使更改生效:
sudo /etc/init.d/laptop-mode restart
然后重新插上鼠标。鼠标不会再次暂停。
这对我在工作(ubuntu 12.04)和家庭(ubuntu 14.04)都适用。
希望能帮助到你 :)