sk-8845 – ubuntu linux...middle button scroll and disabling...
时间:2010-08-10 来源:plupy
IBM Ultranav USB Keyboard是我的最爱,但在UBUNTU10.04上的支持还是不够,虽然能使用指点杆,但最喜爱的中键滚轮不能配,还有不喜欢的触摸板也不能关掉。我用的型号是SK-8845。因此从网上搜下,真发现了一些有用的方法,下面是我用之有效的方法:
一、中键滚轮:
Step 1. Create a new file
sudo nano /usr/lib/X11/xorg.conf.d/20-thinkpad.conf
Step 2. Insert the following
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
Step 3. Save file, restart computer, and enjoy!
二、关闭触摸板
网上找的一些资料都是给笔计本上的触摸板用的,给这个键盘用的只有一个帖子,但系统太旧,我用了没有效果。
自己搞了一下,竟然能行,下面是步骤:
1. 使用cat /proc/bus/input/devices查看Touchpad映射的是哪个设备: $ sudo cat /proc/bus/input/devices I: Bus=0003 Vendor=04b3 Product=3019 Version=0100N: Name="Lite-On Tech IBM USB Travel Keyboard with UltraNav"
P: Phys=usb-0000:00:1d.0-1.3/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.0/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=120013
B: KEY=10000 7 ff9f207a c14057ff febeffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7
I: Bus=0003 Vendor=04b3 Product=3019 Version=0100
N: Name="Lite-On Tech IBM USB Travel Keyboard with UltraNav"
P: Phys=usb-0000:00:1d.0-1.3/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.3/2-1.3:1.1/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=13
B: KEY=7fff8000 0 0 0 0 0 0 1f 0 0 28 c000d000 1e0000 0 0 0
B: MSC=10
I: Bus=0003 Vendor=06cb Product=0009 Version=0100
N: Name="Synaptics Inc. Composite TouchPad / TrackPoint"
P: Phys=usb-0000:00:1d.0-1.4/input0
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/input/input6
U: Uniq=
H: Handlers=mouse1 event6
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3
B: MSC=10
I: Bus=0003 Vendor=06cb Product=0009 Version=0100
N: Name="Synaptics Inc. Composite TouchPad / TrackPoint"
P: Phys=usb-0000:00:1d.0-1.4/input1
S: Sysfs=/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.1/input/input7
U: Uniq=
H: Handlers=mouse2 event7
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3
B: MSC=10 2. 然后用cat /dev/input/mouse1来测试mouse1是不是触摸板,不行就试mouse2: $ sudo cat /dev/input/mouse1 经测试,mouse1即触摸板,重点看这句:H: Handlers=mouse1 event6 3. 查看/var/log/Xorg.0.log,找到与触摸板相关的行,可以看到/dev/input/event6即为触摸板了,它是由evdev来驱动 的: (II) config/udev: Adding input device Synaptics Inc. Composite TouchPad / TrackPoint (/dev/input/event6 )
(**) Synaptics Inc. Composite TouchPad / TrackPoint: Applying InputClass "evdev pointer catchall "
(**) Synaptics Inc. Composite TouchPad / TrackPoint: Applying InputClass "Trackpoint Wheel Emulation"
(**) Synaptics Inc. Composite TouchPad / TrackPoint: always reports core events
(**) Synaptics Inc. Composite TouchPad / TrackPoint: Device: "/dev/input/event6"
(II) Synaptics Inc. Composite TouchPad / TrackPoint: Found 3 mouse buttons
(II) Synaptics Inc. Composite TouchPad / TrackPoint: Found relative axes
(II) Synaptics Inc. Composite TouchPad / TrackPoint: Found x and y relative axes
(II) Synaptics Inc. Composite TouchPad / TrackPoint: Configuring as mouse
(**) Option "Emulate3Buttons" "false"
(II) Synaptics Inc. Composite TouchPad / TrackPoint: Forcing middle mouse button emulation off.
(**) Option "EmulateWheel" "true"
(**) Option "EmulateWheelButton" "2"
(**) Option "YAxisMapping" "4 5"
(**) Synaptics Inc. Composite TouchPad / TrackPoint: YAxisMapping: buttons 4 and 5
(**) Option "XAxisMapping" "6 7"
(**) Synaptics Inc. Composite TouchPad / TrackPoint: XAxisMapping: buttons 6 and 7
(**) Synaptics Inc. Composite TouchPad / TrackPoint: EmulateWheelButton: 2, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Synaptics Inc. Composite TouchPad / TrackPoint" (type: MOUSE)
(II) Synaptics Inc. Composite TouchPad / TrackPoint: initialized for relative axes.
(II) config/udev: Adding input device Synaptics Inc. Composite TouchPad / TrackPoint (/dev/input/mouse1)
(II) No input driver/identifier specified (ignoring) 4. 修改/usr/lib/X11/xorg.conf.d/05-evdev.conf中内容,将event6排除出去: Section "InputClass"
Identifier "evdev pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event[!6] "
Driver "evdev"
EndSection 5. 或者,我们将需要的input pointer加上即可,如我们需要trackpoint和鼠标,它们分别对应/dev/input/evnet7和/dev/input /evnet8,因此修改如下: Section "InputClass"
Identifier "evdev pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event[7,8] "
Driver "evdev"
EndSection 6. 最后重新启动X: $ sudo service gdm restart
参考帖: Disabling Touchpad on IBM Ultranav USB Keyboard: http://ubuntuforums.org/showthread.php?t=367410 ThinkPad Middle Button Scroll – Ubuntu Linux 10.04 Lucid Lynx: http://www.eastwoodzhao.com/thinkpad-middle-button-scroll-ubuntu-linux-10-04-lucid-lynx/