From nobody Thu Nov 09 15:47:56 2023 X-Original-To: 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 ESMTP id 4SR5vQ4kc7z50D1j for ; Thu, 9 Nov 2023 15:48:02 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mail.oetec.com (mail.oetec.com [108.160.241.186]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mail.oetec.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SR5vQ0G6Kz3dLF for ; Thu, 9 Nov 2023 15:48:01 +0000 (UTC) (envelope-from dclarke@blastwave.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=blastwave.org header.s=default header.b=lj2rlicD; spf=pass (mx1.freebsd.org: domain of dclarke@blastwave.org designates 108.160.241.186 as permitted sender) smtp.mailfrom=dclarke@blastwave.org; dmarc=pass (policy=quarantine) header.from=blastwave.org Received: from [172.16.35.9] (cpe8c6a8d4d360a-cm8c6a8d4d3608.cpe.net.cable.rogers.com [99.253.151.152]) (authenticated bits=0) by mail.oetec.com (8.17.1/8.16.1) with ESMTPSA id 3A9FlvqR087721 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 9 Nov 2023 10:47:58 -0500 (EST) (envelope-from dclarke@blastwave.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blastwave.org; s=default; t=1699544878; bh=PleMGjxZUcDrkr4LqYOQb7+l5JiTs43Y/Xqmu1gdaMU=; h=Date:Subject:To:References:From:In-Reply-To; b=lj2rlicDXNN7y7pq5jLvCzcTF1TdEtlUPK7JuwgKPh73PMpmfhc+UtkLthFgCJT2H xaTZj5bQWcC6Ha8l+wFGMxkwZg47aCFmyybo43o8kPqOatWDnDIUVqsIaVlGBhk8KZ oEZRTVulRbl7oNxRdI+d8SdCqt+NQBXTwmuslK/RcfQFP/OtRPTx7z+BI4ZS5KcIiZ lqEN/lpEhCQ2BYejU14ODdMHVY8bsBKUo+5X84HmF+7+jDOPw7uq72ja1cphemVUJY FWxF3Qs/kWWRoYJtquDWNWIpPAsgcOjwjjj3l0dk8c+PU7jb2O5rhqlBTh4hy/lt8o hVORYr+IeM2bw== Message-ID: Date: Thu, 9 Nov 2023 10:47:56 -0500 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: Touch screen with X multi monitor setup Content-Language: en-CA To: x11@freebsd.org References: <20231109091010.349608ef@zeta.dino.sk> From: Dennis Clarke Organization: GENUNIX In-Reply-To: <20231109091010.349608ef@zeta.dino.sk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-oetec-MailScanner-Information: Please contact the ISP for more information X-oetec-MailScanner-ID: 3A9FlvqR087721 X-oetec-MailScanner: Found to be clean X-oetec-MailScanner-From: dclarke@blastwave.org X-Spam-Status: No X-Spamd-Result: default: False [-4.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[blastwave.org,quarantine]; R_DKIM_ALLOW(-0.20)[blastwave.org:s=default]; R_SPF_ALLOW(-0.20)[+mx]; RCVD_IN_DNSWL_MED(-0.20)[108.160.241.186:from]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[x11@freebsd.org]; ASN(0.00)[asn:812, ipnet:108.160.240.0/20, country:CA]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[blastwave.org:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[x11@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4SR5vQ0G6Kz3dLF X-Spamd-Bar: ---- 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 I think it was intended to be used as some sort of touch interface installed in airports. At least that is my best guess because it has a backlit lamp that can light up a whole hallwall if one is not careful. However setting the lamp down to 5% brightness and le voilĂ  the thing is a really large and beautiful monitor. Complete with some sort of very scratch resistent glass. Sadly the thing weighs a lot ( 26Kg ) and so it needs its own rolling stand in order to mount it and maybe move it as a display in other rooms. It also drags 110 watts of power all the time. Not really an economy solution for power. In any case the touch screen function is also available via a USB port on the bottom where yes indeed I tried to use that feature. It baffled me also. The entire touch screen coordinates are mapped to the entire display size which may be multiple monitors. s$ s$ uname -a Linux sedna 6.5.7-genunix #1 SMP PREEMPT_DYNAMIC Mon Oct 16 07:59:00 GMT 2023 x86_64 GNU/Linux s$ 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 1680x1050 59.88 1280x1024 60.02 1440x900 60.00 1280x800 60.00 1280x720 60.00 50.00 59.94 1024x768 60.00 800x600 60.32 720x576 50.00 720x480 60.00 59.94 640x480 60.00 59.94 720x400 70.08 DisplayPort-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 521mm x 293mm 1920x1080 60.00*+ 50.00 59.94 1680x1050 59.88 1280x1024 75.02 60.02 1440x900 59.90 1280x960 60.00 1280x800 59.91 1152x864 75.00 1280x720 60.00 50.00 59.94 1440x576 50.00 1024x768 75.03 70.07 60.00 1440x480 60.00 59.94 832x624 74.55 800x600 72.19 75.00 60.32 56.25 720x576 50.00 720x480 60.00 59.94 640x480 75.00 66.67 60.00 59.94 720x400 70.08 DisplayPort-2 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 521mm x 293mm 1920x1080 60.00*+ 50.00 59.94 1680x1050 59.88 1280x1024 75.02 60.02 1440x900 59.90 1280x960 60.00 1280x800 59.91 1152x864 75.00 1280x720 60.00 50.00 59.94 1440x576 50.00 1024x768 75.03 70.07 60.00 1440x480 60.00 59.94 832x624 74.55 800x600 72.19 75.00 60.32 56.25 720x576 50.00 720x480 60.00 59.94 640x480 75.00 66.67 60.00 59.94 720x400 70.08 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. > 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. Yep. That is what I see also. > Could I describe it better? Nope! Perfect. > ... As it was not necessary for some time, I am using just what's > autoconfigured and changing setup with xrandr in multi monitor case. > 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 found graphics/tslib could be used for various touch screen > processing, I just have no understanding now where it would fit into > the whole thing... > I don't know either. Yet. > 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. I will do some experiments and see if I can get anything better than a crazy wide touch mapping across three monitors. -- -- Dennis Clarke RISC-V/SPARC/PPC/ARM/CISC UNIX and Linux spoken