Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Disable while typing" touchpad option not working when using input-remapper #953

Open
Tai-Mai opened this issue Sep 10, 2024 · 0 comments

Comments

@Tai-Mai
Copy link

Tai-Mai commented Sep 10, 2024

This isn't input-remapper's fault per se but it took some time to troubeshoot until I found the right resource and since it has something to do with input-remapper, I wanted to share my solution here for visibility. If you think this problem isn't too niche, it might be a good idea to document it somewhere in the project?

I'm using input-remapper on my laptop in order to use a custom keyboard layout. As a result, the rebound keypresses are detected as coming from another device than the original, internal keyboard.

In order for the "disable while typing" option to work, libinput has to detect one of the following cases (source):

  • The keyboard and touchpad are both “internal” devices (i.e. not plugged in via USB), or
  • The keyboard and touchpad IDs match (i.e. their vendor ID, product ID are the same) and can be treated as a pair.

So, the fix is to register the input-remapper keyboard device as internal. The linked source explains how and I'll list my steps here, too.

  1. Identify the right keyboard event
    • Run $ libinput debug-events
    • Press a rebound key with the input-remapper preset active
    • Note the eventXY that pops up
  2. Identify the right name
    • Run $ libinput list-devices
    • Find the device with the same eventXY. For me, it was
      Device:           input-remapper keyboard
      Kernel:           /dev/input/event17
      
  3. Create the directory /etc/libinput/
  4. Create the file /etc/libinput/local-overrides.quirks with the following contents:
    [Serial Keyboards]
    MatchUdevType=keyboard
    MatchName=input-remapper keyboard
    AttrKeyboardIntegration=internal
    
  5. Reboot

This fixed "disable while typing" for me.

I'm using Fedora 40, KDE, Wayland on an HP laptop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant