From owner-freebsd-x11@freebsd.org Thu Apr 15 19:11:18 2021 Return-Path: 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 5731A5D3236 for ; Thu, 15 Apr 2021 19:11:18 +0000 (UTC) (envelope-from freebsd@grem.de) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_CHACHA20_POLY1305_SHA256 (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 "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FLpps0nfwz4kbb; Thu, 15 Apr 2021 19:11:16 +0000 (UTC) (envelope-from freebsd@grem.de) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id e6014e07; Thu, 15 Apr 2021 19:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; s=20180501; bh=u2cECLad51LCSn SN6Z+LVe1cAKY=; b=LwQkasTuC4EczyjC2tQB/p6s9GN/Kbv4zawqXFM7T5MtYt sF56s1CO1cp0k+q0LqirvAKsOFr1YgVqrE0etsC+qAZlSsD/lFO5PR0FhXKlLA0V nLv8SRhjonimEGrCIU9iaKnzfhugrN3Z9Om/HbTR7LYExLnXu1pxCuw9TXU4lwSv mNnuh/7l+F/q1q1Me43Q+gzomELfuyGozns3P7uU5Pl2VZh7bEQrtZRyq+BjK63I 22VMQRqmVCG+/VckN9u2cJvCmN2rdHLEmWXuJNyQNmzuiC94IRpqQaV3kA4JmbbW uAnOhwNdnubI9GmNFJQRWyD1UP1waSW89X8BsQjw== DomainKey-Signature: a=rsa-sha1; c=nofws; d=grem.de; h=content-type :content-transfer-encoding:mime-version:subject:from:in-reply-to :date:cc:message-id:references:to; q=dns; s=20180501; b=bNf5xJp8 UILe8hUNgtgogtAG+Cf0wLGCLFUWWZQFoBD8oH6pNrit6O7ACT+vvBjzNZD+6w+T v3EGCpUh8bm3vhOCQeyV9Cr2zsQj1Ibfh/xKTKODu8Ur0NwfnXWfakU89lq7Ez0o V0mBWFRZiyjDQtvJgipfUZpDvnyezJ5wgkrz32cWONo0EeyGa6pDWTlLzhs6bLYH ZHS/MIZRqeQZhbscq2iWS8YSFwQX4G0ywHHP6qG1aXFvSmRTIxxhtCineGvI4V9O 3RjQWfKg1mZo69bhEfkJg7NcsE3LKlX3AWslrRAsdfcCHT2HbNr7myCQlRz3QiBY xIJdezTMc9vSmA== Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 2049ebd7 (TLSv1.3:AEAD-CHACHA20-POLY1305-SHA256:256:NO); Thu, 15 Apr 2021 19:11:13 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Subject: Re: (solved) Re: mouse scrolling activates back/forward in browser From: Michael Gmelin In-Reply-To: <717e4ad7-07f5-c5fa-9f16-832eb724dc48@klop.ws> Date: Thu, 15 Apr 2021 21:11:12 +0200 Cc: freebsd-x11@freebsd.org Message-Id: <6FC4DD6A-188F-44C3-87EF-CF008A463FB6@grem.de> References: <717e4ad7-07f5-c5fa-9f16-832eb724dc48@klop.ws> To: Ronald Klop X-Mailer: iPhone Mail (18D70) X-Rspamd-Queue-Id: 4FLpps0nfwz4kbb X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=grem.de header.s=20180501 header.b=LwQkasTu; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd@grem.de designates 213.239.217.29 as permitted sender) smtp.mailfrom=freebsd@grem.de X-Spamd-Result: default: False [-1.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[grem.de:s=20180501]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:213.239.217.29/32]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grem.de]; NEURAL_HAM_LONG(-1.00)[-1.000]; SPAMHAUS_ZRD(0.00)[213.239.217.29:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[grem.de:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[213.239.217.29:from]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-x11]; FORGED_RECIPIENTS(2.00)[m:ronald-lists@klop.ws,s:grembo@freebsd.org] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Apr 2021 19:11:18 -0000 > On 15. Apr 2021, at 20:54, Ronald Klop wrote: >=20 > =EF=BB=BFOn 4/15/21 9:53 AM, Ronald Klop wrote: >> 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 but= ton 8 and 9. >> I see it generating a ButtonPress 8/9 if I go down and than up. And a But= tonRelease 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. That=E2=80=99s because we switched to udev/libinput by default around that t= ime. >> https://lists.freebsd.org/pipermail/freebsd-ports/2020-March/117879.html B= ut didn't have time to look into it. >> Any thoughts or similar experiences? >> Regards, >> Ronald. >=20 >=20 > Some more googling found this: https://forums.freebsd.org/threads/mouse-wh= eel-strange-behavior-with-firefox.57494/ >=20 > Just removed button 8 and 9. > xmodmap -e "pointer =3D 1 2 3 4 5 6 7 0 0 10 11 12" >=20 > Still don't understand the root cause of this, but this helps a lot. >=20 Could you share the output of: - libinput list-devices - xinput list Then, for each mouse device shown by `xinput list', the output of `xinput li= st-props '. (xinput run in a xterm or similar using some utf-8 locale, e.g. LANG=3Den_US= .UTF-8). And just to be sure, double check which config files exist in /etc/X11 and /= usr/local/etc/xorg.d. Best, Michael > Regards, > Ronald. >=20 >=20 >> Output of xev: >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x3200002, time 183573903, (25,45), root:(968,1279), >> state 0x1000, button 5, same_screen YES >> LeaveNotify event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x0, time 183573903, (25,45), root:(968,1279), >> mode NotifyUngrab, detail NotifyInferior, same_screen YES, >> focus YES, state 0 >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x3200002, time 183575432, (25,45), root:(968,1279), >> state 0x0, button 5, same_screen YES >> EnterNotify event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x0, time 183575432, (25,45), root:(968,1279), >> mode NotifyGrab, detail NotifyInferior, same_screen YES, >> focus YES, state 4096 >> KeymapNotify event, serial 38, synthetic NO, window 0x0, >> keys: 29 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x3200002, time 183575432, (25,45), root:(968,1279), >> state 0x1000, button 5, same_screen YES >> LeaveNotify event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x0, time 183575432, (25,45), root:(968,1279), >> mode NotifyUngrab, detail NotifyInferior, same_screen YES, >> focus YES, state 0 >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x3200002, time 183576483, (25,45), root:(968,1279), >> state 0x0, button 4, same_screen YES >> EnterNotify event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x0, time 183576483, (25,45), root:(968,1279), >> mode NotifyGrab, detail NotifyInferior, same_screen YES, >> focus YES, state 2048 >> KeymapNotify event, serial 38, synthetic NO, window 0x0, >> keys: 29 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x3200002, time 183576483, (25,45), root:(968,1279), >> state 0x800, button 4, same_screen YES >> LeaveNotify event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x0, time 183576483, (25,45), root:(968,1279), >> mode NotifyUngrab, detail NotifyInferior, same_screen YES, >> focus YES, state 0 >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x3200002, time 183576483, (25,45), root:(968,1279), >> state 0x0, button 8, same_screen YES >> EnterNotify event, serial 38, synthetic NO, window 0x3200001, >> root 0x51d, subw 0x0, time 183576483, (25,45), root:(968,1279), >> mode NotifyGrab, detail NotifyInferior, same_screen YES, >> focus YES, state 0 >> KeymapNotify event, serial 38, synthetic NO, window 0x0, >> keys: 29 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 >> $ xev | grep -i button # for a shorter list >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 5, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x1000, button 5, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 5, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x1000, button 5, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 5, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x1000, button 5, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 5, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x1000, button 5, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 4, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x800, button 4, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 8, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 9, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 4, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x800, button 4, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 4, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x800, button 4, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 4, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x800, button 4, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 4, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x800, button 4, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 4, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x800, button 4, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 4, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x800, button 4, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 5, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x1000, button 5, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 8, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 9, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 5, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x1000, button 5, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 5, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x1000, button 5, same_screen YES >> ButtonPress event, serial 38, synthetic NO, window 0x3200001, >> state 0x0, button 5, same_screen YES >> ButtonRelease event, serial 38, synthetic NO, window 0x3200001, >> state 0x1000, button 5, same_screen YES >> _______________________________________________ >> freebsd-x11@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-x11 >> To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-x11@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-x11 > To unsubscribe, send any mail to "freebsd-x11-unsubscribe@freebsd.org"