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

  • 相关阅读:
    LeetCode 109 Convert Sorted List to Binary Search Tree
    LeetCode 108 Convert Sorted Array to Binary Search Tree
    LeetCode 107. Binary Tree Level Order Traversal II
    LeetCode 106. Construct Binary Tree from Inorder and Postorder Traversal
    LeetCode 105. Construct Binary Tree from Preorder and Inorder Traversal
    LeetCode 103 Binary Tree Zigzag Level Order Traversal
    LeetCode 102. Binary Tree Level Order Traversal
    LeetCode 104. Maximum Depth of Binary Tree
    接口和多态性
    C# 编码规范
  • 原文地址:https://www.cnblogs.com/suyang/p/1883405.html
Copyright © 2011-2022 走看看