Bug 266647 - x11-drivers/xf86-input-libinput: psm0 middle-button press delayed until release
Summary: x11-drivers/xf86-input-libinput: psm0 middle-button press delayed until release
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-27 07:57 UTC by Poul-Henning Kamp
Modified: 2022-10-10 06:20 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Poul-Henning Kamp freebsd_committer freebsd_triage 2022-09-27 07:57:54 UTC
Lenovo T14s running -current.

When using xf86-input-libinput, the psm0 middle-button "press" event is delayed until the button is released.

The timestamps when running "libinput debug-events" reflects the duration of the press correctly:

   -event0   DEVICE_ADDED            System mouse                      seat0 default group1  cap:p left scroll-nat scroll-button
   -event1   DEVICE_ADDED            System keyboard multiplexer       seat0 default group2  cap:k
   -event2   DEVICE_ADDED            Sleep Button                      seat0 default group3  cap:k
   -event3   DEVICE_ADDED            Control Method Lid Switch         seat0 default group4  cap:S
   -event4   DEVICE_ADDED            AT keyboard                       seat0 default group5  cap:k
   -event5   DEVICE_ADDED            Generic PS/2 mouse                seat0 default group6  cap:p left scroll-nat scroll-button
   -event6   DEVICE_ADDED            ELAN0676:00 04F3:3195 Mouse       seat0 default group7  cap:p left scroll-nat scroll-button
   -event7   DEVICE_ADDED            ELAN0676:00 04F3:3195 TouchPad    seat0 default group8  cap:pg  size 114x58mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonarea
   (motion events elided)
   -event5   POINTER_BUTTON          +3.292s       BTN_MIDDLE (274) pressed, seat count: 1
    event5   POINTER_BUTTON          +4.873s       BTN_MIDDLE (274) released, seat count: 0
    event5   POINTER_BUTTON          +7.031s       BTN_MIDDLE (274) pressed, seat count: 1
    event5   POINTER_BUTTON          +9.179s       BTN_MIDDLE (274) released, seat count: 0
    event5   POINTER_BUTTON          +10.750s      BTN_MIDDLE (274) pressed, seat count: 1
    event5   POINTER_BUTTON          +10.807s      BTN_MIDDLE (274) released, seat count: 0

When using xf86-input-evdev, the middle button works correctly.

Relevant port versions:

libinput-1.19.4_1              Generic input library
xf86-input-libinput-1.2.0_1    X.Org libinput input driver
xf86-input-evdev-2.10.6_7      X.Org event device input driver

Kernel: 14.0-CURRENT #4 main-n258201-45ff071ddcc-dirty: Mon Sep 26 06:16:19 UTC 2022
Comment 1 Emmanuel Vadot freebsd_committer freebsd_triage 2022-10-10 06:20:18 UTC
I can reproduce on my laptop too with wayland.
It works on my desktop (wayland too) though with a standard USB mouse.
Not really familiar with all libinput related things ...