<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Logitech K400: double tap on touchpad is filtered by debouncing code"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106534">106534</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Logitech K400: double tap on touchpad is filtered by debouncing code
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libinput
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>noabody@yahoo.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>1762536@trash-mail.com, peter.hutterer@who-t.net, wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Depends on</th>
          <td>105974
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=139584" name="attach_139584" title="Patch for source package in Cosmic 1.10.6">attachment 139584</a> <a href="attachment.cgi?id=139584&action=edit" title="Patch for source package in Cosmic 1.10.6">[details]</a></span>
Patch for source package in Cosmic 1.10.6

+++ This bug was initially created as a clone of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Logitech K400: double tap on touchpad is filtered by debouncing code"
   href="show_bug.cgi?id=105974">Bug #105974</a> +++
+++             Which is an extension of <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - My wireless all-in-one (keyboard/mouse) requires a triple-tap to highlight a word"
   href="show_bug.cgi?id=104415">bug 104415</a>          +++

this is a copy of:
<a href="https://bugs.launchpad.net/ubuntu/+source/libinput/+bug/1762536">https://bugs.launchpad.net/ubuntu/+source/libinput/+bug/1762536</a>

Affects Logitech Wireless Keyboard/Touchpad combo devices.

 libinput:mouse:input:b0003v046Dp404B*
  LIBINPUT_MODEL_LOGITECH_K400r=1

 libinput:mouse:input:b0003v046Dp404C*
  LIBINPUT_MODEL_LOGITECH_K830=1

 libinput:mouse:input:b0003v046Dp404D*
  LIBINPUT_MODEL_LOGITECH_K400plus=1

Conglomerated as the code is clearly a workaround not designed for a large
database of affected hardware.  Apparently filtering devices from debouncing
was unexpected.  As-is, patching is inaccessible in the common use arena.

 libinput:mouse:input:b0003v046Dp404*
  LIBINPUT_MODEL_LOGITECH_KBTP=1


        if (device->model_flags &          
(EVDEV_MODEL_MS_NANO_TRANSCEIVER|EVDEV_MODEL_LOGITECH_K400|EVDEV_MODEL_LOGITECH_KBTP))
{
                dispatch->debounce.state = DEBOUNCE_STATE_DISABLED;
                return;
        }

Ubuntu 18.04.  Since users reported a patch in "Cosmic":
echo "deb-src <a href="http://us.archive.ubuntu.com/ubuntu/">http://us.archive.ubuntu.com/ubuntu/</a> cosmic main universe
multiverse" | sudo tee /etc/apt/sources.list.d/cosmic.list
sudo apt update
sudo apt build-dep libinput10
apt source libinput10

Edit affected files (catfish search all files for text K400):
libinput-1.10.6.orig/src/evdev-debounce.c
libinput-1.10.6.orig/src/evdev.c
libinput-1.10.6.orig/src/evdev.h
libinput-1.10.6.orig/udev/90-libinput-model-quirks.hwdb
Edit all files based using existing entries as guide.
Commit patch in source (required to build locally)

debuild -uc -us</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Logitech K400: double tap on touchpad is filtered by debouncing code"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=105974">Bug 105974</a>] Logitech K400: double tap on touchpad is filtered by debouncing code
              </li>
          </ul>
        </div>
        <br>

      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>