From owner-freebsd-x11@freebsd.org Fri Apr 16 19:05:11 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 31B2D5DBC37 for ; Fri, 16 Apr 2021 19:05:11 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FMQdL0yJZz4jwY for ; Fri, 16 Apr 2021 19:05:09 +0000 (UTC) (envelope-from ronald-lists@klop.ws) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=klop.ws; s=mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version: Date:Message-ID:References:Cc:To:Subject:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=HPqKdAEgs+DUiHGGIFN1YCwUd45SP+ItjRM7Fzha8TE=; b=o08AqpRpSIPmFVA51lxT1vxx8D SYeM5Ti0P3JcZBn4iMKjJZAa2EE5Hkpqzv7g7QwHqunYtoBXvk77B0qpTRp6K1V9QX5fOrSwi9kw2 t4EQdxqEa0vbvMwWtyGbPPJ6c1+2HZ3o4kaMYDMLEhSWp7THU/FInl+EcS2fUKMiKRXY=; From: Ronald Klop Subject: Re: (solved) Re: mouse scrolling activates back/forward in browser To: Michael Gmelin Cc: freebsd-x11@freebsd.org References: <717e4ad7-07f5-c5fa-9f16-832eb724dc48@klop.ws> <6FC4DD6A-188F-44C3-87EF-CF008A463FB6@grem.de> Message-ID: Date: Fri, 16 Apr 2021 21:05:07 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <6FC4DD6A-188F-44C3-87EF-CF008A463FB6@grem.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.greenhost.nl X-Spam-Level: / X-Spam-Score: -0.4 X-Spam-Status: No, score=-0.4 required=5.0 tests=ALL_TRUSTED, BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A autolearn=disabled version=3.4.2 X-Scan-Signature: 0ba05ecae3948e3e0ce98800e73d3eec X-Rspamd-Queue-Id: 4FMQdL0yJZz4jwY X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=klop.ws header.s=mail header.b=o08AqpRp; dmarc=pass (policy=none) header.from=klop.ws; spf=pass (mx1.freebsd.org: domain of ronald-lists@klop.ws designates 195.190.28.88 as permitted sender) smtp.mailfrom=ronald-lists@klop.ws X-Spamd-Result: default: False [-2.00 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[klop.ws:s=mail]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:195.190.28.64/27]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[klop.ws:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[195.190.28.88:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[klop.ws,none]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_VERYGOOD(0.00)[195.190.28.88:from]; ASN(0.00)[asn:47172, ipnet:195.190.28.0/24, country:NL]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-x11] 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: Fri, 16 Apr 2021 19:05:11 -0000 On 4/15/21 9:11 PM, Michael Gmelin wrote: > > >> On 15. Apr 2021, at 20:54, Ronald Klop wrote: >> >> On 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 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. > > That’s because we switched to udev/libinput by default around that time. > >>> https://lists.freebsd.org/pipermail/freebsd-ports/2020-March/117879.html But didn't have time to look into it. >>> Any thoughts or similar experiences? >>> Regards, >>> Ronald. >> >> >> Some more googling found this: https://forums.freebsd.org/threads/mouse-wheel-strange-behavior-with-firefox.57494/ >> >> Just removed button 8 and 9. >> xmodmap -e "pointer = 1 2 3 4 5 6 7 0 0 10 11 12" >> >> Still don't understand the root cause of this, but this helps a lot. >> > > Could you share the output of: > - libinput list-devices Device: System mouse Kernel: /dev/input/event0 Group: 1 Seat: seat0, default Capabilities: pointer Tap-to-click: n/a Tap-and-drag: n/a Tap drag lock: n/a Left-handed: disabled Nat.scrolling: disabled Middle emulation: disabled Calibration: n/a Scroll methods: button Click methods: none Disable-w-typing: n/a Accel profiles: flat *adaptive Rotation: n/a Device: System keyboard multiplexer Kernel: /dev/input/event1 Group: 2 Seat: seat0, default Capabilities: keyboard Tap-to-click: n/a Tap-and-drag: n/a Tap drag lock: n/a Left-handed: n/a Nat.scrolling: n/a Middle emulation: n/a Calibration: n/a Scroll methods: none Click methods: none Disable-w-typing: n/a Accel profiles: n/a Rotation: n/a Device: AT keyboard Kernel: /dev/input/event2 Group: 3 Seat: seat0, default Capabilities: keyboard Tap-to-click: n/a Tap-and-drag: n/a Tap drag lock: n/a Left-handed: n/a Nat.scrolling: n/a Middle emulation: n/a Calibration: n/a Scroll methods: none Click methods: none Disable-w-typing: n/a Accel profiles: n/a Rotation: n/a Device: IntelliMouse Explorer Kernel: /dev/input/event3 Group: 4 Seat: seat0, default Capabilities: pointer Tap-to-click: n/a Tap-and-drag: n/a Tap drag lock: n/a Left-handed: disabled Nat.scrolling: disabled Middle emulation: disabled Calibration: n/a Scroll methods: button Click methods: none Disable-w-typing: n/a Accel profiles: flat *adaptive Rotation: n/a > - xinput list ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)] ⎜ ↳ System mouse id=6 [slave pointer (2)] ⎜ ↳ IntelliMouse Explorer id=9 [slave pointer (2)] ⎜ ↳ (unnamed) id=10 [slave pointer (2)] ⎣ Virtual core keyboard id=3 [master keyboard (2)] ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)] ↳ System keyboard multiplexer id=7 [slave keyboard (3)] ↳ AT keyboard id=8 [slave keyboard (3)] > > Then, for each mouse device shown by `xinput list', the output of `xinput list-props '. $ xinput list-props 2 Device 'Virtual core pointer': Device Enabled (117): 1 Coordinate Transformation Matrix (118): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 $ xinput list-props 4 Device 'Virtual core XTEST pointer': Device Enabled (117): 1 Coordinate Transformation Matrix (118): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 XTEST Device (229): 1 $ xinput list-props 6 Device 'System mouse': Device Enabled (117): 1 Coordinate Transformation Matrix (118): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 libinput Natural Scrolling Enabled (240): 0 libinput Natural Scrolling Enabled Default (241): 0 libinput Scroll Methods Available (242): 0, 0, 1 libinput Scroll Method Enabled (243): 0, 0, 0 libinput Scroll Method Enabled Default (244): 0, 0, 0 libinput Button Scrolling Button (245): 2 libinput Button Scrolling Button Default (246): 2 libinput Button Scrolling Button Lock Enabled (247): 0 libinput Button Scrolling Button Lock Enabled Default (248): 0 libinput Middle Emulation Enabled (249): 0 libinput Middle Emulation Enabled Default (250): 0 libinput Accel Speed (251): 0.000000 libinput Accel Speed Default (252): 0.000000 libinput Accel Profiles Available (253): 1, 1 libinput Accel Profile Enabled (254): 1, 0 libinput Accel Profile Enabled Default (255): 1, 0 libinput Left Handed Enabled (256): 0 libinput Left Handed Enabled Default (257): 0 libinput Send Events Modes Available (258): 1, 0 libinput Send Events Mode Enabled (259): 0, 0 libinput Send Events Mode Enabled Default (260): 0, 0 Device Node (261): "/dev/input/event0" Device Product ID (262): 0, 0 libinput Drag Lock Buttons (263): libinput Horizontal Scroll Enabled (264): 1 $ xinput list-props 9 Device 'IntelliMouse Explorer': Device Enabled (117): 1 Coordinate Transformation Matrix (118): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 libinput Natural Scrolling Enabled (240): 0 libinput Natural Scrolling Enabled Default (241): 0 libinput Scroll Methods Available (242): 0, 0, 1 libinput Scroll Method Enabled (243): 0, 0, 0 libinput Scroll Method Enabled Default (244): 0, 0, 0 libinput Button Scrolling Button (245): 2 libinput Button Scrolling Button Default (246): 2 libinput Button Scrolling Button Lock Enabled (247): 0 libinput Button Scrolling Button Lock Enabled Default (248): 0 libinput Middle Emulation Enabled (249): 0 libinput Middle Emulation Enabled Default (250): 0 libinput Accel Speed (251): 0.000000 libinput Accel Speed Default (252): 0.000000 libinput Accel Profiles Available (253): 1, 1 libinput Accel Profile Enabled (254): 1, 0 libinput Accel Profile Enabled Default (255): 1, 0 libinput Left Handed Enabled (256): 0 libinput Left Handed Enabled Default (257): 0 libinput Send Events Modes Available (258): 1, 0 libinput Send Events Mode Enabled (259): 0, 0 libinput Send Events Mode Enabled Default (260): 0, 0 Device Node (261): "/dev/input/event3" Device Product ID (262): 2, 1 libinput Drag Lock Buttons (263): libinput Horizontal Scroll Enabled (264): 1 $ xinput list-props 10 Device '(unnamed)': Device Enabled (117): 1 Coordinate Transformation Matrix (118): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 Device Accel Profile (236): 0 Device Accel Constant Deceleration (237): 1.000000 Device Accel Adaptive Deceleration (238): 1.000000 Device Accel Velocity Scaling (239): 10.000000 > > (xinput run in a xterm or similar using some utf-8 locale, e.g. LANG=en_US.UTF-8). xfce4-terminal with LANG=C.UTF-8 > > And just to be sure, double check which config files exist in /etc/X11 and /usr/local/etc/xorg.d. /etc/X11 is empty /usr/local/etc/xorg.d does not exist /usr/local/etc/X11/xorg.conf.d/ is empty NB: all information above is retrieved while the xmodmap setting was active. I don't know if that matters. Regards, Ronald. > > Best, > Michael > >> Regards, >> Ronald. >> >> >>> 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" >> >> _______________________________________________ >> 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" >