Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2021 11:18:01 +0200 (CEST)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Michael Gmelin <freebsd@grem.de>
Cc:        freebsd-x11@freebsd.org
Subject:   Re: (solved) Re: mouse scrolling activates back/forward in browser
Message-ID:  <114618704.101.1618910281597@localhost>
In-Reply-To: <20210418224959.1343d2f5@bsd64.grem.de>
References:  <dcef9454-285c-fa97-ed42-4b15b74cd77c@klop.ws> <806D1887-2275-48C5-9CA4-715E3F57C6DB@grem.de> <47e51983-b83f-8248-29ad-c23db2523610@klop.ws> <20210418224959.1343d2f5@bsd64.grem.de>

next in thread | previous in thread | raw e-mail | index | archive | help
=20
Van: Michael Gmelin <freebsd@grem.de>
Datum: zondag, 18 april 2021 22:49
Aan: Ronald Klop <ronald-lists@klop.ws>
CC: Michael Gmelin <freebsd@grem.de>, freebsd-x11@freebsd.org
Onderwerp: Re: (solved) Re: mouse scrolling activates back/forward in brows=
er
>=20
>=20
>=20
> On Fri, 16 Apr 2021 21:38:29 +0200
> Ronald Klop <ronald-lists@klop.ws> wrote:
>=20
> > On 4/16/21 9:14 PM, Michael Gmelin wrote:
> > >
> > >  =20
> > >> On 16. Apr 2021, at 21:05, Ronald Klop <ronald-lists@klop.ws>
> > >> wrote:
> > >>
> > >> On 4/15/21 9:11 PM, Michael Gmelin wrote: =20
> > >>>>> On 15. Apr 2021, at 20:54, Ronald Klop <ronald-lists@klop.ws>
> > >>>>> wrote: =20
> > >>>>
> > >>>> On 4/15/21 9:53 AM, Ronald Klop wrote: =20
> > >>>>> Hi,
> > >>>>> When I use the scrollwheel of the mouse my browser triggers
> > >>>>> back/forward. What happens is this: If I scroll up (button 4)
> > >>>>> after scrolling down (button 5) it triggers button 8 and 9. I
> > >>>>> see it generating a ButtonPress 8/9 if I go down and than up.
> > >>>>> And a ButtonRelease 8/9 if I first go up and than down. I have
> > >>>>> no config in /etc/X11. Xorg logs:
> > >>>>> https://www.klop.ws/Xorg.0.log This happens on the trackpad of
> > >>>>> the laptop and with a bluetooth connected mouse. What makes it
> > >>>>> a little more complex is that this is running FreeBSD 14 in
> > >>>>> VirtualBox on Windows 10 with. NB: It happened in Virtualbox 5
> > >>>>> and now in 6 also. This started around a year ago. =20
> > >>> That=E2=80=99s because we switched to udev/libinput by default arou=
nd
> > >>> that time. =20
> > >>>>> https://lists.freebsd.org/pipermail/freebsd-ports/2020-March/1178=
79.html
> > >>>>> But didn't have time to look into it. Any thoughts or similar
> > >>>>> experiences? Regards,
> > >>>>> Ronald. =20
> > >>>>
> > >>>>
> > >>>> Some more googling found this:
> > >>>> https://forums.freebsd.org/threads/mouse-wheel-strange-behavior-wi=
th-firefox.57494/
> > >>>>
> > >>>> Just removed button 8 and 9.
> > >>>> xmodmap -e "pointer =3D 1 2 3 4 5 6 7 0 0 10 11 12"
>=20
> Hi Ronald,
>=20
> I could reproduce the issue in VirtualBox. When checking the output of
> `libinput debug-events' I can see button press and release events for
> BTN_SIDE and BTN_EXTRA (which maps to back and forward by default) every
> time scrolling changes direction. After that, the proper AXIS events are
> shown. Scrolling left and right also emits those events - therefore X11
> sees button 8 and 9 instead of buttons 6 and 7. So far so good. The
> problem also happens when an evdev driver is used, so it's not a
> libinput problem.
>=20
> Instead of removing buttons with xmodmap, you can also use
>=20
>   xinput set-button-map "IntelliMouse Explorer" 1 2 3 4 5 6 7 0 0
>=20
> e.g., in ~/.xinitrc, the effect is the same.
>=20
> An alternative approach is to change virtualbox to use the USB Tablet
> driver:
>=20
>   VBoxManage modifyvm "VM Name" --mouse usbtablet
>=20
> (or using the VirtualBox GUI) and then, inside the VM, do:
>=20
>   pkg install utouch-kmod xf86-input-evdev
>   echo "utouch_load=3DYES" >>/boot/loader.conf
>=20
> Create a file called /usr/local/etc/X11/xorg.d/99-vbox.conf,
> containing:
>=20
>   Section "InputClass"
>       Identifier "VirtualBox Mouse"
>       MatchIsTouchscreen "on"
>       MatchDevicePath "/dev/input/event*"
>       Driver "evdev"
>   EndSection
>=20
> and reboot, then start X.
> (in case you're not rebooting, do "kldload utouch; kldunload uhid").
>=20
> You also need to make sure that Mouse Integration is enabled in
> VirtualBox.
>=20
> This will essentially have the same net-result: Vertical scrolling
> works okay, no forward/back button issues, no horizontal scrolling. So
> it's not necessarily worth the trouble, but I wanted to document it
> anyway for future reference.
>=20
> Ideally, there would be a solution that would allow the mouse to
> actually emit horizontal scroll events. I suspect that the reason why
> this isn't working with PS/2 emulation is in our IntelliMouse Explorer
> driver, but I don't know for sure.
>=20
> Best,
> Michael
>=20
> --=20
> Michael Gmelin
>=20
>=20
>=20


Hi,

Thank you for your effort in reproducing the issue and the excellent explan=
ation. I will try the utouch options in the near future and see what works =
best for me.

Regards,
Ronald.

=20
From owner-freebsd-x11@freebsd.org  Tue Apr 20 09:36:16 2021
Return-Path: <owner-freebsd-x11@freebsd.org>
Delivered-To: freebsd-x11@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 DC8375EDF91
 for <freebsd-x11@mailman.nyi.freebsd.org>;
 Tue, 20 Apr 2021 09:36:16 +0000 (UTC)
 (envelope-from portscout@FreeBSD.org)
Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3])
 by mx1.freebsd.org (Postfix) with ESMTP id 4FPdq45qWvz4WMv
 for <freebsd-x11@freebsd.org>; Tue, 20 Apr 2021 09:36:16 +0000 (UTC)
 (envelope-from portscout@FreeBSD.org)
Received: by mailman.nyi.freebsd.org (Postfix)
 id C803F5EE027; Tue, 20 Apr 2021 09:36:16 +0000 (UTC)
Delivered-To: x11@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 C7CF35EDF90
 for <x11@mailman.nyi.freebsd.org>; Tue, 20 Apr 2021 09:36:16 +0000 (UTC)
 (envelope-from portscout@FreeBSD.org)
Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org
 [IPv6:2610:1c1:1:606c::19:3])
 (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 RSA-PSS (4096 bits) client-digest SHA256)
 (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 4FPdq45MTPz4WMt
 for <x11@freebsd.org>; Tue, 20 Apr 2021 09:36:16 +0000 (UTC)
 (envelope-from portscout@FreeBSD.org)
Received: from portscout.nyi.freebsd.org (portscout.nyi.freebsd.org
 [IPv6:2610:1c1:1:606c::50:21])
 (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AB4C21055D
 for <x11@freebsd.org>; Tue, 20 Apr 2021 09:36:16 +0000 (UTC)
 (envelope-from portscout@FreeBSD.org)
Received: from portscout.nyi.freebsd.org ([127.0.1.10])
 by portscout.nyi.freebsd.org (8.15.2/8.15.2) with ESMTP id 13K9aGcf055807
 for <x11@freebsd.org>; Tue, 20 Apr 2021 09:36:16 GMT
 (envelope-from portscout@FreeBSD.org)
Received: (from portscout@localhost)
 by portscout.nyi.freebsd.org (8.15.2/8.15.2/Submit) id 13K9aGuu055806;
 Tue, 20 Apr 2021 09:36:16 GMT (envelope-from portscout@FreeBSD.org)
Message-Id: <202104200936.13K9aGuu055806@portscout.nyi.freebsd.org>
X-Authentication-Warning: portscout.nyi.freebsd.org: portscout set sender to
 portscout@FreeBSD.org using -f
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Content-Type: text/plain
MIME-Version: 1.0
Date: Tue, 20 Apr 2021 09:36:16 +0000
From: portscout@FreeBSD.org
To: x11@freebsd.org
Subject: FreeBSD ports you maintain which are out of date
X-Mailer: portscout/0.8.1
X-BeenThere: freebsd-x11@freebsd.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: X11 on FreeBSD -- maintaining and support <freebsd-x11.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-x11>,
 <mailto:freebsd-x11-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-x11/>;
List-Post: <mailto:freebsd-x11@freebsd.org>
List-Help: <mailto:freebsd-x11-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-x11>,
 <mailto:freebsd-x11-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Apr 2021 09:36:16 -0000

Dear port maintainer,

The portscout new distfile checker has detected that one or more of your
ports appears to be out of date. Please take the opportunity to check
each of the ports listed below, and if possible and appropriate,
submit/commit an update. If any ports have already been updated, you can
safely ignore the entry.

You will not be e-mailed again for any of the port/version combinations
below.

Full details can be found at the following URL:
http://portscout.freebsd.org/x11@freebsd.org.html


Port                                            | Current version | New version
------------------------------------------------+-----------------+------------
graphics/drm-current-kmod                       | 5.4.92.g20210419| drm_v5.4.92_3
------------------------------------------------+-----------------+------------
graphics/drm-devel-kmod                         | 5.4.92.g20210419| drm_v5.4.92_3
------------------------------------------------+-----------------+------------
graphics/drm-fbsd13-kmod                        | 5.4.92.g20210419| drm_v5.4.92_3
------------------------------------------------+-----------------+------------
x11/linux-nvidia-libs                           | 460.73.01       | 465.24.02
------------------------------------------------+-----------------+------------


If any of the above results are invalid, please check the following page
for details on how to improve portscout's detection and selection of
distfiles on a per-port basis:

http://portscout.freebsd.org/info/portscout-portconfig.txt

Reported by:	portscout!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?114618704.101.1618910281597>