• Re: Mouse clicks "delayed" until movement

    From Max Nikulin@3:633/10 to All on Monday, May 18, 2026 05:50:01
    On 15/05/2026 2:07 am, Stefan Monnier wrote:
    I tried to `echo
    Y >/sys/module/i8042/parameters/debug` and the resulting messages in
    `dmesg` indicate that the kernel receives the press and release of the
    mouse buttons at the right time, so the problems comes from "higher up"
    in the software stack.

    I do not see a similar debug parameter for the psmouse module, so I
    would try libinput tools to get a data point between i8042 and xev.

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Stefan Monnier@3:633/10 to All on Tuesday, May 19, 2026 20:40:01
    I do not see a similar debug parameter for the psmouse module, so I would
    try libinput tools to get a data point between i8042 and xev.

    The "delayed" behavior of the button releases is visible in

    libinput debug-events /dev/input/event4

    So the problem is somewhere "below".

    For reference, here's what `libinput list-devices` says about that
    trackpoint device:

    Device: TPPS/2 IBM TrackPoint
    Kernel: /dev/input/event4
    Id: serial:0002:000a
    Group: 7
    Seat: seat0, default
    Capabilities: pointer
    Tap-to-click: n/a
    Tap-and-drag: n/a
    Tap button map: n/a
    Tap drag lock: n/a
    Left-handed: disabled
    Nat.scrolling: disabled
    Middle emulation: disabled
    Calibration: n/a
    Scroll methods: *button
    Scroll button: BTN_MIDDLE
    Scroll button lock: disabled
    Click methods: none
    Clickfinger button map: n/a
    Disable-w-typing: n/a
    Disable-w-trackpointing: n/a
    Accel profiles: flat *adaptive custom
    Rotation: n/a
    Area rectangle: n/a


    === Stefan

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Max Nikulin@3:633/10 to All on Sunday, May 24, 2026 06:10:02
    On 20/05/2026 1:31 am, Stefan Monnier wrote:
    I do not see a similar debug parameter for the psmouse module, so I would
    try libinput tools to get a data point between i8042 and xev.

    The "delayed" behavior of the button releases is visible in

    libinput debug-events /dev/input/event4

    Perhaps developers of libinput, psmouse, or i8042 may suggest tests for
    more precise triage of the issue. I hope, it is not related to buffering
    and with either flushing or listening and proper poll/select invocation.

    Have you checked that i8042 debug output is similar when the trackpad
    works and when it doesn't?

    Have you tried to unload the i8042 module? (It might break something in
    the running system.)

    --- PyGate Linux v1.5.14
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Stefan Monnier@3:633/10 to All on Friday, June 19, 2026 05:50:01
    It seems, you have run out of ideas. Most of the following is almost
    certainly leads to dead end. Perhaps you have already tried it.
    Thanks Max, very appreciated. I tried several of those, but not all of
    them yet. I'll keep this list informed of any interesting find. ?

    Well, thank you everyone for all your suggestions. It got me fiddling
    hard, but I didn't manage to track the origin of the problem.

    The problem has now disappeared after the last reboot.
    Not sure which part of Debian testing's upgrades fixed (or hid) it, but
    I'll take the win,


    === Stefan

    --- PyGate Linux v1.5.17
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)