No button2 emulation

Just upgraded to leap 42.2 on a laptop with only 2 buttons.For ages I have used the chord of buttons 1 & 2 to emulate the middle button.

But it does not work after the upgrade (from 13.2). I see the line in xorg.conf.d/10-evde… that asks for emulation was removed but is still in …rpmsave

Tried restoring it but still no middle button after reboot

What am I missing? Really making the computer useless at present

More information

/etc/X11/xorg.conf.d/10-evdev.conf says

Section “InputClass”
Identifier “evdev pointer catchall”
MatchIsPointer “on”
MatchDevicePath “/dev/input/event*”
Option “Emulate3Buttons” “on”
Driver “evdev”
EndSection

Section “InputClass”
Identifier “evdev keyboard catchall”
MatchIsKeyboard “on”
MatchDevicePath “/dev/input/event*”
Driver “evdev”
EndSection

Section “InputClass”
Identifier “evdev touchpad catchall”
MatchIsTouchpad “on”
MatchDevicePath “/dev/input/event*”
Driver “evdev”
EndSection

Section “InputClass”
Identifier “evdev tablet catchall”
MatchIsTablet “off”
MatchDevicePath “/dev/input/event*”
Driver “evdev”
EndSection

Section “InputClass”
Identifier “evdev touchscreen catchall”
MatchIsTouchscreen “on”
MatchDevicePath “/dev/input/event*”
Driver “evdev”
EndSection

and xinput reports

Device ‘AlpsPS/2 ALPS DualPoint Stick’:
Device Enabled (138): 1
Coordinate Transformation Matrix (140): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Accel Speed (274): 0.000000
libinput Accel Speed Default (275): 0.000000
libinput Accel Profiles Available (276): 1, 1
libinput Accel Profile Enabled (277): 1, 0
libinput Accel Profile Enabled Default (278): 1, 0
libinput Natural Scrolling Enabled (279): 0
libinput Natural Scrolling Enabled Default (280): 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
libinput Left Handed Enabled (281): 0
libinput Left Handed Enabled Default (282): 0
libinput Scroll Methods Available (283): 0, 0, 1
libinput Scroll Method Enabled (284): 0, 0, 1
libinput Scroll Method Enabled Default (285): 0, 0, 1
libinput Button Scrolling Button (286): 2
libinput Button Scrolling Button Default (287): 274
libinput Middle Emulation Enabled (288): 0
libinput Middle Emulation Enabled Default (289): 0
Device Node (261): “/dev/input/event1”
Device Product ID (262): 2, 8
libinput Drag Lock Buttons (290): <no items>
libinput Horizontal Scroll Enabled (263): 1

calling

xinput set-prop 'AlpsPS/2 ALPS DualPoint Stick' 'libinput Middle Emulation Enabled' 1

seems to fix it but why does it not wok in xorg.conf.d as it used to?

Your laptop’s touchpad (along with most other input devices) is now being handled by libinput, with evdev being deprecated. That is why the evdev configuration does not work. Although it is still possible to force a particular device to be handled by evdev, the best course of action is to configure libinput to provide the desired behaviour.

You’ll note that your xinput output shows middle button emulation is turned off

libinput Middle Emulation Enabled (288): 0

To correct that you can create a custom Xorg file eg /etc/X11/xorg.conf.d/95-touchpad.conf with a minimal config like this

Section "InputClass"
       Identifier "Touchpad configuration"
       MatchDriver "libinput"
       MatchProduct "AlpsPS/2 ALPS DualPoint Stick"
       Option "MiddleEmulation" "true"
EndSection

Once saved you’ll need to restart the X-server for it to take effect. You can do that with CTRL+ALT+Backspace (hold down until it restarts).

Thank you for the explanation and fix; seems to be workig OK now

Glad to have been of help.

Useful references for others who come searching…

man libinput

https://www.freedesktop.org/wiki/Software/libinput/
https://wiki.archlinux.org/index.php/Libinput

FBAtp2:/home/heart # man libinput
No manual entry for libinput

It’s supplied as part of xf86-input-libinput. For reference, I’m using openSUSE 42.2

~> rpm -qf /usr/share/man/man4/libinput.4.gz
xf86-input-libinput-0.19.1-1.1.x86_64