From nobody Thu Nov 09 17:30:53 2023 X-Original-To: freebsd-x11@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 UTF8SMTP id 4SR8BJ4Gmxz50dJM for ; Thu, 9 Nov 2023 17:31:04 +0000 (UTC) (envelope-from freebsd-x11@dino.sk) Received: from cm0.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with UTF8SMTPS id 4SR8BH3R7Yz4VKk for ; Thu, 9 Nov 2023 17:31:03 +0000 (UTC) (envelope-from freebsd-x11@dino.sk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-x11@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-x11@dino.sk; dmarc=none Received: from zeta.dino.sk ([84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1.3,256bits,TLS_AES_256_GCM_SHA384) by cm0.netlabit.sk with ESMTPSA id 000000000242067D.00000000654D174E.0001070A; Thu, 09 Nov 2023 18:30:54 +0100 Date: Thu, 9 Nov 2023 18:30:53 +0100 From: Milan Obuch To: freebsd-x11@freebsd.org Subject: Re: Touch screen with X multi monitor setup Message-ID: <20231109183053.4a9e3301@zeta.dino.sk> In-Reply-To: References: <20231109091010.349608ef@zeta.dino.sk> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) List-Id: X11 List-Archive: https://lists.freebsd.org/archives/freebsd-x11 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-x11@freebsd.org X-BeenThere: freebsd-x11@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-x11@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[dino.sk]; ARC_NA(0.00)[]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4SR8BH3R7Yz4VKk X-Spamd-Bar: --- On Thu, 9 Nov 2023 10:47:56 -0500 Dennis Clarke wrote: > On 11/9/23 03:10, Milan Obuch wrote: > > Hi, > > > > after some years using Acer T231H1 monitor for its monitor role, I > > decided now to try its touch screen interface. It uses USB > > interface, plugging it into my workstation shows just > > > > I also brought home a large touch screen back in 2014 or so. It > is actually an HP branded "digital display": > > LD4220tm LCD Interactive Display model XH216AA [ snip ] > s$ xrandr > Screen 0: minimum 320 x 200, current 5760 x 1080, maximum 16384 x > 16384 DisplayPort-0 connected primary 1920x1080+0+0 (normal left > inverted right x axis y axis) 930mm x 523mm > 1920x1080 60.00*+ 50.00 59.94 [ snip ] > DisplayPort-1 connected 1920x1080+1920+0 (normal left inverted right > x axis y axis) 521mm x 293mm > 1920x1080 60.00*+ 50.00 59.94 [ snip ] > DisplayPort-2 connected 1920x1080+3840+0 (normal left inverted right > x axis y axis) 521mm x 293mm > 1920x1080 60.00*+ 50.00 59.94 [ snip ] > DisplayPort-3 disconnected (normal left inverted right x axis y axis) > s$ > > So there you see Screen 0 on DisplayPort-0 where the resolution is > reported as 5760 x 1080. If I try to use the touch screen feature it > just maps the single monitor over that entire 5760 pixel wide stuff. So this situation is basically the same as that of mine. > > Acer monitor with touch screen is connected via DVI-D-1 connector in > > this case. Problem is absolute location of touch being not correct, > > coordinate Y (up/down) is OK, but coordinate X (left/right) is not. [ snip ] > I have not figured it out either but am willing to experiment a bit > and see what happens. Maybe we can sort out whatever magic is > required and here I do see : > > https://wiki.archlinux.org/title/Touchscreen I'll looke there for some ideas... > > And, one more idea, how could I use multiple touch screen monitors? > > At present, I have no such setup, but there are various small > > computers with multiple video connectors, often dual HDMI, so I can > > imagine it could be usefull. And how about rotated screen? For > > tablets and touch screen notebooks, it could be often the case (my > > GPD small notebook, not touch screen, has 1280x720 resolution, but > > it is actually rotated 720x1280 screen). > > Exactly the right questions. I am thinking that all my monitors can be > touch screen but then we need to sort out the mapping of the input. > Here I did find about something called libinput-tools in Debian Linux. Input, input, input... Ha! There is x11/xinput port, installing it, looking into xinput.1 man page, issuing xinput --map-to-output 12 DVI-D-1 et voila, it works as expected now! Thanks for hint! I am going to test it a bit more, but basically I am done now with this task. Regards, Milan