AutoAddDevices and Adding Known Devices
Mark Depto
mdepto at yahoo.com
Sun Sep 23 06:16:15 PDT 2012
Hello Folks,
I am trying to manually configure a eGalax touchscreen using the evdev driver which is currently working great. The problem I am having is that allowing Xorg to autoconfigure the devices from udev results in ~100% cpu utilization as soon as the touchscreen is touched with the USB keyboard and mouse connected. I found a thread that this is a bug somewhere along the lines, but the the workaround is to use the "Option AutoAddDevices false". I have done this is and all is well, except for when I actually need to use a mouse or the keyboard while developing my applications. With AutoAddDevices set to off, I can't can't configure an InputClass to save my soul and I am all out of ideas. Would you have any insight how I could manually tell Xorg to use the keyboard and mouse when present?
My xorg.conf:
<code>
Section "ServerFlags"
Option "AutoAddDevices" "false"
EndSection
Section "ServerLayout"
Identifier "Touchscreen Configuration"
Screen "Screen0"
#InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "touchscreen0"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "built-ins"
EndSection
Section "Module"
Load "extmod"
Load "dbe"
Load "glx"
Load "dri"
Load "dri2"
Load "record"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "evdev"
Option "xkb_rules" "evdev"
Option "xkb_model" "pc105"
Option "xkb_layout" "us"
#Option "SendCoreEvents" "On"
EndSection
Section "InputClass"
Identifier "MouseAll"
Driver "evdev"
MatchIsPointer "On"
MatchDevicePath "/dev/input/event*"
MatchProduct "Logitech Optical USB Mouse"
EndSection
# This works well but requires AutoAddDevices to be off
Section "InputDevice"
Identifier "touchscreen0"
Driver "evdev"
#Option "CorePointer"
Option "Device" "/dev/input/touchscreen0"
Option "DeviceName" "touchscreen0"
#Option "Emulate3Buttons"
#Option "Emulate3Timeout" "50"
Option "SwapAxes" "On"
Option "InvertX" "On"
Option "InvertY" "On"
#Option "Rotate" "CW"
#Option "Calibration" "48 757 34 530"
#Option "Calibrate" "1"
#Option "SendCoreEvents" "On"
#Option "ReportingMode" "Raw"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Xenarc"
ModelName "Monitor Model"
#DisplaySize 340 270
#HorizSync 31.0 - 83.0
#VertRefresh 56.0 - 76.0
#Option "dpms"
EndSection
Section "Device"
Identifier "Card0"
Driver "radeon"
VendorName "ATI Technologies Inc"
BoardName "RV280 [Radeon 9200]"
BusID "PCI:0:16:0"
#Option "UseFBDev" "true"
Option "DRI" "false"
Option "RenderAccel" "true"
Option "AGPFastWrite" "true"
#Option "AGPFastWrite" "false"
Option "EnablePageFlip" "true"
Option "AGPMode" "4"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
#Modes "1024x768" "800x600" "640x480"
Modes "800x600"
EndSubSection
EndSection
#Section "DRI"
# Mode 0666
#EndSection
</code>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20120923/8cdfdfbb/attachment.html>
More information about the xorg
mailing list