zoukankan      html  css  js  c++  java
  • fedora 11 配置 thinkpad trackpoint 中键

    前言:
    周五irc会议上遇到asin问thinkpad的trackpoint与中键的滚动功能,后顺利解决,才有了这篇文章。

    关于trackpoint的原文在thinkwiki上,我只是照着做了一遍(:-D),原文是How to configure the TrackPoint, 具体如下:
    默认情况下,中键在linux上是用作粘贴操作的,而不是和win上一样能和小红点一起组合来上下左右滚动功能的,因此我们需要配置一下。在Ubuntu 8.10 和Fedora 10 以上(fedora 12当然是),是使用udev和HAL配置这些输入设备的。

    1.使用lshal|grep input.product查看自己的设备,我的如下:
    [liuhongdan@dan ~]$ lshal | grep input.product
    input.product = ‘ThinkPad Extra Buttons’  (string)
    input.product = ‘Lid Switch’  (string)
    input.product = ‘Macintosh mouse button emulation’  (string)
    input.product = ‘Sleep Button’  (string)
    input.product = ‘Video Bus’  (string)
    input.product = ‘Power Button’  (string)
    input.product = ‘SynPS/2 Synaptics TouchPad’  (string)
    input.product = ‘TPPS/2 IBM TrackPoint’  (string)
    input.product = ‘AT Translated Set 2 keyboard’  (string)
    input.product = ‘HDA Digital PCBeep’  (string)

    2.使用root新建文件/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.Emulate3Buttons" type="string">true</merge>
    <merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
    </match>

    3.如果希望水平滚动则加入:
    <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>

    4.重启机器,或者重启hal服务与xorg,OK。如果设备是PS/2 Generic Mouse,需要5。

    5.如果你的机器是PS/2 Generic Mouse,则需要使用PS/2 Generic Mouse替换”TPPS/2 IBM TrackPoint”即可。

    6.Enjoy!


    转载自 http://liuhongdan.com/?p=806

  • 相关阅读:
    引用类型Array进行数值对比(应用jquery版)
    在网站前端中,你可能会用到的这些…
    javascript获得鼠标的坐标值
    增加PV方法
    wordpress后台修改“WordPress 地址(URL)”后无法打开的解决方法
    css给网页添加 黑白滤镜
    配置Android开发环境(fedora)
    成功的从fedora 7升级到了fedora 8
    听说这些是公司高管必读的笑话
    debian英文环境中中文输入
  • 原文地址:https://www.cnblogs.com/suyang/p/1883405.html
Copyright © 2011-2022 走看看