New File/etc/hal/fdi/policy/mouse-wheel.fdi
Write the following:
<match key= "info.product" string= "TPPS/2 IBM TrackPoint" >
<merge key= "Input.x11_options. Emulatewheel "Type=" string >true</merge>
<merge key= "Input.x11_options. Emulatewheelbutton "Type=" string >2</merge>
<merge key= "Input.x11_options. Yaxismapping "type=" string ">4 5</merge>
<merge key= "Input.x11_options. Xaxismapping "type=" string ">6 7</merge>
<merge key= "Input.x11_options. Emulate3buttons "Type=" string >true</merge>
<merge key= "Input.x11_options. Emulatewheeltimeout "Type=" string >200</merge>
</match>
2. After reboot, enter at the command line
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 Y
Axis "8 4 5
XInput set-int-prop "Tpps/2 IBM trackpoint" "Evdev Wheel emulation X
Axis "8 6 7
Reboot
See more highlights of this column: http://www.bianceng.cn/OS/Linux/