Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jun 2021 00:29:51 +0300
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        Mark Kane <mark@kane.mn>
Cc:        usb@freebsd.org, hps@selasky.org
Subject:   Re: eGalax USB touchscreen issues
Message-ID:  <166dd4d4-24cd-c24b-d75e-9a34fa734358@FreeBSD.org>
In-Reply-To: <0ae3fec48e2c351d2c006f4ba4932cd7@kane.mn>
References:  <324d49ca-1c0e-659d-194d-ece4d5f7f5e2@FreeBSD.org> <0ae3fec48e2c351d2c006f4ba4932cd7@kane.mn>

next in thread | previous in thread | raw e-mail | index | archive | help
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) to use it with
>> addition of following lines to /boot/loader.conf:
>>
>> hw.usb.usbhid.enable=1
>> usbhid_load="YES"
> 
> Thanks for the patch. With this hpen(4) attaches, just one libinput
> error now about btn-stylus:
> 
> ugen0.3: <eGalax Inc. USB TouchController> at usbus0
> usbhid0 on uhub1
> usbhid0: <eGalax Inc. USB TouchController, class 0/0, rev 1.10/1.00,
> addr 3> on usbus0
> hidbus0: <HID bus> on usbhid0
> hpen0: <eGalax Inc. USB TouchController Digitizer> on hidbus0
> hpen1: <eGalax Inc. USB TouchController Digitizer> on hidbus0
> hconf0: <eGalax Inc. USB TouchController Configuration> on hidbus0
> 
> [    85.007] (II) config/udev: Adding input device eGalax Inc. USB
> TouchController Digitizer (/dev/input/event5)
> [    85.007] (**) eGalax Inc. USB TouchController Digitizer: Applying
> InputClass "evdev tablet catchall"
> [    85.007] (**) eGalax Inc. USB TouchController Digitizer: Applying
> InputClass "libinput tablet catchall"
> [    85.007] (II) Using input driver 'libinput' for 'eGalax Inc. USB
> TouchController Digitizer'
> [    85.007] (**) eGalax Inc. USB TouchController Digitizer: always
> reports core events
> [    85.007] (**) Option "Device" "/dev/input/event5"
> [    85.007] (**) Option "_source" "server/udev"
> [    85.010] (II) event5  - eGalax Inc. USB TouchController Digitizer:
> is tagged by udev as: Tablet
> [    85.171] (EE) event5  - eGalax Inc. USB TouchController Digitizer:
> libinput bug: missing tablet capabilities: btn-stylus resolution.
> Ignoring this device.
> [    85.172] (II) event5  - eGalax Inc. USB TouchController Digitizer:
> device is a tablet
> [    85.182] (II) event5  - failed to create input device
> '/dev/input/event5'.
> [    85.182] (EE) libinput: eGalax Inc. USB TouchController Digitizer:
> Failed to create a device for /dev/input/event5
> [    85.182] (EE) PreInit returned 2 for "eGalax Inc. USB
> TouchController Digitizer"
> [    85.182] (II) UnloadModule: "libinput"
> [    85.182] (II) config/udev: Adding input device eGalax Inc. USB
> TouchController Digitizer (/dev/input/event6)
> [    85.182] (**) eGalax Inc. USB TouchController Digitizer: Applying
> InputClass "evdev tablet catchall"
> [    85.183] (**) eGalax Inc. USB TouchController Digitizer: Applying
> InputClass "libinput tablet catchall"
> [    85.183] (II) Using input driver 'libinput' for 'eGalax Inc. USB
> TouchController Digitizer'
> [    85.183] (**) eGalax Inc. USB TouchController Digitizer: always
> reports core events
> [    85.183] (**) Option "Device" "/dev/input/event6"
> [    85.183] (**) Option "_source" "server/udev"
> [    85.186] (II) event6  - eGalax Inc. USB TouchController Digitizer:
> is tagged by udev as: Tablet
> [    85.229] (EE) event6  - eGalax Inc. USB TouchController Digitizer:
> libinput bug: missing tablet capabilities: btn-stylus resolution.
> Ignoring this device.
> [    85.229] (II) event6  - eGalax Inc. USB TouchController Digitizer:
> device is a tablet
> [    85.239] (II) event6  - failed to create input device
> '/dev/input/event6'.
> [    85.239] (EE) libinput: eGalax Inc. USB TouchController Digitizer:
> Failed to create a device for /dev/input/event6
> [    85.239] (EE) PreInit returned 2 for "eGalax Inc. USB
> TouchController Digitizer"
> [    85.239] (II) UnloadModule: "libinput"

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 A4
  55 00 65 00 36 00 00 46 00 00 16 1E 00 26 C8 0F
  81 02 09 31 16 3C 00 26

Does evemu-record (devel/evemu) hear any events from eGlax?

-- 
WBR
Vladimir Kondratyev



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?166dd4d4-24cd-c24b-d75e-9a34fa734358>