Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1757335
  • 博文数量: 100
  • 博客积分: 10122
  • 博客等级: 上将
  • 技术积分: 4092
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-04 20:28
文章分类

全部博文(100)

文章存档

2010年(2)

2009年(28)

2008年(70)

我的朋友

分类: LINUX

2008-10-01 06:31:23

从 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 了。

阅读(1649) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~