Bug 1205771

Summary: no middle mouse button emulation enabled
Product: [Fedora] Fedora Reporter: Mykola Dvornik <mykola.dvornik>
Component: libinputAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 22CC: bcostescu, clive.m.messer, marco.guazzone, mykola.dvornik, peter.hutterer, scorpy_sk
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libinput-0.15.0-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-05-06 18:51:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
evemu-record
none
evemu recording for the Dell E5430 touchpad
none
Dell e5530 evemu-describe
none
Dell e5530 evemu-record
none
Dell Latitude E7240 evemu-record output none

Description Mykola Dvornik 2015-03-25 15:09:37 UTC
Description of problem:

On upgrade to fc22, the third mouse button emulation has gone

Version-Release number of selected component (if applicable):

libinput-0.13

How reproducible:

Persistent

Steps to Reproduce:
1. Boot fc22
2. Select text in terminal
3. Click Left and Right touchpad buttons simultaneously to past the text elsewhere 

Actual results:

Behaves like only one of the buttons has been pressed

Expected results:

Third button emulation, so that the text get pasted

Additional info:

Comment 1 Peter Hutterer 2015-03-25 21:57:56 UTC
Please attach an evemu-recording of the event sequence so we can reproduce this here. Middle button emulation should be enabled by default for all touchpads.

http://www.freedesktop.org/wiki/Evemu

Comment 2 Mykola Dvornik 2015-03-25 23:49:54 UTC
Created attachment 1006571 [details]
evemu-record

Comment 3 Peter Hutterer 2015-04-07 07:18:44 UTC
whoops, that's actually missing upstream. We implemented it for software buttons, but not for touchpads with physical hardware.

I'll get this into the next libinput version, sorry about that.

Comment 4 Marco Guazzone 2015-06-06 12:15:14 UTC
Hey guys,

I've have a similar issue with my touchpad device.
My system is a Dell E5430 running F22 x86_64 (with all updates installed).

Someone on the Fedora users list (see the thread: https://lists.fedoraproject.org/pipermail/users/2015-June/461668.html) suggested me to add the following file '/etc/X11/xorg.conf.d/10-evdev.conf':

Section "InputClass"
      Identifier "middle button emulation class"
      MatchIsPointer "on"
      Option "Emulate3Buttons" "on"
      Driver "evdev"
EndSection

But it didn't work.

I've attach the evemu recording.

Comment 5 Marco Guazzone 2015-06-06 12:16:04 UTC
Created attachment 1035611 [details]
evemu recording for the Dell E5430 touchpad

Comment 6 Marco Guazzone 2015-06-07 12:26:05 UTC
The last xorg-* updates:

  xorg-x11-drv-libinput-0.10.0-5
  xorg-x11-server-common-1.17.1-14
  xorg-x11-server-Xorg-1.17.1-14
  xorg-x11-server-Xwayland-1.17.1-14

have solved my problem

Comment 7 Peter Hutterer 2015-06-08 23:43:53 UTC
Changing bug title to reduce confusion, "third button" in Xorg lingo means the right mouse button.

Comment 8 Clive Messer 2015-06-13 14:13:37 UTC
Hmmm. Still middle button emulation still not working for me on a Dell e5530 laptop, even with those updates installed.

I will attach output from evemu-describe and evemu-record.

Comment 9 Clive Messer 2015-06-13 14:14:38 UTC
Created attachment 1038302 [details]
Dell e5530 evemu-describe

Comment 10 Clive Messer 2015-06-13 14:15:08 UTC
Created attachment 1038305 [details]
Dell e5530 evemu-record

Comment 11 Bogdan Costescu 2015-06-14 00:04:55 UTC
I see the same problem on a Dell Latitude E7240, using the latest updates available:

libinput-0.17.0-2.fc22.x86_64
xorg-x11-drv-libinput-0.10.0-5.fc22.x86_64

Fedora 21, which was installed until a few days ago on this laptop, worked fine with no special xorg configuration.

evemu-record output attached.

Comment 12 Bogdan Costescu 2015-06-14 00:06:29 UTC
Created attachment 1038465 [details]
Dell Latitude E7240 evemu-record output

Comment 13 Clive Messer 2015-06-14 00:13:09 UTC
I'm not sure if the output of "xinput list-props" is helpful to a dev.....

[clivem@e5530 ~]$ xinput list-props 12
Device 'AlpsPS/2 ALPS GlidePoint':
	Device Enabled (136):	1
	Coordinate Transformation Matrix (138):	1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
	libinput Tapping Enabled (271):	1
	libinput Tapping Enabled Default (272):	0
	libinput Accel Speed (273):	0.000000
	libinput Accel Speed Default (274):	0.000000
	libinput Natural Scrolling Enabled (275):	0
	libinput Natural Scrolling Enabled Default (276):	0
	libinput Send Events Modes Available (256):	1, 1
	libinput Send Events Mode Enabled (257):	0, 0
	libinput Send Events Mode Enabled Default (258):	0, 0
	libinput Left Handed Enabled (277):	0
	libinput Left Handed Enabled Default (278):	0
	libinput Scroll Methods Available (279):	1, 1, 0
	libinput Scroll Method Enabled (280):	1, 0, 0
	libinput Scroll Method Enabled Default (281):	1, 0, 0
	Device Node (259):	"/dev/input/event5"
	Device Product ID (260):	2, 8

I'm supposing that if one of the props listed, (Ibut currently missing), was "libinput Middle Emulation Enabled" then it could be enabled by setting the property to "1"?

Also have this issue on another Dell e6320 laptop, freshly installed with F22, as well.

Comment 14 Peter Hutterer 2015-06-14 23:34:10 UTC
Let's move this to Bug 1227992 for the alps touchpads, it's a bit more precise (especially Hans' comment 12 there) and we can leave this bug alone and rest in peace :)