From owner-freebsd-usb@freebsd.org Sat May 29 20:27:13 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 8ABC4647682 for ; Sat, 29 May 2021 20:27:13 +0000 (UTC) (envelope-from mark@kane.mn) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FstQ914kDz4ZSp for ; Sat, 29 May 2021 20:27:13 +0000 (UTC) (envelope-from mark@kane.mn) Received: by mailman.nyi.freebsd.org (Postfix) id 1F1AC647513; Sat, 29 May 2021 20:27:13 +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 1D0D864749C for ; Sat, 29 May 2021 20:27:13 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (stinger.tntpowerhost.com [104.128.58.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 SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "stinger.tntpowerhost.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FstQ80mMnz4ZVj; Sat, 29 May 2021 20:27:08 +0000 (UTC) (envelope-from mark@kane.mn) Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTP id 1e373384; Sat, 29 May 2021 15:27:01 -0500 (CDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kane.mn; h= mime-version:date:from:to:cc:subject:in-reply-to:references :message-id:content-type:content-transfer-encoding; s=stinger; bh=mWdGybKhPkA8w5dNYSu0C2S7G1b5UUAGmrsSDIQ+yag=; b=Fq931R8PnPFg L9oBpkzRq/BPkXUfBflRr9ehAmVFLfqteCROxtzEfasv+vof+7DONd3ht7I6i/z/ NF+znNLdFxgNdD6J04aisGFzN/w9sSjsu74pcEgFKY3MT0JbHnVYKqKQOTb/Qivs 1x/Vud9fCj3kBNHpiBOGDPb4a26izNc= Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTPSA id b84b76a2 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Sat, 29 May 2021 15:27:01 -0500 (CDT) MIME-Version: 1.0 Date: Sat, 29 May 2021 15:27:01 -0500 From: Mark Kane To: Vladimir Kondratyev Cc: usb@freebsd.org, hps@selasky.org Subject: Re: eGalax USB touchscreen issues In-Reply-To: <324d49ca-1c0e-659d-194d-ece4d5f7f5e2@FreeBSD.org> References: <324d49ca-1c0e-659d-194d-ece4d5f7f5e2@FreeBSD.org> User-Agent: Roundcube Webmail/1.4.6 Message-ID: <0ae3fec48e2c351d2c006f4ba4932cd7@kane.mn> X-Sender: mark@kane.mn Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FstQ80mMnz4ZVj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kane.mn header.s=stinger header.b=Fq931R8P; dmarc=pass (policy=none) header.from=kane.mn; spf=pass (mx1.freebsd.org: domain of mark@kane.mn designates 104.128.58.83 as permitted sender) smtp.mailfrom=mark@kane.mn X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[kane.mn:s=stinger]; FREEFALL_USER(0.00)[mark]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:104.128.58.83]; MIME_GOOD(-0.10)[text/plain]; RBL_DBL_DONT_QUERY_IPS(0.00)[104.128.58.83:from]; SPAMHAUS_ZRD(0.00)[104.128.58.83:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[kane.mn:+]; DMARC_POLICY_ALLOW(-0.50)[kane.mn,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:30455, ipnet:104.128.58.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[usb] 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: Sat, 29 May 2021 20:27:13 -0000 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: 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"