Skip to content

Instantly share code, notes, and snippets.

@binarycreations
Last active April 4, 2018 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save binarycreations/40802c4d35103b77fa187d3afc69046f to your computer and use it in GitHub Desktop.
Save binarycreations/40802c4d35103b77fa187d3afc69046f to your computer and use it in GitHub Desktop.
Gnome 3.28 - Touch pad right button registers as primary click
➜ ~ pacman -Qi libinput
Name : libinput
Version : 1.10.3-1
Description : Input device management and event handling library
Architecture : x86_64
URL : https://www.freedesktop.org/wiki/Software/libinput/
Licenses : custom:X11
Groups : None
Provides : None
Depends On : mtdev systemd libevdev libwacom
Optional Deps : gtk3: libinput debug-gui [installed]
python-pyudev: libinput measure
python-evdev: libinput measure
Required By : clutter efl mutter qt5-base xf86-input-libinput
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 5.04 MiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Build Date : Wed 14 Mar 2018 06:16:19 GMT
Install Date : Wed 21 Mar 2018 12:09:11 GMT
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
➜ ~ pacman -Qi xf86-input-libinput
Name : xf86-input-libinput
Version : 0.27.0-2
Description : Generic input driver for the X.Org server based on libinput
Architecture : x86_64
URL : http://xorg.freedesktop.org/
Licenses : custom
Groups : xorg-drivers
Provides : None
Depends On : libinput>=1.2.0
Optional Deps : None
Required By : xorg-server
Optional For : None
Conflicts With : xorg-server<1.19.0 X-ABI-XINPUT_VERSION<24 X-ABI-XINPUT_VERSION>=25
Replaces : None
Installed Size : 87.00 KiB
Packager : Evangelos Foutras <evangelos@foutrelis.com>
Build Date : Wed 21 Mar 2018 23:57:37 GMT
Install Date : Wed 04 Apr 2018 11:15:15 BST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
➜ ~ libinput debug-events
Failed to open /dev/input/event3 (Permission denied)
Failed to open /dev/input/event4 (Permission denied)
Failed to open /dev/input/event1 (Permission denied)
Failed to open /dev/input/event0 (Permission denied)
Failed to open /dev/input/event2 (Permission denied)
Failed to open /dev/input/event12 (Permission denied)
Failed to open /dev/input/event10 (Permission denied)
Failed to open /dev/input/event6 (Permission denied)
Failed to open /dev/input/event13 (Permission denied)
Failed to open /dev/input/event7 (Permission denied)
Failed to open /dev/input/event14 (Permission denied)
Failed to open /dev/input/event15 (Permission denied)
Failed to open /dev/input/event16 (Permission denied)
Failed to open /dev/input/event17 (Permission denied)
Failed to open /dev/input/event18 (Permission denied)
Failed to open /dev/input/event19 (Permission denied)
Failed to open /dev/input/event8 (Permission denied)
Failed to open /dev/input/event11 (Permission denied)
Failed to open /dev/input/event5 (Permission denied)
Failed to open /dev/input/event9 (Permission denied)
Expected device added events on startup but got none. Maybe you don't have the right permissions?
^C
➜ ~ sudo libinput debug-events
[sudo] password for rad:
-event3 DEVICE_ADDED Power Button seat0 default group1 cap:k
-event4 DEVICE_ADDED Video Bus seat0 default group2 cap:k
-event1 DEVICE_ADDED Power Button seat0 default group3 cap:k
-event0 DEVICE_ADDED Lid Switch seat0 default group4 cap:S
-event2 DEVICE_ADDED Sleep Button seat0 default group5 cap:k
-event12 DEVICE_ADDED Logitech USB-PS/2 Optical Mouse seat0 default group6 cap:p left scroll-nat scroll-button
-event10 DEVICE_ADDED Integrated_Webcam_HD: Integrate seat0 default group7 cap:k
-event6 DEVICE_ADDED ELAN Touchscreen seat0 default group8 cap:t size 283x176mm calib
-event13 DEVICE_ADDED DELL073B:00 06CB:7E7E Touchpad seat0 default group9 cap:pg size 102x62mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on
-event7 DEVICE_ADDED Intel Virtual Button driver seat0 default group10 cap:k
-event14 DEVICE_ADDED HDA Intel PCH Headphone Mic seat0 default group11 cap:
-event15 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=3 seat0 default group11 cap:
-event16 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=7 seat0 default group11 cap:
-event17 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=8 seat0 default group11 cap:
-event18 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=9 seat0 default group11 cap:
-event19 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=10 seat0 default group11 cap:
-event8 DEVICE_ADDED Intel HID events seat0 default group12 cap:k
-event11 DEVICE_ADDED Dell WMI hotkeys seat0 default group13 cap:k
-event5 DEVICE_ADDED AT Translated Set 2 keyboard seat0 default group14 cap:k
-event13 POINTER_BUTTON +1.20s BTN_LEFT (272) pressed, seat count: 1
event13 POINTER_BUTTON +1.32s BTN_LEFT (272) released, seat count: 0
event13 POINTER_BUTTON +2.07s BTN_RIGHT (273) pressed, seat count: 1
event13 POINTER_BUTTON +2.19s BTN_RIGHT (273) released, seat count: 0
-event5 KEYBOARD_KEY +2.99s *** (-1) pressed
event5 KEYBOARD_KEY +3.22s *** (-1) pressed
^C
^C% ➜ ~
➜ ~ xev
Outer window is 0x2200001, inner window is 0x2200002
PropertyNotify event, serial 8, synthetic NO, window 0x2200001,
atom 0x27 (WM_NAME), time 10280037, state PropertyNewValue
PropertyNotify event, serial 9, synthetic NO, window 0x2200001,
atom 0x22 (WM_COMMAND), time 10280037, state PropertyNewValue
PropertyNotify event, serial 10, synthetic NO, window 0x2200001,
atom 0x28 (WM_NORMAL_HINTS), time 10280037, state PropertyNewValue
CreateNotify event, serial 11, synthetic NO, window 0x2200001,
parent 0x2200001, window 0x2200002, (10,10), width 50, height 50
border_width 4, override NO
PropertyNotify event, serial 14, synthetic NO, window 0x2200001,
atom 0xff (WM_PROTOCOLS), time 10280038, state PropertyNewValue
MapNotify event, serial 15, synthetic NO, window 0x2200001,
event 0x2200001, window 0x2200002, override NO
ConfigureNotify event, serial 22, synthetic NO, window 0x2200001,
event 0x2200001, window 0x2200001, (0,0), width 178, height 178,
border_width 0, above 0x1c0005e, override NO
PropertyNotify event, serial 28, synthetic NO, window 0x2200001,
atom 0x17b (_NET_WM_ALLOWED_ACTIONS), time 10280038, state PropertyNewValue
ReparentNotify event, serial 29, synthetic NO, window 0x2200001,
event 0x2200001, window 0x2200001, parent 0x2013fd,
(0,0), override NO
PropertyNotify event, serial 29, synthetic NO, window 0x2200001,
atom 0x104 (_NET_FRAME_EXTENTS), time 10280039, state PropertyNewValue
ConfigureNotify event, serial 29, synthetic NO, window 0x2200001,
event 0x2200001, window 0x2200001, (10,45), width 178, height 178,
border_width 0, above 0x0, override NO
PropertyNotify event, serial 29, synthetic NO, window 0x2200001,
atom 0x156 (_GTK_EDGE_CONSTRAINTS), time 10280039, state PropertyNewValue
PropertyNotify event, serial 31, synthetic NO, window 0x2200001,
atom 0x107 (_NET_WM_DESKTOP), time 10280041, state PropertyNewValue
PropertyNotify event, serial 32, synthetic NO, window 0x2200001,
atom 0x146 (WM_STATE), time 10280042, state PropertyNewValue
PropertyNotify event, serial 32, synthetic NO, window 0x2200001,
atom 0x10d (_NET_WM_STATE), time 10280042, state PropertyNewValue
PropertyNotify event, serial 32, synthetic NO, window 0x2200001,
atom 0x156 (_GTK_EDGE_CONSTRAINTS), time 10280042, state PropertyNewValue
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x156 (_GTK_EDGE_CONSTRAINTS), time 10280043, state PropertyNewValue
ConfigureNotify event, serial 34, synthetic YES, window 0x2200001,
event 0x2200001, window 0x2200001, (93,163), width 178, height 178,
border_width 2, above 0x0, override NO
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x156 (_GTK_EDGE_CONSTRAINTS), time 10280045, state PropertyNewValue
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x10d (_NET_WM_STATE), time 10280045, state PropertyNewValue
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x156 (_GTK_EDGE_CONSTRAINTS), time 10280045, state PropertyNewValue
MapNotify event, serial 34, synthetic NO, window 0x2200001,
event 0x2200001, window 0x2200001, override NO
VisibilityNotify event, serial 34, synthetic NO, window 0x2200001,
state VisibilityUnobscured
Expose event, serial 34, synthetic NO, window 0x2200001,
(0,0), width 178, height 10, count 3
Expose event, serial 34, synthetic NO, window 0x2200001,
(0,10), width 10, height 58, count 2
Expose event, serial 34, synthetic NO, window 0x2200001,
(68,10), width 110, height 58, count 1
Expose event, serial 34, synthetic NO, window 0x2200001,
(0,68), width 178, height 110, count 0
FocusIn event, serial 34, synthetic NO, window 0x2200001,
mode NotifyNormal, detail NotifyNonlinear
KeymapNotify event, serial 34, synthetic NO, window 0x0,
keys: 34 0 0 0 16 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x10d (_NET_WM_STATE), time 10280050, state PropertyNewValue
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x156 (_GTK_EDGE_CONSTRAINTS), time 10280050, state PropertyNewValue
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x10d (_NET_WM_STATE), time 10280050, state PropertyNewValue
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x156 (_GTK_EDGE_CONSTRAINTS), time 10280050, state PropertyNewValue
FocusOut event, serial 34, synthetic NO, window 0x2200001,
mode NotifyNormal, detail NotifyNonlinear
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x10d (_NET_WM_STATE), time 10281357, state PropertyNewValue
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x156 (_GTK_EDGE_CONSTRAINTS), time 10281357, state PropertyNewValue
FocusIn event, serial 34, synthetic NO, window 0x2200001,
mode NotifyNormal, detail NotifyNonlinear
KeymapNotify event, serial 34, synthetic NO, window 0x0,
keys: 13 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x10d (_NET_WM_STATE), time 10282928, state PropertyNewValue
PropertyNotify event, serial 34, synthetic NO, window 0x2200001,
atom 0x156 (_GTK_EDGE_CONSTRAINTS), time 10282928, state PropertyNewValue
EnterNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283518, (78,173), root:(173,338),
mode NotifyNormal, detail NotifyAncestor, same_screen YES,
focus YES, state 0
KeymapNotify event, serial 34, synthetic NO, window 0x0,
keys: 13 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283518, (78,173), root:(173,338),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283538, (78,162), root:(173,327),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283557, (76,138), root:(171,303),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283573, (76,128), root:(171,293),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283593, (76,123), root:(171,288),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283607, (76,114), root:(171,279),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283624, (76,108), root:(171,273),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283643, (76,102), root:(171,267),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283656, (76,96), root:(171,261),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283677, (76,92), root:(171,257),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283690, (76,91), root:(171,256),
state 0x0, is_hint 0, same_screen YES
ButtonPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10283991, (76,91), root:(171,256),
state 0x0, button 1, same_screen YES
ButtonRelease event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10284113, (76,91), root:(171,256),
state 0x100, button 1, same_screen YES
ButtonPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10284418, (76,91), root:(171,256),
state 0x0, button 1, same_screen YES
ButtonRelease event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10284519, (76,91), root:(171,256),
state 0x100, button 1, same_screen YES
ButtonPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10284744, (76,91), root:(171,256),
state 0x0, button 1, same_screen YES
ButtonRelease event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10284845, (76,91), root:(171,256),
state 0x100, button 1, same_screen YES
ButtonPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10285055, (76,91), root:(171,256),
state 0x0, button 1, same_screen YES
ButtonRelease event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10285129, (76,91), root:(171,256),
state 0x100, button 1, same_screen YES
ButtonPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10285316, (76,91), root:(171,256),
state 0x0, button 1, same_screen YES
ButtonRelease event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10285417, (76,91), root:(171,256),
state 0x100, button 1, same_screen YES
ButtonPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10285591, (76,91), root:(171,256),
state 0x0, button 1, same_screen YES
ButtonRelease event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10285660, (76,91), root:(171,256),
state 0x100, button 1, same_screen YES
ButtonPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10285830, (76,91), root:(171,256),
state 0x0, button 1, same_screen YES
ButtonRelease event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10285924, (76,91), root:(171,256),
state 0x100, button 1, same_screen YES
ButtonPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10286076, (76,91), root:(171,256),
state 0x0, button 1, same_screen YES
ButtonRelease event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10286149, (76,91), root:(171,256),
state 0x100, button 1, same_screen YES
ButtonPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10286779, (76,91), root:(171,256),
state 0x0, button 3, same_screen YES
ButtonRelease event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10286779, (76,91), root:(171,256),
state 0x400, button 3, same_screen YES
KeyPress event, serial 34, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10287405, (76,91), root:(171,256),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10287611, (76,91), root:(171,256),
state 0x4, keycode 54 (keysym 0x63, c), same_screen YES,
XLookupString gives 1 bytes: (03) ""
XmbLookupString gives 1 bytes: (03) ""
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10287689, (76,91), root:(171,256),
state 0x4, keycode 54 (keysym 0x63, c), same_screen YES,
XLookupString gives 1 bytes: (03) ""
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10287926, (76,91), root:(171,256),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288641, (78,86), root:(173,251),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288657, (81,79), root:(176,244),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288674, (81,76), root:(176,241),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288690, (81,75), root:(176,240),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288707, (81,73), root:(176,238),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288723, (82,67), root:(177,232),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288743, (85,59), root:(180,224),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288757, (90,50), root:(185,215),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288775, (94,38), root:(189,203),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288792, (100,28), root:(195,193),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288806, (104,21), root:(199,186),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288822, (105,17), root:(200,182),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288842, (105,15), root:(200,180),
state 0x0, is_hint 0, same_screen YES
MotionNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288857, (111,5), root:(206,170),
state 0x0, is_hint 0, same_screen YES
LeaveNotify event, serial 37, synthetic NO, window 0x2200001,
root 0x2ac, subw 0x0, time 10288877, (117,-9), root:(212,156),
mode NotifyNormal, detail NotifyAncestor, same_screen YES,
focus YES, state 0
ClientMessage event, serial 37, synthetic YES, window 0x2200001,
message_type 0xff (WM_PROTOCOLS), format 32, message 0xfd (WM_DELETE_WINDOW)
@binarycreations
Copy link
Author

Lesson learnt. RTFM or the change log. This is the default behaviour in 3.28. Use GNOME Tweak to change it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment