19

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.

elias
  • 325
  • 2
  • 3
  • 10
  • 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](http://www.labbookpages.co.uk/electronics/debounce.html). 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
  • I think I'll not have another solution, unless buy a new one... – elias Jul 23 '12 at 17:24
  • 2
    Same here. Don't even try to fix hardware-problems with software. – Bonsi Scott Nov 13 '12 at 22:23
  • You might get a wider audience, and therefore possibly better answers, on [Super User](http://superuser.com). – Scott - Слава Україні Jan 09 '13 at 22:12
  • 8
    @BonsiScott You can't fix hardware problems with software but you can compensate for them. – David May 22 '13 at 20:35
  • If you still have this problem, could you include the make and model of the mouse in question? – Dan D. Jul 16 '13 at 15:54
  • @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. – Victor Sergienko May 01 '15 at 14:48
  • 1
    Rather than desoldering microswitches, you could try fixing them in-situ like [this](https://www.youtube.com/watch?v=82z-OpHdBgE) – Neil Stockbridge Apr 01 '19 at 02:15
  • I happen to have the same problem. I wanted to upvote the question, but my mouse won't let me. ;-) – creativecoding Jul 07 '21 at 12:31

4 Answers4

12

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!

notrat
  • 136
  • 1
  • 3
  • 2
    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 03: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
  • 1
    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: http://askubuntu.com/a/616956/6820. In short, it's a good fix unless the contact is TOO bad. – Victor Sergienko May 01 '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
3

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.

Jérôme
  • 1,898
  • 3
  • 26
  • 47
1

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

Oxana S.
  • 11
  • 1
0

you can try the option

Double-Click Timeout

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

inye
  • 97
  • 1
  • 4
    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 - Ukraine stay strong Sep 22 '14 at 12:36