Preventing Xorg from creating input-devices

Tyler Aviss tjaviss-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Mon Jan 25 03:06:19 UTC 2010


I'm having major issues with Xorg trying to be a bit "too helpful" lately.
I have an LCD with a touchscreen, and have defined the appropriate
input section in xorg.conf and added it to my server layout

Section "InputDevice"
    Identifier "lilliput touchscreen"
    Driver "evtouch"
    Option "Device" "/dev/input/lilliput"
#    Option "Device" "/dev/input/event6"
    Option "DeviceName" "touchscreen" #udev-created symlink to
/dev/input/event6, prevents devices from changing ID's
#    Option "MinX" "65"
#    Option "MaxX" "1978"
#    Option "MinY" "20"
#    Option "MaxY" "2000"
    Option "SwapX" "1"
    Option "SwapY" "1"
Option "MinX"   "65"
Option "MaxX"   "1978"
Option "MinY"   "1673"
Option "MaxY"   "2000"
    Option "ReportingMode" "Raw"
#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout" "50"
#    Option        "MoveLimit" "10"
    Option "SendCoreEvents" "On"
    Option "CorePointer"
    Option "Calibrate" "0"
EndSection


However, xorg creates it's own device which takes over the event
interface before mine instantiates, and that devices has completely
WRONG minX, maxY etc params.


from Xorg.0.log

(II) config/hal: Adding input device eGalax Inc.
(**) Option "longtouched_button" "3"
(**) Option "maybetapped_button" "1"
State: S_UNTOUCHED      Action: No Action               Button: 0
State: S_TOUCHED        Action: No Action               Button: 0
State: S_LONGTOUCHED    Action: click           Button: 3
State: S_MOVING Action: No Action               Button: 0
State: S_MAYBETAPPED    Action: click           Button: 1
State: S_ONEANDAHALFTAP Action: down            Button: 3
(**) Option "MinX" "130"
(**) Option "MaxX" "3945"
(**) Option "MinY" "197"
(**) Option "MaxY" "3894"
(**) Option "TapTimer" "30"
(**) Option "LongtouchTimer" "750"
(**) Option "MoveLimit" "10"
(**) EVTouch TouchScreen: always reports core events
(II) XINPUT: Adding extended input device "EVTouch TouchScreen" (type:
TOUCHSCREEN)
(**) EVTouch TouchScreen: (accel) keeping acceleration scheme 1
(**) EVTouch TouchScreen: (accel) filter chain progression: 2.00
(**) EVTouch TouchScreen: (accel) filter stage 0: 20.00 ms
(**) EVTouch TouchScreen: (accel) set acceleration profile 0
(**) Option "Device" "/dev/input/event6"
(EE) EVTouch TouchScreen: Unable to grab device (Device or resource busy).


Anyone know a way to tell xorg to NOT do this?


- TJA
-- 
Tyler Aviss
Systems Support
LPIC/LPIC-2
(778) 890-0942
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list