分页: 1 / 1

关于安装laptop-mode-tools后电池模式下鼠标等外设失去响应的解决办法

发表于 : 2012-10-27 10:22
ferstar
新装12.04,基本感觉良好,折腾好双显卡切换等等后又习惯性的安装了laptop-mode-tools,没想到拔掉电源线后鼠标立马不动了,明显不可能是鼠标故障,所以觉得问题应该出在laptop-mode-tools上面,仔细检查后附解决方案如下
打开如下这个配置文件

代码: 全选

/etc/laptop-mode/conf.d/usb-autosuspend.conf
可以看到laptop-mode-tools通过该配置文件的设定来自动关停USB外设,问题就在这里了,我们需要把自己的鼠标添加到白名单也就是软件说明里的BLACKLIST里面

下面的问题就是如何找到自己鼠标的设备ID,可以用如下的命令

代码: 全选

lsusb -xv
我的本本输出如下
...
Bus 002 Device 006: ID 0461:4de2 Primax Electronics, Ltd
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0461 Primax Electronics, Ltd
idProduct 0x4de2
bcdDevice 2.00
iManufacturer 0
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 98mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 1 Boot Interface Subclass
bInterfaceProtocol 2 Mouse
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 64
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0005 1x 5 bytes
bInterval 10
...

注意看红色加粗部分文字,mouse代表你的鼠标,然后把ID如我的0461:4de2复制

编辑

代码: 全选

/etc/laptop-mode/conf.d/usb-autosuspend.conf
把刚刚复制的ID信息粘贴到这里
AUTOSUSPEND_USBID_BLACKLIST="0461:4de2"

保存退出,拔掉电源线测试下,是不是鼠标依然正常?

:em11 enjoy!

PS:其他的USB外设诸如手写板,U盘,移动硬盘等都可以如法炮制,想不停哪个就不停哪个 :em05

Re: 关于安装laptop-mode-tools后电池模式下鼠标等外设失去响应的解决办法

发表于 : 2012-10-27 10:23
枫叶饭团
厉害.exe

Re: 关于安装laptop-mode-tools后电池模式下鼠标等外设失去响应的解决办法

发表于 : 2012-10-27 17:39
854713872ab
牛x,但是我拔了重插就好了,麻烦点就麻烦点了将就着用了。。。。。

Re: 关于安装laptop-mode-tools后电池模式下鼠标等外设失去响应的解决办法

发表于 : 2013-04-07 22:32
touchyan
:em11