Bug 1200949

Summary: kwin don't let setting two fingers tap for emule third mouse button
Product: [openSUSE] openSUSE Distribution Reporter: karl García Gestido <karlggest>
Component: KDE Workspace (Plasma)Assignee: E-Mail List <opensuse-kde-bugs>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fvogt, rgb.mldc
Version: Leap 15.4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Showing the different stages of the problem
xinput output, before and after upgrade

Description karl García Gestido 2022-06-26 19:24:32 UTC
Hi!

I upgrade Leap 15.4 from Leap 15.3 in a laptop (Lenovo) and when system was running with the upgrade I lost the touchpad setting that let the user emule the central button tapping with two fingers. When I run System Settings (Plasma) and select "touchpad" in "input devices", change Two fingers for tapping as middle button is disabled (both options, right or middle are disabled.

Run Plasma as a new user or run Plasma with kwin_wayland solved (by now at least) the issue.

Pass to reproduce:
1. Run the upgrade. Reboot in Plasma (X11).
2. Two fingers tapping is right mouse button.
3. Settings in systemsettings5 to change this are disabled.

Workarounds:
Both of follow works:
a) 
1. Create a new user.
2. Start Plasma.
3. Close session and init session as the right user.
4. Two fingers tapping as middle button works.

b) 
1. Init session with kwin_wayland
2. Use systemsettings5 to set the propper options to use tapping in the touchpad.
3. Close session and start session with kwin_X11
4. Two fingers tapping as middle button works.

Thandks!!
Comment 1 Ricardo Gabriel Berlasso 2022-06-26 19:32:37 UTC
I confirm the problem (and the workaround) with an online upgrade on a TUXEDO-Book-BC1507 laptop.
Comment 2 Ricardo Gabriel Berlasso 2022-06-28 11:30:01 UTC
Created attachment 859877 [details]
Showing the different stages of the problem

In the attached PDF, there are a series of commented screenshots of kde's Plasma settings for the touch-pad, taken before and after the upgrade to Leap 15.4 on a Toshiba Satellite harman/kardon. (Screenshots are in Spanish, but it's easy to see where the problem is).

As you can see in the presentation, even if the work-around indicated in the report did the job, Leap 15.3 offered several options for touch-pad settings that are now missing on 15.4, including a panel to test the selected settings.
Comment 3 Fabian Vogt 2022-06-28 14:45:55 UTC
The screenshots show that the label of the options is also different between the broken and working cases on X11. That indicates that for some reason, the tapFingerCount property is <= 2, which is strange.

In an affected and unaffected session, please run:

xinput list-devices

and then

xinput list-props <id of the touchpad>
Comment 4 Ricardo Gabriel Berlasso 2022-06-28 18:05:37 UTC
Right now I only have the Tuxedo laptop, where the workaround was already applied. Possibly in the following days I'll be upgrading a third laptop, maybe I'll be able to do the before/after then. 

Here it's the output for the TUXEDO-Book-BC1507

'
~> xinput list-props 13
Device 'SynPS/2 Synaptics TouchPad':
        Device Enabled (188):   1
        Coordinate Transformation Matrix (190): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Tapping Enabled (325): 1
        libinput Tapping Enabled Default (326): 0
        libinput Tapping Drag Enabled (327):    1
        libinput Tapping Drag Enabled Default (328):    1
        libinput Tapping Drag Lock Enabled (329):       0
        libinput Tapping Drag Lock Enabled Default (330):       0
        libinput Tapping Button Mapping Enabled (331):  0, 1
        libinput Tapping Button Mapping Default (332):  1, 0
        libinput Natural Scrolling Enabled (333):       0
        libinput Natural Scrolling Enabled Default (334):       0
        libinput Disable While Typing Enabled (335):    1
        libinput Disable While Typing Enabled Default (336):    1
        libinput Scroll Methods Available (337):        1, 1, 0
        libinput Scroll Method Enabled (338):   1, 0, 0
        libinput Scroll Method Enabled Default (339):   1, 0, 0
        libinput Accel Speed (340):     0.000000
        libinput Accel Speed Default (341):     0.000000
        libinput Accel Profiles Available (342):        1, 1
        libinput Accel Profile Enabled (343):   1, 0
        libinput Accel Profile Enabled Default (344):   1, 0
        libinput Left Handed Enabled (345):     0
        libinput Left Handed Enabled Default (346):     0
        libinput Send Events Modes Available (310):     1, 1
        libinput Send Events Mode Enabled (311):        0, 0
        libinput Send Events Mode Enabled Default (312):        0, 0
        Device Node (313):      "/dev/input/event1"
        Device Product ID (314):        2, 7
        libinput Drag Lock Buttons (347):       <no items>
        libinput Horizontal Scroll Enabled (348):       1
'
Comment 5 Ricardo Gabriel Berlasso 2022-07-01 12:19:34 UTC
Created attachment 859956 [details]
xinput output, before and after upgrade

In the attached text file you can find the output of the xinput list-props command in the following situations:

Leap 15.3
Leap 15.4, just after upgrade
Leap 15.4, when everything is working again (this last one is almost identical to the previous one)

The laptop is an old Linux en ASUS X551CA.