From nobody Fri Aug 20 23:59:02 2021 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 68C63175CB70 for ; Fri, 20 Aug 2021 23:59:11 +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 4GrzBQ33xWz3PPd; Fri, 20 Aug 2021 23:59:10 +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 0279f658; Fri, 20 Aug 2021 18:59:02 -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=FPejcycplljGqhuAK99z+jemLqM2TEBn+MPM+39OPJ8=; b=q1HVz8MEPUgs JkUFBf2rZfjBlbMCCrmnjG39xsmrRvxQaWTUZ+2nIBpOJ9wsHnMh2v04OryJI1Lh VSNcGfK94gj7DpQ2AYVBlHFvsEkATJ2l2lB5rv98oiWtJyzr7Y9GOeTv51Gy8Wya j1J86w+Vdi872yZujtg7fKLtj5NmbPo= Received: from stinger.tntpowerhost.com (localhost [127.0.0.1]) by stinger.tntpowerhost.com (OpenSMTPD) with ESMTPSA id 430ef88d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 20 Aug 2021 18:59:02 -0500 (CDT) List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 Date: Fri, 20 Aug 2021 18:59:02 -0500 From: Mark Kane To: Vladimir Kondratyev Cc: usb@freebsd.org, hps@selasky.org Subject: Re: eGalax USB touchscreen issues In-Reply-To: <2091d52f-e7e8-4304-ffcc-4863f2a7e47f@FreeBSD.org> References: <324d49ca-1c0e-659d-194d-ece4d5f7f5e2@FreeBSD.org> <0ae3fec48e2c351d2c006f4ba4932cd7@kane.mn> <166dd4d4-24cd-c24b-d75e-9a34fa734358@FreeBSD.org> <36983ce5-8358-5a04-2377-46067d3c3c79@FreeBSD.org> <59ba07a0ecbdac36746fe18ea5f0559f@kane.mn> <92c855bf-a73a-bae5-fcdc-c5a88008739b@FreeBSD.org> <5e8cd8d75deff98e8db3352001ce8432@kane.mn> <858ac67e-14e2-730c-4a16-ca218e2c0bee@FreeBSD.org> <168b368c-3258-6416-42c5-a722e45bf14b@FreeBSD.org> <12706f32-be2e-1cda-5d90-53b4e80b0b52@FreeBSD.org> <3bfc252a7ef55b21d5e51c251a518d78@kane.mn> <1c3ebd54-3686-ff5f-d5be-5a42ddcd5469@FreeBSD.org> <2091d52f-e7e8-4304-ffcc-4863f2a7e47f@FreeBSD.org> User-Agent: Roundcube Webmail/1.4.6 Message-ID: X-Sender: mark@kane.mn Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GrzBQ33xWz3PPd X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=kane.mn header.s=stinger header.b=q1HVz8ME; 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]; NEURAL_HAM_LONG(-1.00)[-1.000]; 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]; 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)[] X-ThisMailContainsUnwantedMimeParts: N On 2021-08-17 05:33, Vladimir Kondratyev wrote: > You need resolution quirk in libinput quirks > > Try to create /usr/local/share/libinput/90-egalax.quirks file with > following content: > > [eGalax] > MatchUdevType=tablet > MatchVendor=0x0EEF > MatchProduct=0x0001 > AttrResolutionHint=26x43 Success! I tested 6 pre-2014 screens with this plus patches and the setrdesc.c workaround, they are all working now. Thanks very much again for all of your help! Side note: the 2014+ screens work well with no calibration however the pre-2014 screens do need calibrating. I got xlibinput_calibrator [1] mostly working and will look at porting it if I can figure out an issue with it crashing, unless there are any other recommended interactive calibration tools for libinput. [1] https://github.com/kreijack/xlibinput_calibrator