Debounce Mouse?

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help
Post Reply
tundra
Level 1
Level 1
Posts: 15
Joined: Thu Mar 08, 2012 9:04 pm

Debounce Mouse?

Post by tundra » Fri May 13, 2016 4:17 pm

I have an environment where pretty much every mouse I try has bad bounce problems with the middle button (scroll wheel). I am looking for a way to introduce a software delay to suppress the bounce. It seems other have had this problem and there was a workaround at one time. However, I am not clear this will work with current software:


blog.guntram.de/?p=16

So my questions are these:

- Does that patch above still apply?

- Is there an easier way to do this?

- If I wanted to write the code myself, how would I go about getting the current stuff and then getting my patches applied to the upstream master?

(Easier is better here...)

Cosmo.
Level 22
Level 22
Posts: 16693
Joined: Sat Dec 06, 2014 7:34 am

Re: Debounce Mouse?

Post by Cosmo. » Fri May 13, 2016 4:34 pm

The pity truth is: If one button starts to bounce, the mouse is a case for replacement.

tundra
Level 1
Level 1
Posts: 15
Joined: Thu Mar 08, 2012 9:04 pm

Re: Debounce Mouse?

Post by tundra » Fri May 13, 2016 7:42 pm

Not the case at all. These are brand new meece

User avatar
all41
Level 11
Level 11
Posts: 3877
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Debounce Mouse?

Post by all41 » Fri May 13, 2016 10:40 pm

Cosmo. wrote:The pity truth is: If one button starts to bounce, the mouse is a case for replacement.
That is what I used to think as well.
I had a mouse which double or triple clicked with a single right click finger action. I quit using it for some
time and used a wired mouse instead. So one day I decided to disassemble the wireless mouse to see if the switch
could be replaced.
Under magnification I noticed the solder around the switch pins had a tiny crack on one of the pins. I resoldered the switch pins and wala!
It is still working perfectly after a couple years.
Proud to be a supporter and monthly contributor to Mint.

Cosmo.
Level 22
Level 22
Posts: 16693
Joined: Sat Dec 06, 2014 7:34 am

Re: Debounce Mouse?

Post by Cosmo. » Sat May 14, 2016 4:48 am

tundra wrote:These are brand new meece
If you would have written "mouse" I would have answered to bring it back to the vendor. But multiple brand new mice with the same bug are unlikely.

What do you mean with this:
tundra wrote:I have an environment,
:?: What environment? Does this mean, that this problem does not exist everywhere? Is the problem reproducible in the live system?

tundra
Level 1
Level 1
Posts: 15
Joined: Thu Mar 08, 2012 9:04 pm

Re: Debounce Mouse?

Post by tundra » Sat May 14, 2016 10:21 pm

Every new mouse I have tried with a particular configuration - same desktop machine, a KVM, etc. has overly sensitive middle button sensitivity except the original Microsoft Intellimouse Optical I used to use (and is now utterly worn out). This is a timing thing and what is clearly needed is the ability to tune debounce times.

If you look at the link above, others have the same problem, a solution was proposed and then rejected due to lack of time to test.

User avatar
all41
Level 11
Level 11
Posts: 3877
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Debounce Mouse?

Post by all41 » Sat May 14, 2016 11:32 pm

tundra,
I have reread this topic and admit that I still do not understand the problem.
Can you further describe 'bounce problems with the middle scroll wheel' and 'overly sensitive middle button'.
Are these usb mouses or wireless?
I have used a plethora of devices without the problems you are encountering.
Proud to be a supporter and monthly contributor to Mint.

Cosmo.
Level 22
Level 22
Posts: 16693
Joined: Sat Dec 06, 2014 7:34 am

Re: Debounce Mouse?

Post by Cosmo. » Sun May 15, 2016 5:48 am

Please provide an reproducible example, where you use the middle mouse and where it overreacts / bounces.

Habitual
Level 13
Level 13
Posts: 4869
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: Debounce Mouse?

Post by Habitual » Sun May 15, 2016 8:43 am

