Skip to contentSkip to conversation

support of touchscreen reported as eGalax but is not working

DISCUSSION Max Weninger 4 participants 16 messages Jan 25, 2009 – Feb 9, 2009 Input drivers

lore
Share & tools
lore
#0 lore raw

Hi

I recently got a used USB touchscreen and try to get it working It looks like a eGalax type but not really is :-(

I am using kernel 2.6.28.2 but also tried the one that comes with fedora 10 (2.6.27) When I connect the touchscreen dmesg shows

usb 2-1: new low speed USB device using uhci_hcd and address 13 usb 2-1: string descriptor 0 read error: -32
usb 2-1: string descriptor 0 read error: -32
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: string descriptor 0 read error: -32
generic-usb: probe of 0003:0EEF:0001.000B failed with error -32 usb 2-1: New USB device found, idVendor=0eef, idProduct=0001 usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

lsusb -vv for the device gives

Bus 002 Device 013: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10

  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         8
  idVendor           0x0eef D-WAV Scientific Co., Ltd
  idProduct          0x0001 eGalax TouchScreen
  bcdDevice            1.00
  iManufacturer           1
  iProduct                2
  iSerial                 0
  bNumConfigurations      1

Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 44mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.12
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 141
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 5

/proc/bus/usb/devices gives

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 13 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0eef ProdID=0001 Rev= 1.00

C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 44mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=5ms

I compared this output to other eGalax and discovered some differences like that iManufactur and iProduct is not filled also bInterfaceSubClass and bInterfaceProtocol

The kernel is not installing any input device for the touchscreen so /proc/bus/input/devices does not show the touchscreen

To check if the thing is actually working I did a quick test on XP and there it works.

Any chance to get this thing working?
I can test any patch maybe required and provide more information if needed. If am wrong on this mailing list please tell me where I should post this question.

Thanks for any help

Max

#1 lore raw
Quoted 5 lines · Max Weninger

Hi

I recently got a used USB touchscreen and try to get it working It looks like a eGalax type but not really is :-(

...

Quoted 5 lines

/proc/bus/usb/devices gives

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 13 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0eef ProdID=0001 Rev= 1.00
Quoted 7 lines

C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 44mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=5ms

I compared this output to other eGalax and discovered some differences like that iManufactur and iProduct is not filled also bInterfaceSubClass and bInterfaceProtocol

Looks like a touchscreen which is supported by a closed(?) source driver of eGalax we have here too:

$ /sbin/modinfo tkusb.ko 
filename:       tkusb.ko
license:        GPL
description:    USB TouchScreen Driver
author:         eGalax Inc. http://www.egalax.com.tw
srcversion:     B0872D8913B07BF5665B5BA
alias:          usb:v3823p0001d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0EEFp0002d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0EEFp0001d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v1234p0002d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v1234p0001d*dc*dsc*dp*ic*isc*ip*
depends:        usbcore
vermagic:       2.6.17-8.wn mod_unload 686 REGPARM 4KSTACKS gcc-4.0

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Hope that helps,
Niels

#2 lore raw

Hi

Quoted 36 lines · On Mon, 26 Jan 2009 11:46:01 +0100 Niels de Vos…
Quoted 5 lines · Max Weninger

Hi

I recently got a used USB touchscreen and try to get it working It looks like a eGalax type but not really is :-(

...

Quoted 5 lines

/proc/bus/usb/devices gives

T:  Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 13 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0eef ProdID=0001 Rev= 1.00
Quoted 7 lines

C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 44mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=5ms

I compared this output to other eGalax and discovered some differences like that iManufactur and iProduct is not filled also bInterfaceSubClass and bInterfaceProtocol

Looks like a touchscreen which is supported by a closed(?) source driver of eGalax we have here too:

$ /sbin/modinfo tkusb.ko 
filename:       tkusb.ko
license:        GPL
description:    USB TouchScreen Driver
author:         eGalax Inc. http://www.egalax.com.tw
srcversion:     B0872D8913B07BF5665B5BA
alias:          usb:v3823p0001d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0EEFp0002d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v0EEFp0001d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v1234p0002d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v1234p0001d*dc*dsc*dp*ic*isc*ip*
depends:        usbcore
vermagic:       2.6.17-8.wn mod_unload 686 REGPARM 4KSTACKS gcc-4.0
Quoted 5 lines

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Thanks for your quick reply
BUT: I have tried those driver also

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

If I didnt make any error I get exactly the same error maybe I did some error in the configuration but
it loads the tkusb kernel module instead of the usbtoucscreen (which I added to the module blacklist) when plugin the screen so I think I did it right :)

So maybe the problem is that the kernel is just too new and some other changes broke the support :)
So I will try with the kernel you are using (2.6.17-8) to make sure

Regards

max

Signature · 10 lines
_______________________________________________________________
     \                  
    o/\_          DI Max Weninger
   <\__,\         Email ([email protected])          
    ">.  |         
     ` .-|        
        . \       
         . \      
         .-|      
_________._|____________________________________________________
#3 lore raw
Quoted 7 lines · Max Weninger
Quoted 5 lines · Niels de Vos

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Quoted 7 lines

Thanks for your quick reply
BUT: I have tried those driver also

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

For what it's worth; the version we use from eGalax is 1.0.3.1701. I don't have the hardware here atm, so I can't test an other driver now.

Cheers,
Niels

#4 lore raw

Hi

Quoted 11 lines · On Mon, 26 Jan 2009 13:13:23 +0100 Niels de Vos…
Quoted 10 lines · Max Weninger
Quoted 5 lines · Niels de Vos

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Thanks for your quick reply
BUT: I have tried those driver also

Quoted 8 lines
Quoted 4 lines

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

For what it's worth; the version we use from eGalax is 1.0.3.1701. I don't have the hardware here atm, so I can't test an other driver now.

I tried kernel 2.6.23.17 and there the touchscreen is recognized using the builtin usbtouchscreen driver

/proc/bus/usb/devices delivers

T:  Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=1.5 MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0eef ProdID=0001 Rev= 1.00

C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 44mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbtouchscreen
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=5ms

and

/proc/bus/input/devices
I: Bus=0003 Vendor=0eef Product=0001 Version=0100
N: Name="USB Touchscreen 0eef:0001"
P: Phys=usb-0000:00:1d.0-2/input0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=mouse2 event3
B: EV=b
B: KEY=400 0 0 0 0 0 0 0 0 0 0
B: ABS=3

I also tried to blacklist the usbhid with 2.6.28.2 then it display Driver=usbtouchscreen in /proc/bus/usb/devices but still no entry in /proc/bus/input/devices

Any ideas?

Regards

max

#5 lore raw

Hi

Quoted 21 lines · On Tue, 27 Jan 2009 01:38:06 +0100 Max Weninger <[email protected]> wrote:

Hi

Quoted 16 lines · On Mon, 26 Jan 2009 13:13:23 +0100 Niels de Vos…
Quoted 14 lines · Max Weninger
Quoted 5 lines · Niels de Vos

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Thanks for your quick reply
BUT: I have tried those driver also

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

Quoted 6 lines
Quoted 3 lines

For what it's worth; the version we use from eGalax is 1.0.3.1701. I don't have the hardware here atm, so I can't test an other driver now.

I tried kernel 2.6.23.17 and there the touchscreen is recognized using the builtin usbtouchscreen driver

It also works with 2.6.26.8

Regards

Max

#6 lore raw

Re: SOLVED support of touchscreen reported as eGalax but is not working

Hi again

Quoted 24 lines · On Tue, 27 Jan 2009 01:48:22 +0100 Max Weninger <[email protected]> wrote:
Quoted 21 lines · On Tue, 27 Jan 2009 01:38:06 +0100 Max Weninger <[email protected]> wrote:

Hi

Quoted 16 lines · On Mon, 26 Jan 2009 13:13:23 +0100 Niels de Vos…
Quoted 14 lines · Max Weninger
Quoted 5 lines · Niels de Vos

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Thanks for your quick reply
BUT: I have tried those driver also

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

For what it's worth; the version we use from eGalax is 1.0.3.1701. I don't have the hardware here atm, so I can't test an other driver now.

I tried kernel 2.6.23.17 and there the touchscreen is recognized using the builtin usbtouchscreen driver

It also works with 2.6.26.8

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by usbhid */
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info = DEVTYPE_IGNORE},
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0002), .driver_info = DEVTYPE_IGNORE},

...

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

Regards

Max

#7 lore raw

Re: SOLVED support of touchscreen reported as eGalax but is not working

(cc restored - please jsut do reply-to-all, always)

Quoted 46 lines · On Tue, 27 Jan 2009 02:05:29 +0100 Max Weninger <[email protected]> wrote:

Hi again

Quoted 24 lines · On Tue, 27 Jan 2009 01:48:22 +0100 Max Weninger <[email protected]> wrote:
Quoted 21 lines · On Tue, 27 Jan 2009 01:38:06 +0100 Max Weninger <[email protected]> wrote:

Hi

Quoted 16 lines · On Mon, 26 Jan 2009 13:13:23 +0100 Niels de Vos…
Quoted 14 lines · Max Weninger
Quoted 5 lines · Niels de Vos

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Thanks for your quick reply
BUT: I have tried those driver also

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

For what it's worth; the version we use from eGalax is 1.0.3.1701. I don't have the hardware here atm, so I can't test an other driver now.

I tried kernel 2.6.23.17 and there the touchscreen is recognized using the builtin usbtouchscreen driver

It also works with 2.6.26.8

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by usbhid */
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info = DEVTYPE_IGNORE},
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0002), .driver_info = DEVTYPE_IGNORE},
Quoted 8 lines

...

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

So... how do we fix this for real?

#8 lore raw

Re: SOLVED support of touchscreen reported as eGalax but is not working

Hi to all

Quoted 53 lines · On Fri, 30 Jan 2009 15:18:36 -0800 Andrew Morton <[email protected]>…

(cc restored - please jsut do reply-to-all, always)

Quoted 48 lines · On Tue, 27 Jan 2009 02:05:29 +0100 Max Weninger <[email protected]> wrote:

Hi again

Quoted 24 lines · On Tue, 27 Jan 2009 01:48:22 +0100 Max Weninger <[email protected]> wrote:
Quoted 21 lines · On Tue, 27 Jan 2009 01:38:06 +0100 Max Weninger <[email protected]> wrote:

Hi

Quoted 16 lines · On Mon, 26 Jan 2009 13:13:23 +0100 Niels de Vos…
Quoted 14 lines · Max Weninger
Quoted 5 lines · Niels de Vos

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Thanks for your quick reply
BUT: I have tried those driver also

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

For what it's worth; the version we use from eGalax is 1.0.3.1701. I don't have the hardware here atm, so I can't test an other driver now.

I tried kernel 2.6.23.17 and there the touchscreen is recognized using the builtin usbtouchscreen driver

It also works with 2.6.26.8

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by usbhid */
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info =

DEVTYPE_IGNORE}, {USB_DEVICE_HID_CLASS(0x0eef,
0x0002), .driver_info = DEVTYPE_IGNORE}, ...

Quoted 8 lines
Quoted 6 lines

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

So... how do we fix this for real?

Well I am really not an expert in kernel programming :-)
I found out that these lines where added based on this thread from 2008

http://kerneltrap.org/mailarchive/linux-kernel/2008/6/28/2286264/thread

So all I can do is to provide any help in testing if needed

Regards

Max

#9 lore raw

Re: SOLVED support of touchscreen reported as eGalax but is not working

Quoted 65 lines · On Sat, 31 Jan 2009 23:09:01 +0100 Max Weninger <[email protected]> wrote:

Hi to all

Quoted 60 lines · On Fri, 30 Jan 2009 15:18:36 -0800 Andrew Morton <[email protected]>…

(cc restored - please jsut do reply-to-all, always)

Quoted 54 lines · On Tue, 27 Jan 2009 02:05:29 +0100 Max Weninger <[email protected]> wrote:

Hi again

Quoted 24 lines · On Tue, 27 Jan 2009 01:48:22 +0100 Max Weninger <[email protected]> wrote:
Quoted 21 lines · On Tue, 27 Jan 2009 01:38:06 +0100 Max Weninger <[email protected]> wrote:

Hi

Quoted 16 lines · On Mon, 26 Jan 2009 13:13:23 +0100 Niels de Vos…
Quoted 14 lines · Max Weninger
Quoted 5 lines · Niels de Vos

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Thanks for your quick reply
BUT: I have tried those driver also

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

For what it's worth; the version we use from eGalax is 1.0.3.1701. I don't have the hardware here atm, so I can't test an other driver now.

I tried kernel 2.6.23.17 and there the touchscreen is recognized using the builtin usbtouchscreen driver

It also works with 2.6.26.8

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by usbhid */
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info =

DEVTYPE_IGNORE}, {USB_DEVICE_HID_CLASS(0x0eef,
0x0002), .driver_info = DEVTYPE_IGNORE}, ...

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

Quoted 9 lines
Quoted 1 line

So... how do we fix this for real?

Well I am really not an expert in kernel programming :-)
I found out that these lines where added based on this thread from 2008

http://kerneltrap.org/mailarchive/linux-kernel/2008/6/28/2286264/thread

So all I can do is to provide any help in testing if needed

(optimistically cc'ing Daniel).

#10 lore raw

Re: SOLVED support of touchscreen reported as eGalax but is not working

Quoted 1 line · On Tuesday 03 February 2009 07:59:29 Andrew Morton wrote:

On Sat, 31 Jan 2009 23:09:01 +0100 Max Weninger <[email protected]> wrote:

[snip]

Quoted 22 lines
Quoted 22 lines
Quoted 10 lines
Quoted 10 lines

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by usbhid */
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info =

DEVTYPE_IGNORE}, {USB_DEVICE_HID_CLASS(0x0eef,
0x0002), .driver_info = DEVTYPE_IGNORE}, ...

Quoted 8 lines
Quoted 6 lines

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

So... how do we fix this for real?

Well I am really not an expert in kernel programming :-)
I found out that these lines where added based on this thread from 2008

Quoted 6 lines
Quoted 4 lines

http://kerneltrap.org/mailarchive/linux-kernel/2008/6/28/2286264/thread

So all I can do is to provide any help in testing if needed

(optimistically cc'ing Daniel).

looks like it worked :)

ermm, that ignoring code...seems like i was just a little bit stupid when i wrote it...

Max, please try the attached patch...

rgds
-daniel

--------

[PATCH] usbtouchscreen: fix eGalax/ETTI HID device ignoring

Fix the eGalax/ETTI HID device ignoring by adding a match for the protocol too. This is what the marco USB_DEVICE_HID_CLASS() was supposed to do anyways.

Devices confirmed to be real HID have the class set to HID and the protocol set to 'mouse'. Some have HID class but protocol set to 'none'. Those are not HID and should be driven by usbtouchscreen.

drivers/input/touchscreen/usbtouchscreen.c +2 -1
index 5080b26..ba6237a 100644
@@ -118,7 +118,8 @@ enum {
 
 #define USB_DEVICE_HID_CLASS(vend, prod) \
 	.match_flags = USB_DEVICE_ID_MATCH_INT_CLASS \
-		| USB_DEVICE_ID_MATCH_DEVICE, \
+		| USB_DEVICE_ID_MATCH_DEVICE \
+		| USB_DEVICE_ID_MATCH_DEV_PROTOCOL, \
 	.idVendor = (vend), \
 	.idProduct = (prod), \
 	.bInterfaceClass = USB_INTERFACE_CLASS_HID, \
#11 lore raw

Re: SOLVED support of touchscreen reported as eGalax but is not working

Hi

Quoted 33 lines · On Wed, 4 Feb 2009 00:44:11 +0100 Daniel Ritz <[email protected]>…
Quoted 2 lines · On Tuesday 03 February 2009 07:59:29 Andrew Morton wrote:

On Sat, 31 Jan 2009 23:09:01 +0100 Max Weninger
<[email protected]> wrote:

[snip]

Quoted 29 lines
Quoted 28 lines
Quoted 11 lines
Quoted 11 lines

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by usbhid

*/ {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info = DEVTYPE_IGNORE}, {USB_DEVICE_HID_CLASS(0x0eef, 0x0002), .driver_info = DEVTYPE_IGNORE}, ...

Quoted 8 lines
Quoted 6 lines

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

So... how do we fix this for real?

Well I am really not an expert in kernel programming :-) I found out that these lines where added based on this thread from 2008

http://kerneltrap.org/mailarchive/linux-kernel/2008/6/28/2286264/thread

So all I can do is to provide any help in testing if needed

Quoted 8 lines
Quoted 1 line

(optimistically cc'ing Daniel).

looks like it worked :)

ermm, that ignoring code...seems like i was just a little bit stupid when i wrote it...

Max, please try the attached patch...

I patched usbtouchscreen.c in my 2.6.28.2 kernel

But if I look in /proc/bus/usb/devices
the touchscreen is now managed from the usbhid driver so usbtouchscreen is again ignoring my device

/proc/bus/input/devices is again empty and no entry exists for the touchscreen :-(

This is the same behaviour that I had before copying back "my patched" version and everything is working again.

Just to make sure I understand how this should work the entry must be there also if usbhid is managing the touchscreen right?

BTW: dmesg contains a new line with the patched version
generic-usb: probe of 0003:0EEF:0001.0002 failed with error -32 when initializing the touchscreen

So sorry no success here

But I have to say that I got this touchscreen very cheap second hand and maybe this is just some stupid problem only for this device.

If your code works for all the other devices you tested I am fine doing my change for now and you should not waste more time on this :-)

Thanks

Max

Quoted 33 lines

rgds
-daniel

--------

[PATCH] usbtouchscreen: fix eGalax/ETTI HID device ignoring

Fix the eGalax/ETTI HID device ignoring by adding a match for the protocol too. This is what the marco USB_DEVICE_HID_CLASS() was supposed to do anyways.

Devices confirmed to be real HID have the class set to HID and the protocol set to 'mouse'. Some have HID class but protocol set to 'none'. Those are not HID and should be driven by usbtouchscreen.

(quoted diff) +0 -0

b/drivers/input/touchscreen/usbtouchscreen.c index 5080b26..ba6237a 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c

drivers/input/touchscreen/usbtouchscreen.c +2 -1
@@ -118,7 +118,8 @@ enum {
 
 #define USB_DEVICE_HID_CLASS(vend, prod) \
 	.match_flags = USB_DEVICE_ID_MATCH_INT_CLASS \
-		| USB_DEVICE_ID_MATCH_DEVICE, \
+		| USB_DEVICE_ID_MATCH_DEVICE \
+		| USB_DEVICE_ID_MATCH_DEV_PROTOCOL, \
 	.idVendor = (vend), \
 	.idProduct = (prod), \
 	.bInterfaceClass = USB_INTERFACE_CLASS_HID, \
#12 lore raw

Re: SOLVED support of touchscreen reported as eGalax but is not working

Quoted 53 lines · On Wednesday 04 February 2009 22:59:42 Max Weninger wrote:

Hi

Quoted 33 lines · On Wed, 4 Feb 2009 00:44:11 +0100 Daniel Ritz <[email protected]>…
Quoted 2 lines · On Tuesday 03 February 2009 07:59:29 Andrew Morton wrote:

On Sat, 31 Jan 2009 23:09:01 +0100 Max Weninger
<[email protected]> wrote:

[snip]

Quoted 29 lines
Quoted 28 lines
Quoted 11 lines
Quoted 11 lines

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by usbhid

*/ {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info = DEVTYPE_IGNORE}, {USB_DEVICE_HID_CLASS(0x0eef, 0x0002), .driver_info = DEVTYPE_IGNORE}, ...

Quoted 8 lines
Quoted 6 lines

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

So... how do we fix this for real?

Well I am really not an expert in kernel programming :-) I found out that these lines where added based on this thread from 2008

http://kerneltrap.org/mailarchive/linux-kernel/2008/6/28/2286264/thread

So all I can do is to provide any help in testing if needed

Quoted 8 lines
Quoted 1 line

(optimistically cc'ing Daniel).

looks like it worked :)

ermm, that ignoring code...seems like i was just a little bit stupid when i wrote it...

Max, please try the attached patch...

I patched usbtouchscreen.c in my 2.6.28.2 kernel

But if I look in /proc/bus/usb/devices
the touchscreen is now managed from the usbhid driver so usbtouchscreen is again ignoring my device

[...]

Quoted 2 lines

So sorry no success here

[...]

errm, forget the patch i sent you...it just couldn't work:
instead of the flag USB_DEVICE_ID_MATCH_INT_PROTOCOL i took USB_DEVICE_ID_MATCH_DEV_PROTOCOL which is just wrong wrong wrong :)

fixed patch attached.

rgds
-daniel, looking for that brown paper bag

----------
[PATCH] usbtouchscreen: fix eGalax HID ignoring

Fix the eGalax/EETI HID device ignoring by adding a match for the protocol too. This is what the marco USB_DEVICE_HID_CLASS() was supposed to do anyways.

Devices confirmed to be real HID have the class set to HID and the protocol set to 'mouse'. Some have HID class but protocol set to 'none'. Those are not HID and should be driven by usbtouchscreen.

drivers/input/touchscreen/usbtouchscreen.c +1 -0
index 5080b26..b383625 100644
@@ -118,6 +118,7 @@ enum {
 
 #define USB_DEVICE_HID_CLASS(vend, prod) \
 	.match_flags = USB_DEVICE_ID_MATCH_INT_CLASS \
+		| USB_DEVICE_ID_MATCH_INT_PROTOCOL \
 		| USB_DEVICE_ID_MATCH_DEVICE, \
 	.idVendor = (vend), \
 	.idProduct = (prod), \
#13 lore raw

Re: REALLY SOLVED support of touchscreen reported as eGalax but is not working

Hi

Quoted 58 lines · On Sun, 8 Feb 2009 17:01:57 +0100 Daniel Ritz <[email protected]>…
Quoted 54 lines · On Wednesday 04 February 2009 22:59:42 Max Weninger wrote:

Hi

Quoted 34 lines · On Wed, 4 Feb 2009 00:44:11 +0100 Daniel Ritz <[email protected]>…
Quoted 2 lines · On Tuesday 03 February 2009 07:59:29 Andrew Morton wrote:

On Sat, 31 Jan 2009 23:09:01 +0100 Max Weninger
<[email protected]> wrote:

[snip]

Quoted 30 lines
Quoted 29 lines
Quoted 12 lines
Quoted 12 lines

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by

usbhid */ {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info = DEVTYPE_IGNORE}, {USB_DEVICE_HID_CLASS(0x0eef, 0x0002), .driver_info = DEVTYPE_IGNORE}, ...

Quoted 8 lines
Quoted 6 lines

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

So... how do we fix this for real?

Well I am really not an expert in kernel programming :-) I found out that these lines where added based on this thread from 2008

http://kerneltrap.org/mailarchive/linux-kernel/2008/6/28/2286264/thread

So all I can do is to provide any help in testing if needed

Quoted 8 lines
Quoted 1 line

(optimistically cc'ing Daniel).

looks like it worked :)

ermm, that ignoring code...seems like i was just a little bit stupid when i wrote it...

Max, please try the attached patch...

I patched usbtouchscreen.c in my 2.6.28.2 kernel

But if I look in /proc/bus/usb/devices
the touchscreen is now managed from the usbhid driver so usbtouchscreen is again ignoring my device

[...]

Quoted 2 lines

So sorry no success here

Quoted 7 lines

[...]

errm, forget the patch i sent you...it just couldn't work:
instead of the flag USB_DEVICE_ID_MATCH_INT_PROTOCOL i took USB_DEVICE_ID_MATCH_DEV_PROTOCOL which is just wrong wrong wrong :)

fixed patch attached.

Now it works! :-)

Thanks a lot

Regards

Max

Quoted 31 lines

rgds
-daniel, looking for that brown paper bag

----------
[PATCH] usbtouchscreen: fix eGalax HID ignoring

Fix the eGalax/EETI HID device ignoring by adding a match for the protocol too. This is what the marco USB_DEVICE_HID_CLASS() was supposed to do anyways.

Devices confirmed to be real HID have the class set to HID and the protocol set to 'mouse'. Some have HID class but protocol set to 'none'. Those are not HID and should be driven by usbtouchscreen.

(quoted diff) +0 -0

b/drivers/input/touchscreen/usbtouchscreen.c index 5080b26..b383625 100644 --- a/drivers/input/touchscreen/usbtouchscreen.c +++ b/drivers/input/touchscreen/usbtouchscreen.c

drivers/input/touchscreen/usbtouchscreen.c +1 -0
@@ -118,6 +118,7 @@ enum {
 
 #define USB_DEVICE_HID_CLASS(vend, prod) \
 	.match_flags = USB_DEVICE_ID_MATCH_INT_CLASS \
+		| USB_DEVICE_ID_MATCH_INT_PROTOCOL \
 		| USB_DEVICE_ID_MATCH_DEVICE, \
 	.idVendor = (vend), \
 	.idProduct = (prod), \
#14 lore raw

Re: SOLVED support of touchscreen reported as eGalax but is not working

In reply to Andrew Morton
Quoted 48 lines · Andrew Morton

(cc restored - please jsut do reply-to-all, always)

Quoted 43 lines · On Tue, 27 Jan 2009 02:05:29 +0100 Max Weninger <[email protected]> wrote:

Hi again

Quoted 22 lines · On Tue, 27 Jan 2009 01:48:22 +0100 Max Weninger <[email protected]> wrote:
Quoted 19 lines · On Tue, 27 Jan 2009 01:38:06 +0100 Max Weninger <[email protected]> wrote:

Hi

Quoted 14 lines · On Mon, 26 Jan 2009 13:13:23 +0100 Niels de Vos…
Quoted 13 lines · Max Weninger
Quoted 5 lines · Niels de Vos

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Thanks for your quick reply
BUT: I have tried those driver also

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

For what it's worth; the version we use from eGalax is 1.0.3.1701. I don't have the hardware here atm, so I can't test an other driver now.

I tried kernel 2.6.23.17 and there the touchscreen is recognized using the builtin usbtouchscreen driver

It also works with 2.6.26.8

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by usbhid */
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info = DEVTYPE_IGNORE},
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0002), .driver_info = DEVTYPE_IGNORE},

...

Quoted 8 lines
Quoted 6 lines

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

So... how do we fix this for real?

(...after some research...)

Best would probably be updating the Xorg evtouch-driver. It looks like someone already did this. I found a site containing a quite complete description of (hopefully the same) problem: http://zalman.ostergaard.net/touch.html

However I don't think the changes were submitted upstream as the (new) driver does not contain support for the other eGalax-hardware anymore.

In my view the problem is not the Linux usbtouchscreen/usbhid driver, but the evtouch-driver. It looks like the evtouch-driver is not maintained by the Xorg-folks, but on http://www.conan.de/touchscreen/evtouch.html (contact added in CC).

Anyone interested in creating a patch for evtouch?

Niels

#15 lore raw

Re: SOLVED support of touchscreen reported as eGalax but is not working

Hi

Quoted 56 lines · On Mon, 02 Feb 2009 14:39:25 +0100 Niels de Vos…
Quoted 55 lines · Andrew Morton

(cc restored - please jsut do reply-to-all, always)

Quoted 49 lines · On Tue, 27 Jan 2009 02:05:29 +0100 Max Weninger <[email protected]> wrote:

Hi again

Quoted 22 lines · On Tue, 27 Jan 2009 01:48:22 +0100 Max Weninger <[email protected]> wrote:
Quoted 19 lines · On Tue, 27 Jan 2009 01:38:06 +0100 Max Weninger <[email protected]> wrote:

Hi

Quoted 14 lines · On Mon, 26 Jan 2009 13:13:23 +0100 Niels de Vos…
Quoted 13 lines · Max Weninger
Quoted 5 lines · Niels de Vos

You can obviously download the drivers from
<http://home.eeti.com.tw/web20/TouchKitDriver/linuxDriver.htm>.

It would be great if eGalax could be convinced to get these drivers included in main-line ;)

Thanks for your quick reply
BUT: I have tried those driver also

I tried this "brandnew" one (but also older ones)
http://home.eeti.com.tw/web20/drivers/touch_driver/Linux/2.06.2416/TouchKit-2.06.2410-32b-k26.tar.gz
after making it compile for 2.6.28.2 :)
since there is source code delivered

Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

For what it's worth; the version we use from eGalax is 1.0.3.1701. I don't have the hardware here atm, so I can't test an other driver now.

I tried kernel 2.6.23.17 and there the touchscreen is recognized using the builtin usbtouchscreen driver

It also works with 2.6.26.8

After comparing the usbtouchscreen.c sources between the different versions I got it working by commenting the follwoing lines

...

#ifdef CONFIG_TOUCHSCREEN_USB_EGALAX
        /* ignore the HID capable devices, handled by usbhid */
        {USB_DEVICE_HID_CLASS(0x0eef, 0x0001), .driver_info =

DEVTYPE_IGNORE}, {USB_DEVICE_HID_CLASS(0x0eef,
0x0002), .driver_info = DEVTYPE_IGNORE}, ...

Now the entry in /proc/bus/input/devices is created as in the older versions.

So it seems that usbhid is not correctly handling my type of touchscreen if I understand the comment there correctly

Quoted 8 lines
Quoted 1 line

So... how do we fix this for real?

(...after some research...)

Best would probably be updating the Xorg evtouch-driver. It looks like someone already did this. I found a site containing a quite complete description of (hopefully the same) problem:
http://zalman.ostergaard.net/touch.html

Well the problem here IMHO is the following sentence found there

Quoted 2 lines

If you read something else from your touchscreen, you may as well skip reading further :-(

without the changes in usbtouchscreen /proc/bus/input/devices does NOT contain any entry for my touchscreen.

Quoted 8 lines

However I don't think the changes were submitted upstream as the (new) driver does not contain support for the other eGalax-hardware anymore.

In my view the problem is not the Linux usbtouchscreen/usbhid driver, but the evtouch-driver. It looks like the evtouch-driver is not maintained by the Xorg-folks, but on
http://www.conan.de/touchscreen/evtouch.html (contact added in CC).

I think the problem cannot be fixed by any changes on the X-level since this requires that the underlying device is present e.g. any /dev/input/event[x] device for the touchscreen

evtouch is just one level above and is just using the device that is provided from the kernel aka. usbtouchscreen or usbhid

At least this is how I understand the architecture :)

Regards

max