egalax USB touchscreen problems (EVDEV Question)
Ken Emmons Jr.
kemmons at qatech.com
Wed Apr 20 08:17:07 PDT 2011
I found some references to the EVDEV driver in the archives of the
mailing list having issues with the "touch" event code (330) and my
touchscreen is also emitting this event. The latest version of xorg
changelog states that some work was done to try and fix BTN_TOUCH for
touchscreens. Do I need to upgrade Xorg to test this, or should I just
get source for evdev and build that against my current Xorg version?
I've attached the evtest.c output for reference:
./evtest /dev/input/event1
Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0xeef product 0x1 version 0x210
Input device name: "eGalax Inc. USB TouchController"
Supported events:
Event type 0 (Sync)
Event type 1 (Key)
Event code 320 (ToolPen)
Event code 330 (Touch)
Event type 3 (Absolute)
Event code 0 (X)
Value 3345
Min 30
Max 4040
Event code 1 (Y)
Value 2178
Min 60
Max 4035
Event type 4 (Misc)
Event code 4 (ScanCode)
Testing ... (interrupt to exit)
Event: time -1139204008.401203, type 4 (Misc), code 4 (ScanCode), value
d0042
Event: time -1139204008.401215, type 1 (Key), code 330 (Touch), value 1
Event: time -1139204008.401219, type 3 (Absolute), code 0 (X), value
2071
Event: time -1139204008.401222, type 3 (Absolute), code 1 (Y), value
1648
Event: time -1139204008.401224, -------------- Report Sync ------------
Event: time -1139204008.407187, type 3 (Absolute), code 0 (X), value
2076
Event: time -1139204008.407192, type 3 (Absolute), code 1 (Y), value
1645
Event: time -1139204008.407194, -------------- Report Sync ------------
Event: time -1139204008.413181, type 4 (Misc), code 4 (ScanCode), value
d0042
Event: time -1139204008.413187, type 1 (Key), code 330 (Touch), value 0
Event: time -1139204008.413194, -------------- Report Sync ------------
When I assign this device to evdev via xorg.conf or using hal I get the
message:
(WW) eGalax Inc. USB TouchController: Don't know how to use device
(II) UnloadModule: "evdev"
________________________________
From: xorg-bounces+kemmons=qatech.com at lists.freedesktop.org
[mailto:xorg-bounces+kemmons=qatech.com at lists.freedesktop.org] On Behalf
Of Ken Emmons Jr.
Sent: Tuesday, April 19, 2011 11:54 AM
To: xorg at lists.freedesktop.org
Subject: egalax USB touchscreen problems
Hello,
I tried to post this yesterday but I am not sure if it showed up
on the mailing list. I am trying to get an egalax touchscreen working on
an embedded PowerPC target using Debian Lenny distribution and custom
compiled kernel for 2.6.30.3. Xorg is 1.4.2 and evdev is 2.0.8 (See log
below).
Anyhow I have more data:
Using HAL I was able to pass some information to the X server
using this file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- 10-synaptics.fdi is claiming all input.touchpad's as its
own. This file is meant to be loaded afterwards and to undo
any wrong assignments it did.
-->
<deviceinfo version="0.2">
<device>
<!-- <match key="info.capabilities"
contains="input.touchpad"> -->
<match key="info.product" contains="eGalax">
<merge key="input.x11_driver" type="string">evdev</merge>
<merge key="input.x11_options.Calibration" type="string">32
3990 48 3990</merge>
<merge key="input.x11_options.InvertX"
type="string">true</merge>
</match>
<!-- </match> -->
</device>
</deviceinfo>
The xorg server didn't seem to like loading the evdev driver
though, and seems to be interpreting my touchscreen as a mouse with
absolute coordinates, and the wrong calibration. See the following
output:
Log file output pertaining to input (I have a USB mouse
and the USB touchscreen plugged in):
************************************************************************
************************************
(WW) Configured Mouse: No Device specified, looking for one...
(II) Configured Mouse: Setting Device option to
"/dev/input/mice"
(--) Configured Mouse: Device: "/dev/input/mice"
(==) Configured Mouse: Protocol: "Auto"
(**) Option "CorePointer"
(**) Configured Mouse: always reports core events
(**) Option "Device" "/dev/input/mice"
(==) Configured Mouse: Emulate3Buttons, Emulate3Timeout: 50
(**) Configured Mouse: ZAxisMapping: buttons 4 and 5
(**) Configured Mouse: Buttons: 9
(**) Configured Mouse: Sensitivity: 1
(**) Option "CoreKeyboard"
(**) Generic Keyboard: always reports core events
(**) Option "Protocol" "standard"
(**) Generic Keyboard: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Generic Keyboard: XkbRules: "xorg"
(**) Option "XkbModel" "pc105"
(**) Generic Keyboard: XkbModel: "pc105"
(**) Option "XkbLayout" "us"
(**) Generic Keyboard: XkbLayout: "us"
(**) Option "CustomKeycodes" "off"
(**) Generic Keyboard: CustomKeycodes disabled
(II) evaluating device (Configured Mouse)
(II) XINPUT: Adding extended input device "Configured Mouse"
(type: MOUSE)
(II) evaluating device (Generic Keyboard)
(II) XINPUT: Adding extended input device "Generic Keyboard"
(type: KEYBOARD)
(--) Configured Mouse: PnP-detected protocol: "ExplorerPS/2"
(II) Configured Mouse: ps2EnableDataReporting: succeeded
(II) Module evdev: vendor="X.Org Foundation"
compiled for 1.4.2, module version = 2.0.8
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 2.0
(**) eGalax Inc. USB TouchController: always reports core events
(**) eGalax Inc. USB TouchController: Device:
"/dev/input/event4"
(II) eGalax Inc. USB TouchController: Found x and y absolute
axes
(II) eGalax Inc. USB TouchController: Found absolute touchpad
(WW) eGalax Inc. USB TouchController: Don't know how to use
device
(II) UnloadModule: "evdev"
(EE) PreInit returned NULL for "eGalax Inc. USB TouchController"
(**) eGalax Inc. USB TouchController: always reports core events
(**) eGalax Inc. USB TouchController: Device:
"/dev/input/event3"
(II) eGalax Inc. USB TouchController: Found x and y absolute
axes
(II) eGalax Inc. USB TouchController: Found mouse buttons
(II) eGalax Inc. USB TouchController: Configuring as mouse
(II) XINPUT: Adding extended input device "eGalax Inc. USB
TouchController" (type: MOUSE)
output of xinput list:
***********************
"eGalax Inc. USB TouchController" id=4
[XExtensionPointer]
Num_buttons is 32
Num_axes is 2
Mode is Absolute
Motion_buffer is 256
Axis 0 :
Min_value is 42
Max_value is 1981
Resolution is 10000
Axis 1 :
Min_value is 42
Max_value is 1981
Resolution is 10000
The touchscreen does seem to work, but the input appears to be
coming to my "Generic Mouse" Any clue as to how to troubleshoot this?
thanks,
~Ken
This message contains confidential information and is intended
solely for the individual named. If you are not the intended recipient,
please notify the sender immediately by e-mail and destroy all copies of
this e-mail and its attachments. The sender does not accept liability
for any errors, omissions or damage caused by any virus transmitted by
this e-mail, for any failure to receive information in replies to this
email, or for the receipt of any such information by unintended
recipients. Any views or opinions expressed in this e-mail may be
solely those of the author and not necessarily those of QA Technology
Company, Inc.
More information about the xorg
mailing list