You are not logged in.

#1 2016-06-27 19:18:07

hkothari
Member
Registered: 2010-07-07
Posts: 31

Disabling Middle Touchpad Button in Favor of Right and Left Click

Hi all,

After one of the recent upgrades I ran (in the last couple months) the behavior of my touchpad seems to have switched and I'm not exactly sure how to get it back. Previously when I wanted to middle click (for pasting) I would click both the right and left touchpad buttons. Now that still works, but it also seems to pick up a the middle touchpad button for middle click as well (my touchpad doesn't have a middle button but it just uses the middle area).

The problem is, this middle button is really sensitive and quite frequently I will end up clicking it instead of the left button which I want to be clicking resulting in spurious pastes or other weird behavior (closed tabs in chrome, etc). So, I'd like to disable that button.

I've tried using xinput set-button-map to disable to middle click (running : xinput set-button-map 11 1 0 3) but this not only disables the middle button itself but also the middle click via right+left click. Is there anyway I can make it so middle click is only done when both right and left are pressed simultaneously but there is still no physical middle button?

I'm using a Dell XPS 13 from 2015. Below is the output of xinput:

⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ DLL0665:01 06CB:76AD Touchpad           	id=11	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ Power Button                            	id=6	[slave  keyboard (3)]
    ↳ Video Bus                               	id=7	[slave  keyboard (3)]
    ↳ Power Button                            	id=8	[slave  keyboard (3)]
    ↳ Sleep Button                            	id=9	[slave  keyboard (3)]
    ↳ Integrated_Webcam_HD                    	id=10	[slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            	id=12	[slave  keyboard (3)]
    ↳ Dell WMI hotkeys                        	id=13	[slave  keyboard (3)]

Please let me know if I can provide more information and thanks so much for your help!

Offline

#2 2016-06-27 20:06:30

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

Gnome?
Are you using xf86-input-synaptics or xf86-input-libinput ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2016-06-27 20:14:48

hkothari
Member
Registered: 2010-07-07
Posts: 31

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

I'm not using gnome, I'm just using dwm. Honestly, it's a little unclear to me if I'm using synaptics/libinput. I think I'm using libinput but I'm not sure how to find out.

<16-06-27 15:16>hkothari@hkothari-linux:~$ dmesg | grep -i touchpad
[    3.041811] input: DLL0665:01 06CB:76AD Touchpad as /devices/pci0000:00/INT3433:00/i2c-7/i2c-DLL0665:01/0018:06CB:76AD.0001/input/input15

Offline

#4 2016-06-27 20:28:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

This will work (this time)

xinput list-props 11

This will change from boot to boot.  the 11 is the ID and came from your previous post.  The first column in the output is the driver that provides the property described by the line.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2016-06-27 20:31:09

hkothari
Member
Registered: 2010-07-07
Posts: 31

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

<16-06-27 15:39>hkothari@hkothari-linux:~$ xinput list-props 11
Device 'DLL0665:01 06CB:76AD Touchpad':
	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 Tapping Enabled (274):	0
	libinput Tapping Enabled Default (275):	0
	libinput Tapping Drag Enabled (276):	1
	libinput Tapping Drag Enabled Default (277):	1
	libinput Tapping Drag Lock Enabled (278):	0
	libinput Tapping Drag Lock Enabled Default (279):	0
	libinput Accel Speed (280):	0.000000
	libinput Accel Speed Default (281):	0.000000
	libinput Natural Scrolling Enabled (282):	0
	libinput Natural Scrolling Enabled Default (283):	0
	libinput Send Events Modes Available (258):	1, 1
	libinput Send Events Mode Enabled (259):	0, 0
	libinput Send Events Mode Enabled Default (260):	0, 0
	libinput Left Handed Enabled (284):	0
	libinput Left Handed Enabled Default (285):	0
	libinput Scroll Methods Available (286):	1, 1, 0
	libinput Scroll Method Enabled (287):	1, 0, 0
	libinput Scroll Method Enabled Default (288):	1, 0, 0
	libinput Click Methods Available (289):	1, 1
	libinput Click Method Enabled (290):	1, 0
	libinput Click Method Enabled Default (291):	1, 0
	libinput Disable While Typing Enabled (292):	1
	libinput Disable While Typing Enabled Default (293):	1
	Device Node (261):	"/dev/input/event13"
	Device Product ID (262):	1739, 30381
	libinput Drag Lock Buttons (294):	<no items>
	libinput Horizonal Scroll Enabled (263):	1

It appears as though I'm using libinput

Offline

#6 2016-06-27 20:38:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

I think you want to set the Click Method Enabled propert to 1, 0 using xinput

It is probably 1, 1 now.

Edit:  Nope.  I missed your post.

Last edited by ewaller (2016-06-27 20:39:52)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2016-06-27 20:40:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

Do you use tapping?  Try turning that off.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#8 2016-06-27 21:03:42

hkothari
Member
Registered: 2010-07-07
Posts: 31

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

Isn't tapping already disabled? It's set to 0

Offline

#9 2016-06-27 21:17:22

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,791

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

hkothari wrote:

Isn't tapping already disabled? It's set to 0

Yep.  The hazards of looking at my settings for reference sad


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#10 2016-06-27 21:48:16

hkothari
Member
Registered: 2010-07-07
Posts: 31

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

I know I saw some people in the XPS 13 thread complaining about regressions in 4.5 with libinput, I'm running kernel 4.5 so this could plausibly be the issue: https://bbs.archlinux.org/viewtopic.php … 1#p1617221 sad althought I kind of feel like this came up a little while after I upgraded to 4.5

Offline

#11 2016-06-27 23:46:23

brittyazel
Member
From: Davis, CA
Registered: 2013-05-11
Posts: 163

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

The most recent versions of libinput added a "middle" muse click region on touchpads, which is about 15mm wide in the center. This too has been messing me up, and I am also on an XPS 13 (2014 edition). You can read my thread with Peter here:
https://bugs.freedesktop.org/show_bug.cgi?id=95458

Last edited by brittyazel (2016-06-27 23:46:35)


I don't really know what I'm doing.

Offline

#12 2016-06-28 17:08:42

hkothari
Member
Registered: 2010-07-07
Posts: 31

Re: Disabling Middle Touchpad Button in Favor of Right and Left Click

Well, the WONTFIX there is a disappointing response.. I guess I'll give synaptics a try. Thanks for the link though!

Offline

Board footer

Powered by FluxBB