Here is a patch for libinput which worked for me. The debounce time is
hard coded to 25 ms and 12 ms. The patch will increase it to 100 ms and
50 ms. I hope it will help.

libinput_debounce_time.patch
 
--- a/src/evdev-debounce.c      2020-06-19 10:00:40.778552300 +1000
+++ b/src/evdev-debounce.c      2020-07-27 02:02:52.343254576 +1000
@@ -124,7 +124,7 @@
 debounce_set_timer(struct fallback_dispatch *fallback,
                   uint64_t time)
 {
-       const int DEBOUNCE_TIMEOUT_BOUNCE = ms2us(25);
+       const int DEBOUNCE_TIMEOUT_BOUNCE = ms2us(100);
 
        libinput_timer_set(&fallback->debounce.timer,
                           time + DEBOUNCE_TIMEOUT_BOUNCE);
@@ -134,7 +134,7 @@
 debounce_set_timer_short(struct fallback_dispatch *fallback,
                         uint64_t time)
 {
-       const int DEBOUNCE_TIMEOUT_SPURIOUS = ms2us(12);
+       const int DEBOUNCE_TIMEOUT_SPURIOUS = ms2us(50);
 
        libinput_timer_set(&fallback->debounce.timer_short,
                           time + DEBOUNCE_TIMEOUT_SPURIOUS);

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-input-evdev in Ubuntu.
https://bugs.launchpad.net/bugs/602809

Title:
  add Mouse Click Debounce Feature?

Status in xserver-xorg-input-evdev:
  New
Status in xserver-xorg-input-evdev package in Ubuntu:
  Confirmed
Status in xserver-xorg-input-libinput package in Ubuntu:
  Confirmed

Bug description:
  Model:  bonp3
  OS:  Ubuntu 10.04 LTS

  When I single click the mouse (external USB Mouse - Mouse Pad
  disabled) half the time the system responds as though I have double
  clicked the mouse.  I try 2 different USB mouse units and it still
  does this.  I am running Ubuntu 10.04 on a separate PC that does not
  have this mouse problem.  So I am thinking this problem is a System76
  driver issue???

  It's annoying.  :(

To manage notifications about this bug go to:
https://bugs.launchpad.net/evdev/+bug/602809/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to