[ 已解决 ] 鼠标无法在本本电源模式下正常工作

我的笔记本电脑在电源模式下,鼠标可以正常使用,在电池模式下,鼠标的灯还是亮的 ,但是鼠标的指针不能移动,左右键点击也全无反应。我的笔记本电脑是联想 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 口的供电电压,所以导致鼠标虽然通电,但由于电压不足,没法正常工作。
希望牛人高手,路过看到,帮帮我的忙。

本人也发现这种情况,我猜可能是为了省电,也许是个 bug。usb 鼠标键盘都用不了。
试下装上 laptop-mode-tools

我电脑就一直装着那东西,没有用的
PS:省电也不是那么省的呀,都省到鼠标不能正常工作了。咱不差那点电

  1. 这不是电压的问题,电源管理降低 USB 口电压?您 google 搜搜「linux power management usb voltage」,第一条和第三条结果就直接否定了你的「理论」(请大胆假设小心求证好吗?):

forums.opensuse.org/english/get-technical-help-here/hardware/453668-linux-usb-power-control.html

unix.stackexchange.com/questions/13281/disable-usb-power-for-usb-controlled-power-strip

  1. 这不是 openSUSE 的问题,是楼主就想问高手而不想把自己变成高手的问题。

google 关键字「openSUSE usb mouse」第四条结果:

bbs.archlinux.org/viewtopic.php?id=123553

实际上就在本帖当中二楼印证后,你就应该感觉到端倪:你们都安装了 laptop-mode-tools 软件包。

$ 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

即可解决问题!

1赞

非常感谢,问题解决了哈。
1、其实我一直想找个电压表来测电压呢
2、“opensuse 的问题”其实我是指“我使用 opensuse 默认设置遇到的问题”的一种简写。这个是我没表达清楚。
3、貌似看二楼的意思,他是准备装那个 laptop-mode-tools,所以我就直接告诉他,我装了不管用,所以你不用试了。所以就不会想到是 laptop-mode-tools 的问题了。

再次谢谢哈