我的笔记本电脑在电源模式下,鼠标可以正常使用,在电池模式下,鼠标的灯还是亮的 ,但是鼠标的指针不能移动,左右键点击也全无反应。我的笔记本电脑是联想 Y500, 装的是 opensuse 12.3,一共有三个 USB 口,插到哪个 USB 口,均表现出上述情况。我的鼠标肯定是没有问题的,因为在其他电脑上能正常使用,而且换个有线鼠标插到我电脑上也是这种情况,所以我初步断定不是鼠标的问题。我的本本之前是预装的 win8,在 win8 下,鼠标无论在电池模式还是电源模式下均能正常工作,另外,我用 U 盘启动 linux mint 的 liveCD 版,鼠标也是无论在电池模式还是电源模式下均能正常工作。所以我初步断定是 opensuse 的问题。
我在 opensuse 下面,运行:lsusb,无论是电池模式还是电源模式都得到如下结果:
yugioh@linux-lssw:~> lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 174f:1474 Syntek
Bus 003 Device 003: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 8087:07da Intel Corp.
另外就是我在电池模式和电源模式下,U 盘什么的是可以正常工作的。我如果用那种不需要 USB 口供电的无线蓝牙鼠标,在电池模式和电源模式下,无线蓝牙鼠标也都能正常工作的。
所以我推测我在电池模式下,opensuse 的电源管理系统不知出于何种原因降低了 USB 口的供电电压,所以导致鼠标虽然通电,但由于电压不足,没法正常工作。
希望牛人高手,路过看到,帮帮我的忙。
$ cat /etc/laptop-mode/conf.d/usb-autosuspend.conf | head -n 20
#
# Configuration file for Laptop Mode Tools module usb-autosuspend.
#
# For more information, consult the laptop-mode.conf(8) manual page.
#
###############################################################################
# USB autosuspend settings
# ------------------------
#
# If you enable this setting, laptop mode tools will automatically enable the
# USB autosuspend feature for all devices.
#
# NOTE: Some USB devices claim they support autosuspend, but implement it in a
# broken way. This can mean keyboards losing keypresses, or optical mice turning
# their LED completely off. If you have a device that misbehaves, add its USB ID
# to the blacklist below and complain to your hardware vendor.
################################################################################
看到那个 NOTE 了吗?
结合你的 lsusb
sudo sed -i ‘s/AUTOSUSPEND_USBID_BLACKLIST=“”/AUTOSUSPEND_USBID_BLACKLIST=“093a:2510”/’ /etc/laptop-mode/conf.d/usb-autosuspend.conf