Mouse and trackpad buttons not swapping to left-handed after setting Mouse & Touchpad > Primary Button = Right

Bug #1763339 reported by Cas
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Confirmed
Undecided
Unassigned
libinput (Ubuntu)
Confirmed
Undecided
Unassigned
xserver-xorg-input-libinput (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04

I upgraded from 17.10 to 18.04 and found that the settings to swap the buttons for left-hand usage is not working and the buttons stay the same, i.e. left button is primary and the right button is context.

There is a report of the same issue on RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=1476586

Running the following commands for libinput reveal that it is working correctly with left-hand setting enabled and pressing the left trackpad or mouse button is BTN_RIGHT and the right button is BTN_LEFT.

$ xinput list-props 13
Device 'SynPS/2 Synaptics TouchPad':
 Device Enabled (142): 1
 Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
 libinput Tapping Enabled (307): 1
 libinput Tapping Enabled Default (308): 0
 libinput Tapping Drag Enabled (309): 1
 libinput Tapping Drag Enabled Default (310): 1
 libinput Tapping Drag Lock Enabled (311): 0
 libinput Tapping Drag Lock Enabled Default (312): 0
 libinput Tapping Button Mapping Enabled (313): 1, 0
 libinput Tapping Button Mapping Default (314): 1, 0
 libinput Natural Scrolling Enabled (315): 1
 libinput Natural Scrolling Enabled Default (316): 0
 libinput Disable While Typing Enabled (317): 1
 libinput Disable While Typing Enabled Default (318): 1
 libinput Scroll Methods Available (319): 1, 1, 0
 libinput Scroll Method Enabled (320): 1, 0, 0
 libinput Scroll Method Enabled Default (321): 1, 0, 0
 libinput Click Methods Available (322): 1, 1
 libinput Click Method Enabled (323): 0, 1
 libinput Click Method Enabled Default (324): 1, 0
 libinput Middle Emulation Enabled (325): 0
 libinput Middle Emulation Enabled Default (326): 0
 libinput Accel Speed (327): 0.000000
 libinput Accel Speed Default (328): 0.000000
 libinput Left Handed Enabled (329): 1

$sudo libinput debug-events --enable-left-handed
-event2 DEVICE_ADDED Power Button seat0 default group1 cap:k
-event5 DEVICE_ADDED Video Bus seat0 default group2 cap:k
-event1 DEVICE_ADDED Lid Switch seat0 default group3 cap:S
-event0 DEVICE_ADDED Sleep Button seat0 default group4 cap:k
-event6 DEVICE_ADDED Wacom Pen and multitouch sensor Finger seat0 default group5 cap:t size 309x174mm calib
-event7 DEVICE_ADDED Wacom Pen and multitouch sensor Pen seat0 default group5 cap:T size 309x174mm calib
-event17 DEVICE_ADDED Integrated Camera: Integrated C seat0 default group6 cap:k
-event10 DEVICE_ADDED HDA Intel PCH Mic seat0 default group7 cap:
-event11 DEVICE_ADDED HDA Intel PCH Headphone seat0 default group7 cap:
-event12 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=3 seat0 default group7 cap:
-event13 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=7 seat0 default group7 cap:
-event14 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=8 seat0 default group7 cap:
-event15 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=9 seat0 default group7 cap:
-event16 DEVICE_ADDED HDA Intel PCH HDMI/DP,pcm=10 seat0 default group7 cap:
-event3 DEVICE_ADDED AT Translated Set 2 keyboard seat0 default group8 cap:k
-event4 DEVICE_ADDED SynPS/2 Synaptics TouchPad seat0 default group9 cap:pg size 96x60mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on
-event8 DEVICE_ADDED TPPS/2 IBM TrackPoint seat0 default group10 cap:p left scroll-nat scroll-button
-event9 DEVICE_ADDED ThinkPad Extra Buttons seat0 default group11 cap:kS
-event8 POINTER_BUTTON +2.81s BTN_RIGHT (273) pressed, seat count: 1
 event8 POINTER_BUTTON +2.94s BTN_RIGHT (273) released, seat count: 0
 event8 POINTER_BUTTON +4.56s BTN_LEFT (272) pressed, seat count: 1
 event8 POINTER_BUTTON +4.69s BTN_LEFT (272) released, seat count: 0

Cas (calumlind)
affects: xfce4-settings (Ubuntu) → ubuntu
Cas (calumlind)
affects: ubuntu → libinput (Ubuntu)
summary: - Mouse and trackpad buttons not swapping to left-handed
+ Missing left-handed mode to swap buttons around
no longer affects: libinput (Ubuntu)
summary: - Missing left-handed mode to swap buttons around
+ Missing left-handed mode to swap mouse/touchpad buttons around
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: Missing left-handed mode to swap mouse/touchpad buttons around

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-control-center (Ubuntu):
status: New → Confirmed
Changed in gnome-tweaks (Ubuntu):
status: New → Confirmed
Changed in xserver-xorg-input-libinput (Ubuntu):
status: New → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sorry, my mistake it's in:

 Settings > Mouse & Touchpad > General > Primary Button

summary: - Missing left-handed mode to swap mouse/touchpad buttons around
+ Mouse and trackpad buttons not swapping to left-handed
no longer affects: gnome-tweaks (Ubuntu)
Changed in libinput (Ubuntu):
status: New → Confirmed
summary: - Mouse and trackpad buttons not swapping to left-handed
+ Mouse and trackpad buttons not swapping to left-handed after setting
+ Mouse & Touchpad > Primary Button = Right
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Bug #1758306 is probably related.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.