LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1055|回复: 5

[解决了]1.5以后的xorg-server里边synaptics和evdev的问题

[复制链接]
发表于 2009-5-18 09:05:43 | 显示全部楼层 |阅读模式
从xorg-server 1.5后,如果用了evdev,xorg.conf基本不用配置了。但是synaptics的scroll等一系列touch pad的特有功能,默认是没有了。很不方便。
有什么方便的方法,来恢复touch pad的这些功能,有没有fdi的policy?
请指导,谢谢。
发表于 2009-5-18 09:23:33 | 显示全部楼层
Post by blackwhite;1988428
从xorg-server 1.5后,如果用了evdev,xorg.conf基本不用配置了。但是synaptics的scroll等一系列touch pad的特有功能,默认是没有了。很不方便。
有什么方便的方法,来恢复touch pad的这些功能,有没有fdi的policy?
请指导,谢谢。

有fdi的policy的,你可以看arch wiki上的触摸版介绍文章。

我就是混用的,启用了hal,同时xorg.conf里的设置也生效。
  1. # /etc/X11/xorg.conf (xorg X Window System server configuration file)
  2. #
  3. # This file was generated by dexconf, the Debian X Configuration tool, using
  4. # values from the debconf database.
  5. Section "ServerLayout"
  6.         Identifier     "aticonfig Layout"
  7.         Screen      0  "aticonfig-Screen[0]-0" 0 0
  8.         Screen         "aticonfig-Screen[0]-1" Above "aticonfig-Screen[0]-0"
  9.         [color="Red"]InputDevice    "Touchpad"[/color]
  10.         InputDevice    "Configured Mouse"
  11. EndSection
  12. Section "Files"
  13. # Multiple FontPath entries are allowed (which are concatenated together),
  14. # as well as specifying multiple comma-separated entries in one FontPath
  15. # command (or a combination of both methods)
  16.         FontPath     "/usr/share/fonts/droid"
  17.         FontPath     "/usr/share/fonts/TTF"
  18. EndSection
  19. Section "Module"
  20.         Load  "dbe"
  21.        SubSection  "extmod"
  22.          Option    "omit xfree86-dga"
  23.        EndSubSection
  24.         Load  "int10"
  25.         Load  "record"
  26. EndSection
  27. Section "ServerFlags"
  28.         Option            "AIGLX" "On"
  29.         Option            "AllowDeactivateGrabs" "on"
  30. EndSection
  31. Section "InputDevice"
  32.        Identifier "Configured Mouse"
  33.        Driver "mouse"
  34.        Option "Name" "Razer Diamondback Optical Mouse"
  35.        Option "Device" "/dev/input/mice"
  36.        Option "CorePointer"
  37.        Option "Resolution" "1600"
  38.        Option "Buttons" "9"
  39.        Option "Protocol" "ExplorerPS/2"
  40.        Option "ZAxisMapping" "4 5"
  41.        Option "ButtonMapping" "1 2 3 6 7 8 9"
  42.        Option "one page back" "4"
  43.        Option "one page forward" "5"
  44. EndSection
  45. [color="Red"]Section "InputDevice"
  46.         Identifier  "Touchpad"
  47.         Driver      "synaptics"
  48.         Option            "Device" "/dev/input/mouse0"
  49.         Option            "Protocol" "auto-dev"
  50.         Option            "LeftEdge" "1700"
  51.         Option            "RightEdge" "5300"
  52.         Option            "TopEdge" "1700"
  53.         Option            "BottomEdge" "4200"
  54.         Option            "FingerLow" "25"
  55.         Option            "FingerHigh" "30"
  56.         Option            "MaxTapTime" "0"
  57.         Option            "MaxTapMove" "220"
  58.         Option            "VertScrollDelta" "100"
  59.         Option            "MinSpeed" "0.06"
  60.         Option            "MaxSpeed" "0.12"
  61.         Option            "AccelFactor" "0.0010"
  62.         Option            "SHMConfig" "on"
  63.         Option  "VertEdgeScroll"  "1"        #垂直方向滚动
  64.         Option  "HorizEdgeScroll" "1"        #水平方向滚动
  65.         Option            "CornerCoasting" "1"        #如果手指滑动到最边界是否屏幕继续滚动
  66.         Option            "CircularScrolling" "on"
  67.         Option            "CircScrollTrigger" "0"
  68. EndSection[/color]
  69. Section "Monitor"
  70.         Identifier   "aticonfig-Monitor[0]-0"
  71.         Option            "VendorName" "ATI Proprietary Driver"
  72.         Option            "ModelName" "Generic Autodetecting Monitor"
  73.         Option            "DPMS" "true"
  74. EndSection
  75. Section "Monitor"
  76.         Identifier   "aticonfig-Monitor[0]-1"
  77.         Option            "VendorName" "ATI Proprietary Driver"
  78.         Option            "ModelName" "Generic Autodetecting Monitor"
  79.         Option            "DPMS" "true"
  80. EndSection
  81. Section "Device"
  82.         Identifier  "aticonfig-Device[0]-0"
  83.         Driver      "fglrx"
  84.         Option            "VideoOverlay"       "on"
  85.         BusID       "PCI:1:0:0"
  86. EndSection
  87. Section "Device"
  88.         Identifier  "aticonfig-Device[0]-1"
  89.         Driver      "fglrx"
  90.         Option            "VideoOverlay"       "on"
  91.         BusID       "PCI:1:0:0"
  92.         Screen      1
  93. EndSection
  94. Section "Screen"
  95.         Identifier "aticonfig-Screen[0]-0"
  96.         Device     "aticonfig-Device[0]-0"
  97.         Monitor    "aticonfig-Monitor[0]-0"
  98.         DefaultDepth     24
  99.         SubSection "Display"
  100.                 Viewport   0 0
  101.                 Depth     24
  102.         EndSubSection
  103. EndSection
  104. Section "Screen"
  105.         Identifier "aticonfig-Screen[0]-1"
  106.         Device     "aticonfig-Device[0]-1"
  107.         Monitor    "aticonfig-Monitor[0]-1"
  108.         DefaultDepth     24
  109.         SubSection "Display"
  110.                 Viewport   0 0
  111.                 Depth     24
  112.         EndSubSection
  113. EndSection
  114. Section "DRI"
  115.         Group        0
  116.         Mode         0666
  117. EndSection
  118. Section "Extensions"
  119.        ## For Textured2d and Textured XRender
  120.        ### Listed in thread, but not used according to log on Xorg 7.2
  121.        #Option      "Damage" "On"
  122.         Option            "RENDER" "On"
  123.        ## For Compiz
  124.         Option            "Composite" "On"
  125.        ## Should be loaded automatically, but for good measure
  126.         Option            "XVideo" "On"
  127. EndSection
