DEV Community

sa3i0l
sa3i0l

Posted on

Enable touchpad tapping

The touchpad tapping is disabled by default.

To enable it, do this:

  1. Install xinput:
   sudo apt install -y xinput
Enter fullscreen mode Exit fullscreen mode
  1. Get the touchpad ID:
   xinput --list
Enter fullscreen mode Exit fullscreen mode

You will see something like this:

   ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
   ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
   ⎜   ↳ Elan Touchpad                             id=11   [slave  pointer  (2)]
   ⎜   ↳ Elan TrackPoint                           id=12   [slave  pointer  (2)]
   ⎜   ↳ ELAN Touchscreen                          id=9    [slave  pointer  (2)]
   ⎣ Virtual core keyboard                     id=3    [master keyboard (2)]
       ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
       ↳ Power Button                              id=6    [slave  keyboard (3)]
Enter fullscreen mode Exit fullscreen mode

As shown in the example above, the Elan Touchpad ID is 11. It might be different on your device.

  1. Query available settings for the device:
   xinput list-props 11 | head -n5
Enter fullscreen mode Exit fullscreen mode

You will find something like this:

   Device 'Elan Touchpad':
       Device Enabled (187):   1
       Coordinate Transformation Matrix (189): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
       libinput Tapping Enabled (320): 0
       libinput Tapping Enabled Default (321): 0
Enter fullscreen mode Exit fullscreen mode

As you can see, the libinput Tapping Enabled property with the ID of 320 is disabled with the value of 0.

  1. Enable touchpad tapping:
   xinput set-prop 11 320 1
Enter fullscreen mode Exit fullscreen mode

This command sets the property for the touchpad device (11) to enable libinput Tapping (320).

Top comments (0)