From owner-freebsd-usb@freebsd.org Mon May 31 21:31:21 2021 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 975AF6308E6 for ; Mon, 31 May 2021 21:31:21 +0000 (UTC) (envelope-from wulf@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Fv7lF3vkPz3H6B for ; Mon, 31 May 2021 21:31:21 +0000 (UTC) (envelope-from wulf@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 8605F6308E5; Mon, 31 May 2021 21:31:21 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 84AAF6308E3 for ; Mon, 31 May 2021 21:31:21 +0000 (UTC) (envelope-from wulf@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fv7lF3HNNz3HMB; Mon, 31 May 2021 21:31:21 +0000 (UTC) (envelope-from wulf@FreeBSD.org) Received: from [192.168.0.30] (unknown [94.45.211.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: wulf) by smtp.freebsd.org (Postfix) with ESMTPSA id DF9A2229BD; Mon, 31 May 2021 21:31:20 +0000 (UTC) (envelope-from wulf@FreeBSD.org) To: Mark Kane Cc: usb@freebsd.org, hps@selasky.org References: <324d49ca-1c0e-659d-194d-ece4d5f7f5e2@FreeBSD.org> <0ae3fec48e2c351d2c006f4ba4932cd7@kane.mn> From: Vladimir Kondratyev Subject: Re: eGalax USB touchscreen issues Message-ID: <166dd4d4-24cd-c24b-d75e-9a34fa734358@FreeBSD.org> Date: Tue, 1 Jun 2021 00:29:51 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <0ae3fec48e2c351d2c006f4ba4932cd7@kane.mn> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2021 21:31:21 -0000 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: at usbus0 > usbhid0 on uhub1 > usbhid0: addr 3> on usbus0 > hidbus0: on usbhid0 > hpen0: on hidbus0 > hpen1: on hidbus0 > hconf0: 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