免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1035 | 回复: 0

xorg input hot-plugging 与 synaptics 配置 [复制链接]

论坛徽章:
0
发表于 2008-10-01 06:31 |显示全部楼层
从 xorg 1.4开始 xorg server就支持 Input hotplug了,在 Linux 下他通过HAL自动配置可以识别的输入设备。比如我的xorg.conf文件就已经简化为了:
$ cat /etc/X11/xorg.conf
Section "ServerLayout"
    Identifier     "single head configuration"
    Screen      0  "Screen0" 0 0
EndSection
Section "Files"
    ModulePath   "/usr/lib/xorg/modules/extensions/nvidia"
    ModulePath   "/usr/lib/xorg/modules"
EndSection
Section "Device"
    Identifier  "NVIDIA"
    Driver      "nvidia"
EndSection
Section "Screen"
    Identifier "Screen0"
    Device     "NVIDIA"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection
那现在如何配置 input devices 呢,比如配置 synaptics Touchpad。 gsynaptics 需要打开 synaptics 的 SHMConfig 选项,才能支持动态配置。首先,默认的HAL配置文件有如下的配置:
$ cat /usr/share/hal/fdi/policy/20thirdparty/10-synaptics.fdi
  
   
      
    synaptics
      
      
    synaptics
      
      
          synaptics
      
   
  
现在需要增加一个选项,直接修改上面的这个文件是不值得推荐的,应该创建另外一个配置文件,比如:
$ cat /etc/hal/fdi/policy/10-x11-input.fdi
  
  
   
      
        on  
      
   
重新载入 haldaemo 配置即生效,重启 xorg 就可以使用 gsynaptics 配置 Touchpad 了。
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8057/showart_1271008.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP