歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

linux下實現ibm小紅點加中鍵實現滾屏

新建文件/etc/hal/fdi/policy/mouse-wheel.fdi

寫入如下內容:

<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。重啟後,在命令行輸入

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

重啟

 

Copyright © Linux教程網 All Rights Reserved