Middle Button Scroll and Disabling Touchpad on IBM Ultranav USB Keyboard SK-8845 – Ubuntu Linux 10.04 Lucid Lynx

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=0100
N: 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

7. 问题
触摸板可以disable,只要系统硬件不改变,重启系统也没问题。
但当系统有新硬件或系统重新更新硬件时,可能会出现硬件和event id匹配改变的情况,目前还没有更好的解决办法。

参考帖:
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/

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值