LinuxSir.cn,穿越时空的Linuxsir!

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

xorg.conf中鼠标取得到底是mouse还是mouse_drv

[复制链接]
发表于 2008-10-31 12:43:37 | 显示全部楼层 |阅读模式
我在syslog中看到如下两行
loadmodule: mouse
......./mouse_drv.so

谢谢
发表于 2008-10-31 12:52:16 | 显示全部楼层
  1. man xorg.conf
  2. /mouse + ENTER   ||   /mouse_drv + ENTER
复制代码
回复 支持 反对

使用道具 举报

发表于 2008-10-31 18:41:43 | 显示全部楼层
xorg加上hal,直接让hal接管
xorg.conf里面关于inputdevice的全都删掉
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-1 09:25:15 | 显示全部楼层
Post by heejun;1902071
xorg加上hal,直接让hal接管
xorg.conf里面关于inputdevice的全都删掉


如何让hal接管?谢谢
回复 支持 反对

使用道具 举报

发表于 2008-11-1 14:22:55 | 显示全部楼层
添加hal标签
+ + xorg                      : Build the Xorg X server (HIGHLY RECOMMENDED)
kernel@fairland:/usr/portage/x11-base$ sudo emerge -av  xorg-server

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] x11-base/xorg-server-1.5.2  USE="dmx dri hal ipv6 kdrive nptl sdl xorg -3dfx -debug -minimal" INPUT_DEVICES="evdev keyboard mouse synaptics -acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 -elographics -fpit -hyperpen -jamstudio -joystick -magellan -microtouch -mutouch -palmax -penmount -spaceorb -summa -tek4957 -ur98 -vmmouse -void -wacom" VIDEO_CARDS="nvidia vesa -apm -ark -ast -chips -cirrus -cyrix -dummy -epson -fbdev -fglrx -geode -glint -i128 -i740 (-impact) -imstt -intel -mach64 -mga -neomagic (-newport) -nsc -nv -r128 -radeon -radeonhd -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) (-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vermilion -vga -via -vmware -voodoo -xgi" 0 kB
然后xorg.conf里面删掉所有InputDevice的部分
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder3)  Thu Feb 14 18:20:37 PST 2008

# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder3)  Thu Oct  4 10:34:46 PDT 2007
#
#Section "InputDevice"
#    Identifier     "Logitech Mouse"
#    Driver         "mouse"
#    Option         "rotocol"           "ExplorerPS/2"
#    Option         "Device"             "/dev/input/mice"
#    Option         "CorePointer"
#    Option         "Buttons"            "7"
#    Option         "ZAxisMapping"       "4 5"
#    Option         "ButtonMapping"      "1  2  3  6  7"
#    Option         "HWCursor"           "false"
#EndSection
#Section "InputDevice"
#    Identifier     "Color Mouse"
#    Driver         "mouse"
#    Option         "Device"          "/dev/input/mice"
#    Option         "SendCoreEvents"  "true"
#    Option         "rotocol"        "IMPS/2"
#    Option         "Emulate3Buttons" "false"
#    Option         "ZAxisMapping"    "4 5"
#    Option         "Buttons"         "5"
#EndSection
#Section "InputDevice"
#    Identifier     "Microsoft Mouse"
#    Driver         "mouse"
#    Option         "Device"          "/dev/input/mice"
#    Option         "SendCoreEvents"  "true"
#    Option         "rotocol"        "IMPS/2"
#    Option         "Emulate3Buttons" "false"
#    Option         "ZAxisMapping"    "4 5"
#    Option         "Buttons"         "5"
#EndSection

#Section "InputDevice"
#    Identifier     "Color Mouse"
#    Driver         "evdev"
#    Option         "Device" "/dev/input/color"
#    Option         "SendCoreEvents" "true"
#    Option         "rotocol" "IMPS/2"
#    Option         "Emulate3Buttons" "false"
#    Option         "ZAxisMapping" "4 5"
#    Option         "Buttons" "5"
#EndSection

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0"                      0 0
#    InputDevice    "Keyboard0"              "CoreKeyboard"
#    InputDevice    "Logitech Mouse"         "CorePointer"
#    InputDevice    "Synaptics Touchpad"
#    Option         "AllowMouseOpenFail"     "true"
    Option         "AIGLX"                   "true"
#    InputDevice    "Color Mouse"
#    Option         "blank time"          "5"  #blank the screen after 5 minutes
#    InputDevice    "Microsoft Mouse"      
#    Option         "standby time"        "10" #Turn off screen after 10 minutes
#    Option         "suspend time"        "20" #Full suspend after 20 minutes
#    Option         "off time"            "30" #Turn off after half an hour
EndSection

Section "Files"
    ModulePath      "/usr/lib/xorg/modules"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/corefonts"
    FontPath        "/usr/share/fonts/terminus"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "/usr/share/fonts/ttf-bitstream-vera"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/zh_CN"
    FontPath        "/usr/share/fonts/vistafont"
    FontPath        "/usr/share/fonts/wqy-bitmapfont"
EndSection

Section "Module"
    Load           "dbe"
    SubSection     "extmod"
        Option         "omit xfree86-dga"
    EndSubSection
    Load           "freetype"
    Load           "glx"
                Load           "dri"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
#Option         "AutoAddDevices"               "false" # Disable hal backend for xserver
EndSection

#Section "InputDevice"
#    Identifier     "Logitech Mouse"
#    Driver         "evdev"
#    Option         "Device"                       "/dev/input/logitech"
#    Option         "Name"                         "Logitech Logitech USB Optical Mouse"
#    Option         "CorePointer"
#    Option         "Resolution"                   "1000"
#    Option         "Emulate3Buttons"              "false"
#EndSection


#Section "InputDevice"
#    Identifier     "Keyboard0"
#    Driver         "kbd"
#EndSection

#Section "InputDevice"
#    Identifier     "Synaptics Touchpad"
#    Driver         "synaptics"
#    Option         "SendCoreEvents"                "true"
#    #Option         "SHMConfig"                     "on"
#    Option         "Device"                        "/dev/psaux"
#    Option         "rotocol"                      "auto-dev"
#    Option         "HorizScrollDelta"              "0"
#EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "AUO"
    HorizSync       30.0 - 75.0
    VertRefresh     60.0
    Option         "DPMS"                          "True"
    Option         "DPI"                           "107 x 107"
EndSection

Section "Device"
    Identifier     "Videocard0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 8600M GS"
    Option         "ixmapCacheSize"                "2000000"
    Option         "OnDemandVBlankInterrupts"       "True"
                Option         "BackingStore"                   "True"
    Option         "RenderAccel"                    "True"
    Option         "AllowGLXWithComposite"          "True"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Videocard0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "NoLogo"                         "True"
    Option         "ixmapCacheSize"                "2000000"
    Option         "AddARGBGLXVisuals"              "True"
    Option         "RenderAccel"                    "True"
    Option         "AllowGLXWithComposite"          "True"
                Option         "AllowindirectPixmaps"           "True"
                Option         "UseCompositeWrapper"            "True"
    Option         "TripleBuffer"                   "True"
    Option         "AllowSHMPixmaps"                "0"
    Option         "TwinView"                       "0"
    Option         "metamodes"                      "1280x800 +0+0;nvidia-auto-select +0+0"
    Option         "NvAGP"                          "1"
    Option         "BackingStore"                   "false"
    #Option         "BackingStore"                   "true"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Extensions"
    Option         "DAMAGE"                         "Enable"
    Option         "RENDER"                         "Enable"
    Option         "Composite"                      "Enable"
EndSection
回复 支持 反对

使用道具 举报

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

本版积分规则

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