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.

  • I have had it happen to me as well, on a Windows 7 machine. – Kevdog777 Jul 19 '12 at 15:48
  • 18
    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. – Wyzard Jul 19 '12 at 23:54
  • 3
    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. – MvG Jul 23 '12 at 17:04
  • 2
    Same here. Don't even try to fix hardware-problems with software. – Bonsi Scott Nov 13 '12 at 22:23
  • 6
    @BonsiScott You can't fix hardware problems with software but you can compensate for them. – David May 22 '13 at 20:35

I found this:


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!

| improve this answer | |
  • 1
    While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – jordanm Oct 18 '14 at 3:59
  • 2
    @jordanm What do you mean by "include the essential parts of the answer"? Shall the user include the source code? It's a link to a piece software. – pfnuesel Dec 19 '14 at 20:10
  • I tried this piece of software and it works well for me. Fixed my double clicking problems. This answer is a gem. – pfnuesel Dec 19 '14 at 20:10
  • 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. – Victor Sergienko May 1 '15 at 16:23
  • @pfnuesel In this case, I would say that "include essential parts" would translate to explaining what it does and how to use it. – Hjulle Apr 12 '16 at 11:51

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.

| improve this answer | |

you can try the option

Double-Click Timeout

in mouse preferences, like this http://beginlinux.com/desktop/fedora/mouse-preferences

| improve this answer | |
  • 2
    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. – pabouk Sep 22 '14 at 12:36

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).


| improve this answer | |
New contributor
Oxana S. is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.