Re: eGalax USB touchscreen issues

2021-06-03 Thread Mark Kane
On 2021-06-02 20:14, Vladimir Kondratyev wrote: For now, report descriptor is not broken but it still does not match my expectations. Could you post output of install sysutils/hid-tools sudo kldload hidraw.ko sudo hid-decode /dev/hidraw# Where # is number corresponding your touchscreen One m

Re: eGalax USB touchscreen issues

2021-06-02 Thread Vladimir Kondratyev
On 02.06.2021 14:26, Vladimir Kondratyev wrote: > On 02.06.2021 00:52, Mark Kane wrote: >> On 2021-05-31 16:29, Vladimir Kondratyev wrote: >>> Could you run usbhid-dump one more time? >>> Following part of dump is broken and does not match Xorg log: >>> >>> 000:003:000:DESCRIPTOR 1621478496

Re: eGalax USB touchscreen issues

2021-06-02 Thread Vladimir Kondratyev
On 02.06.2021 00:52, Mark Kane wrote: > On 2021-05-31 16:29, Vladimir Kondratyev wrote: >> Could you run usbhid-dump one more time? >> Following part of dump is broken and does not match Xorg log: >> >> 000:003:000:DESCRIPTOR 1621478496.823720 >>   8D 0F 00 09 42 09 32 15 00 25 01 95 02 75

Re: eGalax USB touchscreen issues

2021-06-01 Thread Mark Kane
On 2021-05-31 16:29, Vladimir Kondratyev wrote: Could you run usbhid-dump one more time? Following part of dump is broken and does not match Xorg log: 000:003:000:DESCRIPTOR 1621478496.823720 8D 0F 00 09 42 09 32 15 00 25 01 95 02 75 01 81 02 95 06 75 01 81 03 05 01 09 30 75 10 95 01

Re: eGalax USB touchscreen issues

2021-05-31 Thread Vladimir Kondratyev
On 29.05.2021 23:27, Mark Kane wrote: > On 2021-05-28 05:37, Vladimir Kondratyev wrote: >> Yes, hpen(4) supports them. >> >> It is required to apply some quirks though as TouchScreen usage page >> is handled with hmt(4) driver by default. >> Try attached patch and don't forget to enable usbhid(4) t

Re: eGalax USB touchscreen issues

2021-05-29 Thread Mark Kane
On 2021-05-28 05:37, Vladimir Kondratyev wrote: Yes, hpen(4) supports them. It is required to apply some quirks though as TouchScreen usage page is handled with hmt(4) driver by default. Try attached patch and don't forget to enable usbhid(4) to use it with addition of following lines to /boot/l

eGalax USB touchscreen issues

2021-05-28 Thread Vladimir Kondratyev
> Looking at the Linux sources again, it looks like this device should be > supported by generic HID. > > Wulf, do we support these usages in our kernel HID drivers? > > HID APPLICATION COLLECTION (Touch Screen) size(78) >HID REPORT: ID 2 > INPUT: >POS:0 SIZE:1 COUNT:2 [VARIABLE]

Re: eGalax USB touchscreen issues

2021-05-23 Thread Hans Petter Selasky
On 5/23/21 10:28 AM, Hans Petter Selasky wrote: You would have to search for this print in the code a figure out why it doesn't work. Might be a missing CONFIG option, needed for this device. Hi, I suspect device_add() returns -ENXIO . This just means that there is a missing driver for this d

Re: eGalax USB touchscreen issues

2021-05-23 Thread Hans Petter Selasky
On 5/23/21 2:03 AM, Mark Kane wrote: can't add hid device You would have to search for this print in the code a figure out why it doesn't work. Might be a missing CONFIG option, needed for this device. --HPS ___ freebsd-usb@freebsd.org mailing list

Re: eGalax USB touchscreen issues

2021-05-22 Thread Mark Kane
On 2021-05-22 17:57, Hans Petter Selasky wrote: Just build the latest webcamd port as is 5.13.2.2 w/ INPUT option selected. With webcamd-5.13.2.2 as-is with INPUT there is still the -6 ERR when running. # pkg info webcamd-5.13.2.2 | grep -A10 Options Options: COMPAT32 :

