汗zhuqin_83 写了:上帝很帅
一般都是写脚本了,你会写就行。
我现在也就桌面上搞搞
半只脚进入linux而已
发现一个问题,修正后thinpad的小红点trackpoint和三键完蛋了,以上是原驱动内容Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "true"
EndSection
代码: 全选
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ExplorerPS/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "7"
Option "ButtonMapping" "1 2 3 6 7"
代码: 全选
$ xmodmap -pp
There are 7 pointer buttons defined.
Physical Button
Button Code
1 1
2 2
3 3
4 4
5 5
6 6
7 7
代码: 全选
I: Bus=0003 Vendor=046d Product=c50e Version=2500
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:1d.1-1/input0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=kbd mouse1 event3
B: EV=7
B: KEY=1f0000 0 100 38 c0000000 c0000 0 0 0
B: REL=103
代码: 全选
killall xbindkeys && xbindkeys
代码: 全选
$ xmodmap -pp
There are 20 pointer buttons defined.
Physical Button
Button Code
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
10 10
11 11
12 12
13 13
14 14
15 15
16 16
17 17
18 18
19 19
20 20
代码: 全选
I: Bus=0003 Vendor=046d Product=c50e Version=0111
N: Name="Logitech USB Receiver"
P: Phys=usb-0000:00:1d.1-1/input0
S: Sysfs=/class/input/input2
U: Uniq=
H: Handlers=mouse1 event2
B: EV=20007
B: KEY=ffff0000 0 0 0 0 0 0 0 0
B: REL=143
B: LED=ff00
代码: 全选
Section "InputDevice"
Identifier "Configured Mouse"
Driver "evdev"
Option "SendCoreEvents" ##这里注意下使用的是楼主提供的第二选择
Option "Name" "Logitech USB Receiver"
EndSection
代码: 全选
"/usr/bin/xvkbd -xsendevent -text "\[Right]""
m:0x0 + b:6
"/usr/bin/xvkbd -xsendevent -text "\[Left]""
m:0x0 + b:7
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:8
代码: 全选
Section "InputDevice"
Identifier "Logitech V200"
Driver "evdev"
Option "Name" "Logitech USB Receiver"
#Option "HWHEELRelativeAxisButtons" "9 8"
Option "RelHWHEELMapTo" "Buttons 9 8"
Option "SendCoreEvents" "true"
Option "Device" "/dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse"
EndSection