Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Mar 2021 23:05:53 -0400 (EDT)
From:      Doug Denault <doug@safeport.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   xorg mouse et all solved -- was Xorg/Lenovo/drm revisited
Message-ID:  <alpine.BSF.2.00.2103261915280.15810@bucksport.safeport.com>

Next in thread | Raw E-Mail | Index | Archive | Help
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):       <no items>
         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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.2103261915280.15810>