LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]笔记本.U盘可以自动挂载,USB鼠标不能用,触摸板可以正常使用

[复制链接]
发表于 2008-8-9 17:12:03 | 显示全部楼层 |阅读模式
是不是跟内核选项有关,还是要加载驱动?
xorg.conf


  1. Section "ServerLayout"
  2.         Identifier     "X.org Configured"
  3.         Screen      0  "Screen0" 0 0
  4.         InputDevice    "Mouse0" "CorePointer"
  5.         InputDevice    "Keyboard0" "CoreKeyboard"
  6.         InputDevice    "Touchpad"
  7. EndSection

  8. Section "Files"
  9.         RgbPath      "/usr/share/X11/rgb"
  10.         ModulePath   "/usr/lib/xorg/modules"
  11.         FontPath     "/usr/share/fonts/misc/"
  12.         FontPath     "/usr/share/fonts/TTF/"
  13.         FontPath     "/usr/share/fonts/OTF"
  14.         FontPath     "/usr/share/fonts/Type1/"
  15.         FontPath     "/usr/share/fonts/100dpi/"
  16.         FontPath     "/usr/share/fonts/75dpi/"
  17. EndSection

  18. Section "Module"
  19.         Load  "glx"
  20.         Load  "extmod"
  21.         Load  "xtrap"
  22.         Load  "record"
  23.         Load  "GLcore"
  24.         Load  "dbe"
  25.         Load  "dri"
  26.         Load  "freetype"
  27.         Load  "type1"
  28. EndSection

  29. Section "InputDevice"
  30.         Identifier  "Keyboard0"
  31.         Driver      "kbd"
  32.         Option            "XkbModel" "pc101"
  33.         Option            "XkbLayout" "us"
  34. EndSection

  35. Section "InputDevice"
  36.         Identifier  "Mouse0"
  37.         Driver      "mouse"
  38.         Option            "Protocol" "PS/2"
  39.         Option            "Emulate3Buttons"
  40.         Option            "Device" "/dev/input/mice"
  41.         Option            "ZAxisMapping" "4 5"
  42. EndSection

  43. Section "InputDevice"
  44.     Identifier "Touchpad"
  45.     Driver "synaptics"
  46.     Option "Device" "/dev/input/mouse1"
  47.     Option "Protocol" "auto-dev"
  48.     Option "Emulate3Buttons" "true"
  49.     Option "SendCoreEvents"
  50.     Option "LeftEdge" "80"
  51.     Option "RightEdge" "940"
  52.     Option "TopEdge" "130"
  53.     Option "BottomEdge" "700"
  54.     Option "MinSpeed" "000.8"
  55.     Option "MaxSpeed" "001"
  56.     Option "AccelFactor" "0.010"
  57.     Option "SHMConfig" "true"
  58.     Option "CircScrollDelta" "0.05"
  59.     Option "VertEdgeScroll" "true"
  60.     Option "VertScrollDelta" "100"
  61.     Option "RTCornerButton" "3"
  62. EndSection


  63. Section "Monitor"
  64.         #DisplaySize          260   160        # mm
  65.         Identifier   "Monitor0"
  66.         VendorName   "LCD"
  67.         ModelName    "58eb"
  68.         Option             "DPMS"
  69.         HorizSync     49.68-83.46
  70.         VertRefresh   60.0-60.0
  71.         Modeline     "1280x800_60.0" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
  72. EndSection

  73. Section "Device"
  74.         ### Available Driver options are:-
  75.         ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
  76.         ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
  77.         ### [arg]: arg optional
  78.         #Option     "NoAccel"                    # [<bool>]
  79.         #Option     "SWcursor"                   # [<bool>]
  80.         #Option     "ColorKey"                   # <i>
  81.         #Option     "CacheLines"                 # <i>
  82.         #Option     "Dac6Bit"                    # [<bool>]
  83.         #Option     "DRI"                        # [<bool>]
  84.         #Option     "NoDDC"                      # [<bool>]
  85.         #Option     "ShowCache"                  # [<bool>]
  86.         #Option     "XvMCSurfaces"               # <i>
  87.         #Option     "PageFlip"                   # [<bool>]
  88.         Identifier  "Card0"
  89.         Driver      "i810"
  90.         VendorName  "Intel Corporation"
  91.         BoardName   "Mobile Integrated Graphics Controller"
  92.         BusID       "PCI:0:2:0"
  93.         Option            "XAANoOffscreenPixmaps" "true"
  94.         Option            "DRI" "true"
  95. EndSection

  96. Section "Screen"
  97.         Identifier "Screen0"
  98.         Device     "Card0"
  99.         Monitor    "Monitor0"
  100.         DefaultDepth 24
  101.         Option           "AddARGBGLXVisuals" "true"
  102.         SubSection "Display"
  103.                 Viewport   0 0
  104.                 Depth     24
  105.                 Modes "1280x800" "1024x768"
  106.         EndSubSection
  107. EndSection

  108. Section "DRI"
  109.         Mode 0666
  110. EndSection


  111. section "Extensions"
  112.         Option "Composite" "Enable"
  113. Endsection

