LinuxSir.cn,穿越时空的Linuxsir!

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

笔记本上的触摸板不能使用

[复制链接]
发表于 2011-8-22 14:40:55 | 显示全部楼层 |阅读模式
/etc/X11/xorg.conf
  1. # nvidia-settings: X configuration file generated by nvidia-settings
  2. # nvidia-settings:  version 280.13  (buildmeister@swio-display-x86-rhel47-05.nvidia.com)  Wed Jul 27 17:18:42 PDT 2011

  3. Section "ServerLayout"
  4.     Identifier     "Layout0"
  5.     Screen      0  "Screen0" 0 0
  6.     InputDevice    "Keyboard0" "CoreKeyboard"
  7.     InputDevice    "Mouse0" "CorePointer"
  8.     Option         "Xinerama" "0"
  9. EndSection

  10. Section "Files"
  11. EndSection

  12. Section "InputDevice"

  13.     # generated from default
  14.     Identifier     "Mouse0"
  15.     Driver         "mouse"
  16.     Option         "Protocol" "auto"
  17.     Option         "Device" "/dev/psaux"
  18.     Option         "Emulate3Buttons" "no"
  19.     Option         "ZAxisMapping" "4 5"
  20. EndSection

  21. Section "InputDevice"
  22.     # generated from default
  23.     Identifier     "Keyboard0"
  24.     Driver         "kbd"
  25. EndSection

  26. Section "Monitor"
  27.     Identifier     "Monitor0"
  28.     VendorName     "Unknown"
  29.     ModelName      "AUO"
  30.     HorizSync       30.0 - 75.0
  31.     VertRefresh     60.0
  32.     Option         "DPMS"
  33. EndSection

  34. Section "Device"
  35.     Identifier     "Device0"
  36.     Driver         "nvidia"
  37.     VendorName     "NVIDIA Corporation"
  38.     BoardName      "GeForce 9300M GS"
  39.     Option         "Nologo" "true"
  40. EndSection

  41. Section "Screen"
  42.     Identifier     "Screen0"
  43.     Device         "Device0"
  44.     Monitor        "Monitor0"
  45.     DefaultDepth    24
  46.     Option         "TwinView" "0"
  47.     Option         "TwinViewXineramaInfoOrder" "DFP-0"
  48.     Option         "metamodes" "nvidia-auto-select +0+0"
  49.     SubSection     "Display"
  50.         Depth       24
  51.     EndSubSection
  52. EndSection
复制代码


/etc/X11/xorg.conf.d/10-evdev.conf

  1. #
  2. # Catch-all evdev loader for udev-based systems
  3. # We don't simply match on any device since that also adds accelerometers
  4. # and other devices that we don't really want to use. The list below
  5. # matches everything but joysticks.

  6. Section "InputClass"
  7.         Identifier "evdev pointer catchall"
  8.         MatchIsPointer "on"
  9.         MatchDevicePath "/dev/input/event*"
  10.         Driver "evdev"
  11. EndSection

  12. Section "InputClass"
  13.         Identifier "evdev keyboard catchall"
  14.         MatchIsKeyboard "on"
  15.         MatchDevicePath "/dev/input/event*"
  16.         Driver "evdev"
  17. EndSection

  18. Section "InputClass"
  19.         Identifier "evdev touchpad catchall"
  20.         MatchIsTouchpad "on"
  21.         MatchDevicePath "/dev/input/event*"
  22.         Driver "evdev"
  23. EndSection

  24. Section "InputClass"
  25.         Identifier "evdev tablet catchall"
  26.         MatchIsTablet "on"
  27.         MatchDevicePath "/dev/input/event*"
  28.         Driver "evdev"
  29. EndSection

  30. Section "InputClass"
  31.         Identifier "evdev touchscreen catchall"
  32.         MatchIsTouchscreen "on"
  33.         MatchDevicePath "/dev/input/event*"
  34.         Driver "evdev"
  35. EndSection
复制代码