Not all "KVMs etc" are created equal.
(more info about that)

tundra
Level 1
Level 1
Posts: 15
Joined: Thu Mar 08, 2012 9:04 pm

Re: Debounce Mouse?

Post by tundra » Sun May 15, 2016 12:01 pm

Here is the problem case: While scrolling with the middle mouse wheel, even the most momentary of contact by downward pressure (this is easy to do with every mouse I've tried thus far) immediately triggers one, and often more than one, middle button click events. This could be solved by adding delay and debounce code to the mouse driver. Again - I point you to my original link and note that many people have encountered this.

These are all wires meece because KVM does not deal kindly with wired ones.

Cosmo.
Level 22
Level 22
Posts: 16693
Joined: Sat Dec 06, 2014 7:34 am

Re: Debounce Mouse?

Post by Cosmo. » Sun May 15, 2016 12:29 pm

Mh, all my mice (mostly Logitech) I used in many years needed to press the wheel button expressively. I had never the case, that the wheel button git pressed, when I only wanted to scroll.

User avatar
all41
Level 11
Level 11
Posts: 3877
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Debounce Mouse?

Post by all41 » Sun May 15, 2016 6:58 pm

The patch referred to in op adds a debounce property for the device in x. I changed the default setting of 0 to 20.
I am unable to check the effectiveness since I do not have a "bouncy" mouse button.
My middle click seems to operate normally with the new setting.
debounce.png
Proud to be a supporter and monthly contributor to Mint.

JayBird707
Level 2
Level 2
Posts: 78
Joined: Sat Jan 30, 2016 9:56 pm

Re: Debounce Mouse?

Post by JayBird707 » Fri Jan 19, 2018 4:18 pm

I have the mouse problem with my system. I have three Logitech M510 units, two which are essentially brand new. All three work fine with Win in a VM. I'm running Mint 18.3 XFCE (also tried Cinnamon) and all three need to be debounced for working in Mint. I have looked at blog.guntram.de/?p=16 and it's over my head. If I had the .deb for Mint 18.3 I could give it a go since I've looked at all the xinput steps and the terminal work is not a problem. Is there someone with a copy of the 18.3 associated .deb file?
Dell Studio 1737 Laptop: HP6300 Desktop: HP8000 SFF Desktop all on Linux Mint!

oggan
Level 1
Level 1
Posts: 4
Joined: Mon Jan 16, 2017 5:16 am

Re: Debounce Mouse?

Post by oggan » Mon Jan 22, 2018 9:21 am

I've been having this issue too and it's really annoying.
I'd like to apply the mentioned patch but can't figure out how.
On the blog-page mentined in this thread (blog.guntram.de/?p=16) there's instructions but I can't get them to work:

Code: Select all

apt-get source xserver-xorg-input-evdev-dev
 sudo apt-get build-dep xserver-xorg-input-evdev-dev
 cd xserver-xorg-input-evdev-2.8.2/
 patch -p 1 < ../evdev-debounce.patch
 dch -i
 debuild -us -uc -b
 cd ..
 
FIrst 2 lines work.
The third one works if changed to cd xserver-xorg-input-evdev-2.10.1

But the fourth one gives me an error: bash: ../evdev-debounce.patch: No such file or directory

And there's no other file in there with a similar name so I do't kow what to do.
Any help?

JayBird707
Level 2
Level 2
Posts: 78
Joined: Sat Jan 30, 2016 9:56 pm

Re: Debounce Mouse?

Post by JayBird707 » Mon Jan 22, 2018 9:48 am

There is a link to the patch in blog.guntram.de . The problem is that the link is for the Ubuntu 14.04 version of the patch. If you are on Mint 18.3 (Ubuntu 16.04) that's not going to work. I have posted on the blog a request for someone to create the .deb file with the updated patch. If I hear anything I'll come back here and post it.
Dell Studio 1737 Laptop: HP6300 Desktop: HP8000 SFF Desktop all on Linux Mint!

Post Reply

Return to “Hardware Support”