复制代码

请注意红色的部分。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-18 10:04:53 | 显示全部楼层
谢谢你提供的方法。
回复 支持 反对

使用道具 举报

发表于 2009-5-19 01:12:27 | 显示全部楼层
我用的 policy

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <deviceinfo version="0.2">
  3.   <device>
  4.     <match key="info.capabilities" contains="input.touchpad">
  5.         <merge key="input.x11_driver" type="string">synaptics</merge>
  6.         <!-- Arbitrary options can be passed to the driver using
  7.              the input.x11_options property since xorg-server-1.5. -->
  8.         <!-- EXAMPLES:
  9.         Switch on shared memory, enables the driver to be configured at runtime
  10.         <merge key="input.x11_options.SHMConfig" type="string">true</merge>

  11.         Maximum movement of the finger for detecting a tap
  12.         <merge key="input.x11_options.MaxTapMove" type="string">2000</merge>

  13.         Enable vertical scrolling when dragging along the right edge
  14.         <merge key="input.x11_options.VertEdgeScroll" type="string">true</merge>

  15.         Enable vertical scrolling when dragging with two fingers anywhere on the touchpad
  16.         <merge key="input.x11_options.VertTwoFingerScroll" type="string">true</merge>

  17.         Enable horizontal scrolling when dragging with two fingers anywhere on the touchpad
  18.         <merge key="input.x11_options.HorizTwoFingerScroll" type="string">true</merge>

  19.         If on, circular scrolling is used
  20.         <merge key="input.x11_options.CircularScrolling" type="string">true</merge>

  21.         For other possible options, check CONFIGURATION DETAILS in synaptics man page
  22.         -->
  23.         <merge key="input.x11_options.SHMConfig" type="string">true</merge>
  24.         <merge key="input.x11_options.TapButton1" type="string">1</merge>
  25.         <merge key="input.x11_options.TapButton2" type="string">2</merge>
  26.         <merge key="input.x11_options.TapButton3" type="string">3</merge>
  27.     </match>
  28.   </device>
  29. </deviceinfo>
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-19 03:34:28 | 显示全部楼层
谢谢sunmoon1997。回头我试试你的fdi的policy。刚才看了arch的wiki,知道大概怎么回事情了。
回复 支持 反对

使用道具 举报

发表于 2009-5-19 09:01:07 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表