复制代码
发表于 2008-8-9 17:20:41 | 显示全部楼层
USB鼠标?你看看内核配置里选了下面这个没有:
# USB Input Devices
#
CONFIG_USB_HID=y
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
# CONFIG_HID_FF is not set
# CONFIG_USB_HIDDEV is not set
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-9 17:23:45 | 显示全部楼层
Post by druggo;1884263
USB鼠标?你看看内核配置里选了下面这个没有:
# USB Input Devices
#
CONFIG_USB_HID=y
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
# CONFIG_HID_FF is not set
# CONFIG_USB_HIDDEV is not set
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y


谢谢...是的,内核配置里面有

  1. # USB Input Devices
  2. #
  3. CONFIG_USB_HID=y
  4. # CONFIG_USB_HIDINPUT_POWERBOOK is not set
  5. # CONFIG_USB_HIDDEV is not set
  6. CONFIG_USB_SUPPORT=y
  7. CONFIG_USB_ARCH_HAS_HCD=y
  8. CONFIG_USB_ARCH_HAS_OHCI=y
  9. CONFIG_USB_ARCH_HAS_EHCI=y
  10. CONFIG_USB=y
  11. # CONFIG_USB_DEBUG is not set

复制代码
回复 支持 反对

使用道具 举报

发表于 2008-8-9 18:28:48 | 显示全部楼层
CONFIG_INPUT_MOUSEDEV
选了没
回复 支持 反对

使用道具 举报

发表于 2008-8-9 18:31:56 | 显示全部楼层
InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Touchpad"

这里我好像用的是
        InputDevice    "Touchpad" "SendCoreEvents"

你再看看。
回复 支持 反对

使用道具 举报

发表于 2008-8-9 20:23:37 | 显示全部楼层
把 cat /dev/input/ 命令结果贴出来
回复 支持 反对

使用道具 举报

发表于 2008-8-9 21:09:49 | 显示全部楼层
关注中。(补字数)
回复 支持 反对

使用道具 举报

发表于 2008-8-10 07:51:45 | 显示全部楼层
应该是和配置文件有关系给你看看我的inputdivice
  1. # **********************************************************************
  2. # Core Pointer's InputDevice section
  3. # **********************************************************************
  4. Section "InputDevice"
  5.     Identifier         "Trackpoint"
  6.     Driver         "evdev"
  7.     Option      "Name"        "TPPS/2 IBM TrackPoint"
  8.     Option        "ChordMiddle"
  9.     Option        "EmulateWheel"        "true"
  10.     Option        "EmulateWheelButton"        "2"
  11.     Option      "EmulateWheelInertia"          "50"
  12.     Option      "EmulateWheelTimeOut"          "200"
  13.     Option      "EmulateWheelClickToo"         "true"
  14. #    Option      "ZAxisMapping" "4 5"
  15.     Option      "YAxisMapping" "4 5"
  16.     Option      "XAxisMapping" "6 7"
  17. EndSection
  18. Section "InputDevice"
  19.     Identifier        "Logitech MX1000"
  20.     Driver        "evdev"
  21.     Option        "Name"        "Logitech USB RECEIVER"
  22. EndSection
  23. Section "InputDevice"
  24.     Identifier        "Externel USB Mouse"
  25.     Driver        "mouse"
  26.     Option      "Device"        "/dev/psaux"
  27. EndSection
复制代码
应该是有多个的,你把我的贴上去看看能不能用,记住备份哦
如果不行就
  1. $ ls /dev/input/
复制代码
来看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-10 11:15:37 | 显示全部楼层
Post by maitr;1884289
CONFIG_INPUT_MOUSEDEV
选了没



# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
CONFIG_INPUT_MOUSEDEV_PSAUX=y
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1280
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=800
CONFIG_INPUT_JOYDEV=y
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-8-10 12:02:08 | 显示全部楼层
谢谢 forrest_zhang 提醒 ,用你的配置文件果然挂了
ls /dev/input/

  1. by-path  mice  mouse0
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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