From nobody Sat Feb 17 10:10:26 2024 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 ESMTP id 4TcPgr6d9rz59vgD for ; Sat, 17 Feb 2024 10:10:32 +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 ESMTPS id 4TcPgr2zKlz3yfB for ; Sat, 17 Feb 2024 10:10:32 +0000 (UTC) (envelope-from freebsd-x11@dino.sk) Authentication-Results: mx1.freebsd.org; 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 0000000002BC7AC5.0000000065D08614.00002815; Sat, 17 Feb 2024 11:10:28 +0100 Date: Sat, 17 Feb 2024 11:10:26 +0100 From: Milan Obuch To: Michael Gmelin Cc: freebsd-x11@freebsd.org Subject: Re: Touch screen zoom - any method to disable? Message-ID: <20240217111026.70b70ac5@zeta.dino.sk> In-Reply-To: References: <20240216133504.761876d9@zeta.dino.sk> X-Mailer: Claws Mail 3.20.0 (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=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4TcPgr2zKlz3yfB X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK] On Fri, 16 Feb 2024 18:07:22 +0100 Michael Gmelin wrote: > > On 16. Feb 2024, at 13:35, Milan Obuch wrote: > >=20 > > =EF=BB=BFOn Fri, 16 Feb 2024 13:04:14 +0100 > > Michael Gmelin wrote: > > =20 > >>>> On 16. Feb 2024, at 12:46, Milan Obuch > >>>> wrote: =20 > >>>=20 > >>> =EF=BB=BFHi, > >>>=20 > >>> I have a terminal with touch screen running luakit with custom > >>> application. Basically, it works as intended, however, sometimes > >>> user unknowingly zooms into part of screen. > >>>=20 > >>> While relatively easy, all that's necessary is unzoom it using two > >>> fingers (the same way as used on smartphones), it scares this > >>> user a bit. So the best way to handle it would be not allowing > >>> zoom to occur. > >>>=20 > >>> Is there a method to do this? Some configuration of X? My setup > >>> uses webcamd to create event file for touch screen and libinput > >>> driver to handle input event in X. =20 > >>=20 > >> Can you share the output of > >>=20 > >> xinput list > >>=20 > >> and for each of the devices shown > >>=20 > >> xinput list-props device > >>=20 > >> Cheers > >> =20 > >=20 > > At the moment, not for the real device, only for my workstation > > which shares similar configuration. However, the 'issue' of zoom is > > the same, so I hope any outcome would be relevant. > >=20 > > Here, 'xinput list' shows > >=20 > > =E2=8E=A1 Virtual core pointer id=3D2 [master > > pointer (3)] =E2=8E=9C =E2=86=B3 Virtual core XTEST pointer > > id=3D4 [slave pointer (2)] =E2=8E=9C =E2=86=B3 System mouse > > id=3D6 [slave pointer (2)] =E2=8E=9C =E2=86=B3 Compo= site USB PS2 > > Converter USB to PS2 Adaptor v1.09 id=3D11 [slave pointer > > (2)] =E2=8E=9C =E2=86=B3 AcerA Bell T231HlTouchScreen = id=3D12 > > [slave pointer (2)] =E2=8E=A3 Virtual core keyboard > > id=3D3 [master keyboard (2)] =E2=86=B3 Virtual core XTEST keyboard > > id=3D5 [slave keyboard (3)] =E2=86=B3 System keyboard multi= plexer > > id=3D7 [slave keyboard (3)] =E2=86=B3 Power Button > > id=3D8 [slave keyboard (3)] =E2=86=B3 AT ke= yboard > > id=3D9 [slave keyboard (3)] =E2=86= =B3 > > Composite USB PS2 Converter USB to PS2 Adaptor v1.09 id=3D10 > > [slave keyboard (3)] > >=20 > > and 'xinput list-props ' for all device listed (in > > numerical id order) is attached. (Far easier than handling mail > > wrapping issues.) =20 >=20 > Ok, this is a wild shot, but does >=20 > xinput disable 10 >=20 > help? > No. Actually, it is my main keyboard device, PS/2 connected via KVM switch via USB to PS/2 converter, and disabling it just disabled keyboard input (I have spare USB keyboard here so I was prepared for this, I was able to enable it after test). Zoom via touchscreen two finger gesture still worked (and unzoom as well). Regards, Milan