Configure touchpad for touchscreen driver
Martin Kepplinger
martink at posteo.de
Fri May 5 15:30:51 UTC 2017
Hi,
I'm doing a touchscreen xorg input driver. For testing purposes, I'd
like to configure my laptop's touchpad for the driver to use. It's
totally comparable and I've done it for other stuff for rough testing. I
append the evtest output below. Should be fine.
I'm unsure how to override all other touchpad configs in my system.
* is it enough to say "MatchIsTouchpad" instead of touchscreen? There's
obviously only one touchpad. Ideally I think I should omit
"MatchIsTouchpad" and say only "Device=/dev/input/event1" or whatever
number it is? Would that be possible?
* My driver config installs to /usr/local/share/X11/... Will this
*ever* override /usr/share/X11 configs? Even if I call it
"00-mydriver.conf" in /usr/local/
thanks
martin
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x2 product 0xe version 0x0
Input device name: "ETPS/2 Elantech Touchpad"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 272 (BTN_LEFT)
Event code 325 (BTN_TOOL_FINGER)
Event code 330 (BTN_TOUCH)
Event code 333 (BTN_TOOL_DOUBLETAP)
Event code 334 (BTN_TOOL_TRIPLETAP)
Event code 335 (BTN_TOOL_QUADTAP)
Event type 3 (EV_ABS)
Event code 0 (ABS_X)
Value 1166
Min 0
Max 2772
Resolution 32
Event code 1 (ABS_Y)
Value 412
Min 0
Max 1452
Resolution 32
Event code 24 (ABS_PRESSURE)
Value 0
Min 0
Max 255
Event code 28 (ABS_TOOL_WIDTH)
Value 2
Min 0
Max 15
Event code 47 (ABS_MT_SLOT)
Value 0
Min 0
Max 4
Event code 48 (ABS_MT_TOUCH_MAJOR)
Value 0
Min 0
Max 1980
Event code 53 (ABS_MT_POSITION_X)
Value 0
Min 0
Max 2772
Resolution 32
Event code 54 (ABS_MT_POSITION_Y)
Value 0
Min 0
Max 1452
Resolution 32
Event code 57 (ABS_MT_TRACKING_ID)
Value 0
Min 0
Max 65535
Event code 58 (ABS_MT_PRESSURE)
Value 0
Min 0
Max 255
Properties:
Property type 0 (INPUT_PROP_POINTER)
Property type 2 (INPUT_PROP_BUTTONPAD)
Testing ... (interrupt to exit)
More information about the xorg
mailing list