Avoid very fast double clicks
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.
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
Related videos on Youtube
elias
Updated on September 18, 2022Comments
-
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 almost 12 yearsI have had it happen to me as well, on a Windows 7 machine.
-
Wyzard almost 12 yearsThe 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 almost 12 yearsNot 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 almost 12 yearsI think I'll not have another solution, unless buy a new one...
-
Bonsi Scott over 11 yearsSame here. Don't even try to fix hardware-problems with software.
-
Scott - Слава Україні over 11 yearsYou might get a wider audience, and therefore possibly better answers, on Super User.
-
Dan D. almost 11 yearsIf you still have this problem, could you include the make and model of the mouse in question?
-
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 about 5 yearsRather than desoldering microswitches, you could try fixing them in-situ like this
-
creativecoding almost 3 yearsI happen to have the same problem. I wanted to upvote the question, but my mouse won't let me. ;-)
-
-
pabouk - Ukraine stay strong over 9 yearsThis 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 over 9 yearsI tried this piece of software and it works well for me. Fixed my double clicking problems. This answer is a gem.
-
Victor Sergienko about 9 yearsI'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 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.