/etc/X11/xorg.conf.d/10-synaptics.conf

  1. Section "InputClass"
  2.         Identifier "touchpad catchall"
  3.         Driver "synaptics"
  4.         MatchDevicePath "/dev/input/event8"
  5.         MatchIsTouchpad "on"
  6.         Option "TapButton1" "1"
  7.         Option "TapButton2" "2"
  8.         Option "TapButton3" "3"
  9. EndSection
复制代码

sudo modprobe -r psmouse
sudo modprobe psmouse proto=imps
上面这种方法没有效果,大概是拆过一次电脑之后出现的故障,不过X。log能检测到触摸板,硬件应该没有问题吧=.=
请问这应该怎么设置呢。。。
发表于 2011-8-22 15:10:19 | 显示全部楼层
囧,触摸板你居然在3个位置都做配置....
你确认 MatchDevicePath "/dev/input/event[color="Red"]8" ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-8-22 16:49:54 | 显示全部楼层
文件设置之前没有问题,Xorg中没有配置触摸5板。好像和取消了hal也有关系?
event8是写错了>_<本来是event*(event*也不能用

等晚上把xorg.log贴上来大家看一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-8-22 22:23:14 | 显示全部楼层
  1. [   217.382] (II) Initializing built-in extension XFIXES
  2. [   217.382] (II) Initializing built-in extension RENDER
  3. [   217.382] (II) Initializing built-in extension RANDR
  4. [   217.382] (II) Initializing built-in extension COMPOSITE
  5. [   217.382] (II) Initializing built-in extension DAMAGE
  6. [   217.385] (II) Initializing extension GLX
  7. [   217.527] (II) config/udev: Adding input device Power Button (/dev/input/event5)
  8. [   217.527] (**) Power Button: Applying InputClass "evdev keyboard catchall"
  9. [   217.527] (II) LoadModule: "evdev"
  10. [   217.527] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
  11. [   217.528] (II) Module evdev: vendor="X.Org Foundation"
  12. [   217.528]         compiled for 1.10.0, module version = 2.6.0
  13. [   217.528]         Module class: X.Org XInput Driver
  14. [   217.528]         ABI class: X.Org XInput driver, version 12.2
  15. [   217.528] (II) Using input driver 'evdev' for 'Power Button'
  16. [   217.528] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
  17. [   217.528] (**) Power Button: always reports core events
  18. [   217.528] (**) Power Button: Device: "/dev/input/event5"
  19. [   217.528] (--) Power Button: Found keys
  20. [   217.528] (II) Power Button: Configuring as keyboard
  21. [   217.528] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input5/event5"
  22. [   217.528] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
  23. [   217.528] (**) Option "xkb_rules" "evdev"
  24. [   217.528] (**) Option "xkb_model" "evdev"
  25. [   217.528] (**) Option "xkb_layout" "us"
  26. [   217.561] (II) config/udev: Adding input device Video Bus (/dev/input/event6)
  27. [   217.561] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
  28. [   217.561] (II) Using input driver 'evdev' for 'Video Bus'
  29. [   217.561] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
  30. [   217.561] (**) Video Bus: always reports core events
  31. [   217.561] (**) Video Bus: Device: "/dev/input/event6"
  32. [   217.561] (--) Video Bus: Found keys
  33. [   217.561] (II) Video Bus: Configuring as keyboard
  34. [   217.561] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:06/LNXVIDEO:01/input/input6/event6"
  35. [   217.561] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD)
  36. [   217.561] (**) Option "xkb_rules" "evdev"
  37. [   217.561] (**) Option "xkb_model" "evdev"
  38. [   217.561] (**) Option "xkb_layout" "us"
  39. [   217.583] (II) config/udev: Adding input device Power Button (/dev/input/event2)
  40. [   217.583] (**) Power Button: Applying InputClass "evdev keyboard catchall"
  41. [   217.583] (II) Using input driver 'evdev' for 'Power Button'
  42. [   217.583] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
  43. [   217.583] (**) Power Button: always reports core events
  44. [   217.583] (**) Power Button: Device: "/dev/input/event2"
  45. [   217.583] (--) Power Button: Found keys
  46. [   217.583] (II) Power Button: Configuring as keyboard
  47. [   217.583] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input2/event2"
  48. [   217.583] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
  49. [   217.583] (**) Option "xkb_rules" "evdev"
  50. [   217.583] (**) Option "xkb_model" "evdev"
  51. [   217.583] (**) Option "xkb_layout" "us"
  52. [   217.583] (II) config/udev: Adding input device Lid Switch (/dev/input/event3)
  53. [   217.583] (II) No input driver/identifier specified (ignoring)
  54. [   217.584] (II) config/udev: Adding input device Sleep Button (/dev/input/event4)
  55. [   217.584] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
  56. [   217.584] (II) Using input driver 'evdev' for 'Sleep Button'
  57. [   217.584] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
  58. [   217.584] (**) Sleep Button: always reports core events
  59. [   217.584] (**) Sleep Button: Device: "/dev/input/event4"
  60. [   217.584] (--) Sleep Button: Found keys
  61. [   217.584] (II) Sleep Button: Configuring as keyboard
  62. [   217.584] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input4/event4"
  63. [   217.584] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD)
  64. [   217.584] (**) Option "xkb_rules" "evdev"
  65. [   217.584] (**) Option "xkb_model" "evdev"
  66. [   217.584] (**) Option "xkb_layout" "us"
  67. [   217.587] (II) config/udev: Adding input device USB Webcam (/dev/input/event11)
  68. [   217.587] (**) USB Webcam: Applying InputClass "evdev keyboard catchall"
  69. [   217.587] (II) Using input driver 'evdev' for 'USB Webcam'
  70. [   217.587] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
  71. [   217.587] (**) USB Webcam: always reports core events
  72. [   217.587] (**) USB Webcam: Device: "/dev/input/event11"
  73. [   217.587] (--) USB Webcam: Found keys
  74. [   217.587] (II) USB Webcam: Configuring as keyboard
  75. [   217.587] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4:1.0/input/input11/event11"
  76. [   217.587] (II) XINPUT: Adding extended input device "USB Webcam" (type: KEYBOARD)
  77. [   217.587] (**) Option "xkb_rules" "evdev"
  78. [   217.587] (**) Option "xkb_model" "evdev"
  79. [   217.587] (**) Option "xkb_layout" "us"
  80. [   217.588] (II) config/udev: Adding input device HDA Digital PCBeep (/dev/input/event7)
  81. [   217.588] (II) No input driver/identifier specified (ignoring)
  82. [   217.588] (II) config/udev: Adding input device HDA Intel Mic (/dev/input/event8)
  83. [   217.588] (II) No input driver/identifier specified (ignoring)
  84. [   217.589] (II) config/udev: Adding input device HDA Intel Headphone (/dev/input/event9)
  85. [   217.589] (II) No input driver/identifier specified (ignoring)
  86. [   217.591] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/event1)
  87. [   217.591] (**) USB Optical Mouse: Applying InputClass "evdev pointer catchall"
  88. [   217.591] (II) Using input driver 'evdev' for 'USB Optical Mouse'
  89. [   217.591] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
  90. [   217.591] (**) USB Optical Mouse: always reports core events
  91. [   217.591] (**) USB Optical Mouse: Device: "/dev/input/event1"
  92. [   217.591] (--) USB Optical Mouse: Found 9 mouse buttons
  93. [   217.591] (--) USB Optical Mouse: Found scroll wheel(s)
  94. [   217.591] (--) USB Optical Mouse: Found relative axes
  95. [   217.591] (--) USB Optical Mouse: Found x and y relative axes
  96. [   217.591] (II) USB Optical Mouse: Configuring as mouse
  97. [   217.591] (II) USB Optical Mouse: Adding scrollwheel support
  98. [   217.591] (**) USB Optical Mouse: YAxisMapping: buttons 4 and 5
  99. [   217.591] (**) USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
  100. [   217.591] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.0/usb5/5-2/5-2:1.0/input/input1/event1"
  101. [   217.591] (II) XINPUT: Adding extended input device "USB Optical Mouse" (type: MOUSE)
  102. [   217.591] (II) USB Optical Mouse: initialized for relative axes.
  103. [   217.591] (**) USB Optical Mouse: (accel) keeping acceleration scheme 1
  104. [   217.591] (**) USB Optical Mouse: (accel) acceleration profile 0
  105. [   217.591] (**) USB Optical Mouse: (accel) acceleration factor: 2.000
  106. [   217.591] (**) USB Optical Mouse: (accel) acceleration threshold: 4
  107. [   217.592] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/mouse0)
  108. [   217.592] (II) No input driver/identifier specified (ignoring)
  109. [   217.596] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
  110. [   217.596] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
  111. [   217.596] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
  112. [   217.596] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
  113. [   217.597] (**) AT Translated Set 2 keyboard: always reports core events
  114. [   217.597] (**) AT Translated Set 2 keyboard: Device: "/dev/input/event0"
  115. [   217.597] (--) AT Translated Set 2 keyboard: Found keys
  116. [   217.597] (II) AT Translated Set 2 keyboard: Configuring as keyboard
  117. [   217.597] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
  118. [   217.597] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
  119. [   217.597] (**) Option "xkb_rules" "evdev"
  120. [   217.597] (**) Option "xkb_model" "evdev"
  121. [   217.597] (**) Option "xkb_layout" "us"
  122. [   217.597] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event10)
  123. [   217.597] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
  124. [   217.597] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
  125. [   217.597] (II) LoadModule: "synaptics"
  126. [   217.597] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
  127. [   217.598] (II) Module synaptics: vendor="X.Org Foundation"
  128. [   217.598]         compiled for 1.10.2, module version = 1.4.1
  129. [   217.598]         Module class: X.Org XInput Driver
  130. [   217.598]         ABI class: X.Org XInput driver, version 12.2
  131. [   217.598] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
  132. [   217.598] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
  133. [   217.598] (**) SynPS/2 Synaptics TouchPad: always reports core events
  134. [   217.598] (**) Option "Device" "/dev/input/event10"
  135. [   217.660] (--) SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5472
  136. [   217.660] (--) SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4448
  137. [   217.660] (--) SynPS/2 Synaptics TouchPad: pressure range 0 - 255
  138. [   217.660] (--) SynPS/2 Synaptics TouchPad: finger width range 0 - 15
  139. [   217.660] (--) SynPS/2 Synaptics TouchPad: buttons: left right
  140. [   217.660] (**) Option "TapButton1" "1"
  141. [   217.660] (**) Option "TapButton2" "2"
  142. [   217.660] (**) Option "TapButton3" "3"
  143. [   217.766] (--) SynPS/2 Synaptics TouchPad: touchpad found
  144. [   217.766] (**) SynPS/2 Synaptics TouchPad: always reports core events
  145. [   217.873] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input10/event10"
  146. [   217.873] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD)
  147. [   217.873] (**) SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
  148. [   217.873] (**) SynPS/2 Synaptics TouchPad: MaxSpeed is now 1.75
  149. [   217.873] (**) SynPS/2 Synaptics TouchPad: AccelFactor is now 0.040
  150. [   217.873] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
  151. [   217.873] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
  152. [   217.873] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
  153. [   217.873] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
  154. [   217.874] (--) SynPS/2 Synaptics TouchPad: touchpad found
  155. [   217.874] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse1)
  156. [   217.874] (II) No input driver/identifier specified (ignoring)
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-8-23 13:14:41 | 显示全部楼层
Update:发现只要不插外接USB鼠标触摸板就能正常使用,看来是udev加载顺序的问题。
SUBSYSTEMS=="input",ATTRS{name}=="USB Optical Mouse",SYMLINK+="input/mouse1"
SUBSYSTEMS=="input",ATTRS{name}=="SynPS/2 Synaptics TouchPad",SYMLINK+="input/mouse0"

设定udev规则解决
回复 支持 反对

使用道具 举报

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

本版积分规则

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