Re: eGalax USB touchscreen issues

2021-05-22 Thread Hans Petter Selasky
On 5/23/21 12:07 AM, Mark Kane wrote: Thanks for the diff. That applies cleanly to the 5.10.6.1 port but errors during build: Just build the latest webcamd port as is 5.13.2.2 w/ INPUT option selected. --HPS ___ freebsd-usb@freebsd.org mailing l

Re: eGalax USB touchscreen issues

2021-05-22 Thread Mark Kane
On 2021-05-22 03:34, Hans Petter Selasky wrote: This patch should work: https://github.com/hselasky/webcamd/commit/816f17ac38ce32879f6eb5b610305468b1b24de9 Thanks for the diff. That applies cleanly to the 5.10.6.1 port but errors during build: --- obj-media_tree-drivers-input-touchscreen-eg

Re: eGalax USB touchscreen issues

2021-05-22 Thread Hans Petter Selasky
On 5/22/21 10:10 AM, Hans Petter Selasky wrote: On 5/22/21 10:02 AM, Hans Petter Selasky wrote: On 5/21/21 7:36 PM, Mark Kane wrote: On 2021-05-21 01:48, Hans Petter Selasky wrote: Try adding -i 1 then -i 2 and so on. Not sure if you need to attach to a specific interface. -6 means:  6 ENXI

Re: eGalax USB touchscreen issues

2021-05-22 Thread Hans Petter Selasky
On 5/22/21 10:02 AM, Hans Petter Selasky wrote: On 5/21/21 7:36 PM, Mark Kane wrote: On 2021-05-21 01:48, Hans Petter Selasky wrote: Try adding -i 1 then -i 2 and so on. Not sure if you need to attach to a specific interface. -6 means:  6 ENXIO Device not configured. With -i 0 there is the

Re: eGalax USB touchscreen issues

2021-05-22 Thread Hans Petter Selasky
On 5/21/21 7:36 PM, Mark Kane wrote: On 2021-05-21 01:48, Hans Petter Selasky wrote: Try adding -i 1 then -i 2 and so on. Not sure if you need to attach to a specific interface. -6 means:  6 ENXIO Device not configured. With -i 0 there is the same -6 error as without -i. With -i 1 through

Re: eGalax USB touchscreen issues

2021-05-21 Thread Mark Kane
On 2021-05-21 01:48, Hans Petter Selasky wrote: Try adding -i 1 then -i 2 and so on. Not sure if you need to attach to a specific interface. -6 means: 6 ENXIO Device not configured. With -i 0 there is the same -6 error as without -i. With -i 1 through 100 there is no ERR, only "webcamd: Ca

Re: eGalax USB touchscreen issues

2021-05-20 Thread Hans Petter Selasky
On 5/21/21 1:06 AM, Mark Kane wrote: webcamd 89207 - - ERR: : can't add hid device: -6 Try adding -i 1 then -i 2 and so on. Not sure if you need to attach to a specific interface. -6 means: 6 ENXIO Device not configured. --HPS ___ freebsd-usb@fre

Re: eGalax USB touchscreen issues

2021-05-20 Thread Mark Kane
On 2021-05-20 16:31, Hans Petter Selasky wrote: Webcamd needs to be recompiled with INPUT device support, I believe, before it works with such devices. Thanks for the reply. I recompiled Webcamd with all options except vTuner to be sure nothing is missing. Got one specific error now, "ERR: :

Re: eGalax USB touchscreen issues

2021-05-20 Thread Hans Petter Selasky
On 5/20/21 7:44 PM, Mark Kane wrote: 5) `webcamd -l` shows the device but exits on startup with "Cannot find USB device". Webcamd needs to be recompiled with INPUT device support, I believe, before it works with such devices. --HPS ___ freebsd-us

eGalax USB touchscreen issues

2021-05-20 Thread Mark Kane
Hi, I'm trying to get an eGalax USB touchscreen working on FreeBSD 13.0-RELEASE and several approaches have been unsuccessful. 1) uep(4) in evdev or native mode - uep.ko automatically loads and attaches. X uses the respective evdev or egalax input driver however no events are registered with