From owner-freebsd-questions@freebsd.org Sat Mar 27 03:05:59 2021 Return-Path: Delivered-To: freebsd-questions@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 20D185B75C0 for ; Sat, 27 Mar 2021 03:05:59 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [198.74.231.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F6kHp0943z4ccp for ; Sat, 27 Mar 2021 03:05:57 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [198.74.231.101]) by bucksport.safeport.com (8.14.5/8.14.5) with ESMTP id 12R35rHU049935 for ; Fri, 26 Mar 2021 23:05:53 -0400 (EDT) (envelope-from doug@safeport.com) Date: Fri, 26 Mar 2021 23:05:53 -0400 (EDT) From: Doug Denault To: freebsd-questions@FreeBSD.ORG Subject: xorg mouse et all solved -- was Xorg/Lenovo/drm revisited Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (bucksport.safeport.com [198.74.231.101]); Fri, 26 Mar 2021 23:05:53 -0400 (EDT) X-Rspamd-Queue-Id: 4F6kHp0943z4ccp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of doug@safeport.com designates 198.74.231.101 as permitted sender) smtp.mailfrom=doug@safeport.com X-Spamd-Result: default: False [-3.10 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[198.74.231.101:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:198.74.231.101]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[198.74.231.101:from:127.0.2.255]; DMARC_NA(0.00)[safeport.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_COUNT_ONE(0.00)[1]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11288, ipnet:198.74.228.0/22, country:US]; MAILMAN_DEST(0.00)[freebsd-questions]; ONCE_RECEIVED(0.10)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2021 03:05:59 -0000 First thanks Steve for leading into and through xinput and the like. The final answer sadly was buy a mouse, at least for now. I got loaned a very swishy gaming mouse that had a third button. Who know it was the scroll wheel (not me obviously). So when that worked I tried the two mice I had. One worked and one did not, hence one new mouse. I know from `xev -event button` that button 3 produces the same four events that a double-click does. One works and the other does not. The setting for the mouse are: xinput --list-props 7 Device 'System mouse': Device Enabled (116): 1 Coordinate Transformation Matrix (117): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000 libinput Natural Scrolling Enabled (253): 0 libinput Natural Scrolling Enabled Default (254): 0 libinput Scroll Methods Available (255): 0, 0, 1 libinput Scroll Method Enabled (256): 0, 0, 0 libinput Scroll Method Enabled Default (257): 0, 0, 0 libinput Button Scrolling Button (258): 2 libinput Button Scrolling Button Default (259): 2 libinput Button Scrolling Button Lock Enabled (260): 0 libinput Button Scrolling Button Lock Enabled Default (261): 0 libinput Middle Emulation Enabled (262): 1 libinput Middle Emulation Enabled Default (263): 0 libinput Accel Speed (264): 0.000000 libinput Accel Speed Default (265): 0.000000 libinput Accel Profiles Available (266): 1, 1 libinput Accel Profile Enabled (267): 1, 0 libinput Accel Profile Enabled Default (268): 1, 0 libinput Left Handed Enabled (269): 0 libinput Left Handed Enabled Default (270): 0 libinput Send Events Modes Available (238): 1, 0 libinput Send Events Mode Enabled (239): 0, 0 libinput Send Events Mode Enabled Default (240): 0, 0 Device Node (241): "/dev/input/event1" Device Product ID (242): 0, 0 libinput Drag Lock Buttons (271): libinput Horizontal Scroll Enabled (272): 1 "libinput Middle Emulation Enabled" is the only one that seems relevant. The middle click works independently of that setting. So something else is still needed Finally in all the wandering around the google-verse I came across this: Section "InputClass" Identifier "middle button emulation class" MatchIsPointer "on" Option "Emulate3Buttons" "on" EndSection So why not ... Makes no difference either but Xorg seems to like it. From Xorg.0.log: [34.984] (II) config/udev: Adding input device System mouse (/dev/input/event1) [34.984] (**) System mouse: Applying InputClass "libinput pointer catchall" [34.984] (**) System mouse: Applying InputClass "middle button emulation class" [34.984] (II) Using input driver 'libinput' for 'System mouse' [34.984] (**) System mouse: always reports core events [34.984] (**) Option "Device" "/dev/input/event1" [34.985] (**) Option "_source" "server/udev" [34.985] (II) event1 - System mouse: is tagged by udev as: Mouse [34.985] (II) event1 - System mouse: device is a pointer [34.985] (II) event1 - System mouse: device removed [34.985] (**) Option "config_info" "udev:/dev/input/event1" [34.985] (II) XINPUT: Adding extended input device "System mouse" (type: MOUSE, id 7) [34.985] (**) Option "AccelerationScheme" "none" [34.985] (**) System mouse: (accel) selected scheme none/0 [34.985] (**) System mouse: (accel) acceleration factor: 2.000 [34.985] (**) System mouse: (accel) acceleration threshold: 4 [34.986] (II) event1 - System mouse: is tagged by udev as: Mouse [34.986] (II) event1 - System mouse: device is a pointer A working middle "button" was the only thing that workded so far. All the above was done on 12.2. _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-217-9220 Fax: 301-217-9277