Avoid very fast double clicks

8,933

Solution 1

I found this:

https://aur.archlinux.org/packages/xf86-input-evdev-debounce/

after googling for "linux xinput mouse debounce"

I'm not gonna test it. It's been a long time since you asked, but maybe someone has the same problem with a favorite mouse, so here it is. Also, I'm not an Arch user; but they really rock!

Solution 2

As I posted in this answer, this should be fixed with libinput 1.9.

Announce:

Pointer devices now have button debouncing automagically enabled. Ghost button release/press events due to worn out or bad-quality switches are transparently discarded and the device should just work.

Solution 3

A small fix to libinput patch (proposed by @Victor Sergienko) that is reported as "failing to apply" to new libinput versions by some users (https://bugs.freedesktop.org/show_bug.cgi?id=11833).

https://pastebin.com/raw/qa6UP1k1

Share:
8,933

Related videos on Youtube

elias
Author by

elias

Updated on September 18, 2022

Comments

  • elias
    elias over 1 year

    I have a mouse with a weird problem. The left button sometimes fires a double click even if I click just one time.
    I would like to know if there's a way to avoid fast double clicks, ignoring clicks with an interval lower than a defined value.
    I'm using Fedora 15.
    Thanks in advance.

    • Kevdog777
      Kevdog777 almost 12 years
      I have had it happen to me as well, on a Windows 7 machine.
    • Wyzard
      Wyzard almost 12 years
      The mouse is supposed to do that already: it's called debouncing. It sounds like the switch is worn out and is bouncing a lot; it might be easiest to just get a new mouse.
    • MvG
      MvG almost 12 years
      Not a real answer to your question, as it's not a software solution, but when a mouse of mine becomes old enough to exhibit such behaviour, I tend to open it up, swap the left-button microswitch with that of a button I use less often (means desolder, swap, resolder), and reassemble the casing.
    • elias
      elias almost 12 years
      I think I'll not have another solution, unless buy a new one...
    • Bonsi Scott
      Bonsi Scott over 11 years
      Same here. Don't even try to fix hardware-problems with software.
    • Scott - Слава Україні
      Scott - Слава Україні over 11 years
      You might get a wider audience, and therefore possibly better answers, on Super User.
    • Dan D.
      Dan D. almost 11 years
      If you still have this problem, could you include the make and model of the mouse in question?
    • Victor Sergienko
      Victor Sergienko about 9 years
      @BonsiScott Very wrong. Having worked a little with electronics production, I can tell that sometimes the only difference between working and nonworking hardware is software calibration. If you read Wyzard's link, you'll see that bouncing is a normal operation.
    • Neil Stockbridge
      Neil Stockbridge about 5 years
      Rather than desoldering microswitches, you could try fixing them in-situ like this
    • creativecoding
      creativecoding almost 3 years
      I happen to have the same problem. I wanted to upvote the question, but my mouse won't let me. ;-)
  • pabouk - Ukraine stay strong
    pabouk - Ukraine stay strong over 9 years
    This option specifies the the longest possible interval between two clicks to be detected as a double click but the OP needs to specify the shortest possible interval. I have never seen such an option.
  • pfnuesel
    pfnuesel over 9 years
    I tried this piece of software and it works well for me. Fixed my double clicking problems. This answer is a gem.
  • Victor Sergienko
    Victor Sergienko about 9 years
    I've tested it and reported here: askubuntu.com/a/616956/6820. In short, it's a good fix unless the contact is TOO bad.
  • Hjulle
    Hjulle about 8 years
    @pfnuesel In this case, I would say that "include essential parts" would translate to explaining what it does and how to use it.