您的位置:首页 > 其它

Ubuntu 8.10里指点杆中键模拟鼠标滚轮的配置方法

2009-04-02 15:36 465 查看
方法一:

创建文件:/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.ZAxsisMapping" type="string">4 5</merge>

<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>

</match>

xorg.conf不用修改。

方法二:

先查看/var/log/Xorg.0.log,找到以下内容:

(**) TPPS/2 IBM TrackPoint: always reports core events

(**) TPPS/2 IBM TrackPoint: Device: "/dev/input/event8"

(II) TPPS/2 IBM TrackPoint: Found x and y relative axes

(II) TPPS/2 IBM TrackPoint: Found 3 mouse buttons

(II) TPPS/2 IBM TrackPoint: Configuring as mouse

(II) XINPUT: Adding extended input device "TPPS/2 IBM TrackPoint" (type: MOUSE)

(**) TPPS/2 IBM TrackPoint: YAxisMapping: buttons 4 and 5

(**) TPPS/2 IBM TrackPoint: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200

可见设备已经识别,设备名称是/dev/input/event8,只是模拟鼠标滚轮的默认是第4键。所以修改/etc/X11/xorg.conf如下:

Section "InputDevice"

Identifier "Configured Mouse"

Driver "evdev"

Option "CorePointer"

Option "Device" "/dev/input/event8"

Option "Emulate3Buttons" "true"

Option "EmulateWheel" "true"

Option "EmulateWheelButton" "2"

Option "ZAxisMapping" "4 5"

EndSection

Section "ServerLayout"

Identifier "Default Layout"

Screen "Default Screen"

Inputdevice "Configured Mouse"

EndSection

和以前的方法不同一个是Device,mice不行了;另一个是Driver,现在是evdev。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: