Chinaunix首页 | 论坛 | 博客
  • 博客访问: 872722
  • 博文数量: 204
  • 博客积分: 2433
  • 博客等级: 大尉
  • 技术积分: 2205
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-05 13:32
文章分类

全部博文(204)

分类: LINUX

2011-10-09 01:50:44

1. Introduction

The TrackPoint is the red nub in the middle of the keyboard and the three buttons right below the keyboard. By default Press-To-Select, the process of pushing down on the TrackPoint to click, is turned off. Also, by default the TrackPoint's middle click performs the Paste function.

In this tutorial I will describe how to adjust these settings activate the middle click scroll and Press-To-Select similar to Windows.

2. Configure TrackPoint Middle Mouse Scroll

I wanted to configure the middle click on the TrackPoint to scroll just like in Windows so I used the following commands to achieve it.

2.1: Find the ID number for the TrackPoint

The first step is to find the xinput id number for the IBM TrackPoint. Run the following command.

Code:

xinput list

You should receive all the available devices for xinput. One of the devices should say:

Code:

"TPPS/2 IBM TrackPoint"    id=9    [XExtensionPointer]
    Type is MOUSE
    Num_buttons is 5
    Num_axes is 2
    Mode is Relative
    Motion_buffer is 256
    Axis 0 :
        Min_value is -1
        Max_value is -1
        Resolution is 1
    Axis 1 :
        Min_value is -1
        Max_value is -1
        Resolution is 1

Or something very similar.

2.2: TrackPoint Middle Mouse Scroll

Next run the following commands to enable the middle mouse scroll.

Code:

xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1;
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2;
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Timeout" 16 200;

Now you should be able to middle scroll by pressing the middle mouse button for the TrackPoint and moving the TrackPoint up and down.


如果你按照上面的教程操作,碰到“unable to find device TPPS/2 IBM TrackPoint”的错误提示,那么你可以参考我的经验:

$ xinput --list
⎡ Virtual core pointer                            id=2        [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                      id=4        [slave  pointer  (2)]
⎜   ↳ "SynPS/2 Synaptics TouchPad"                    id=10        [slave  pointer  (2)]
⎜   ↳ "TPPS/2 IBM TrackPoint"                         id=11        [slave  pointer  (2)]
⎜   ↳ "Macintosh mouse button emulation"              id=12        [slave  pointer  (2)]
⎣ Virtual core keyboard                           id=3        [master keyboard (2)]
    ↳ Virtual core XTEST keyboard                     id=5        [slave  keyboard (3)]
    ↳ "Power Button"                                  id=6        [slave  keyboard (3)]
    ↳ "Video Bus"                                     id=7        [slave  keyboard (3)]
    ↳ "Sleep Button"                                  id=8        [slave  keyboard (3)]
    ↳ "AT Translated Set 2 keyboard"                  id=9        [slave  keyboard (3)]
    ↳ "ThinkPad Extra Buttons"                        id=13        [slave  keyboard (3)]

请注意“⎜   ↳ "TPPS/2 IBM TrackPoint"                         id=11        [slave  pointer  (2)]”这一行,只要在上面的命令中用id值也就是11来代替“TPPS/2 IBM TrackPoint”即可。也就是说,命令将变为:

xinput set-int-prop 11 "Evdev Wheel Emulation" 8 1;
xinput set-int-prop 11 "Evdev Wheel Emulation Button" 8 2;
xinput set-int-prop 11 "Evdev Wheel Emulation Timeout" 16 200;

命令执行完成后,指点杆马上就可以滚动了!
阅读(8473) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~