分类: 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.