libinput/quirks
Joaquin Gonzalez ed79e4faa3 quirks: changes touchpad pressure Lenovo Yoga 2 Pro
Adds touchpad pressure configuration for Lenovo Yoga 2 Pro in order to avoid random cursor jumps on finger up.

Signed-off-by: Joaquin Gonzalez <joaquin.gonzalez.uy@gmail.com>
(cherry picked from commit 0bd1560750)
2021-12-13 13:08:14 +10:00
..
10-generic-keyboard.quirks quirks: explicitly mark bluetooth keyboards as external 2018-08-27 09:19:46 +10:00
10-generic-lid.quirks Rename data/ to quirks/ 2018-07-13 13:30:54 +10:00
10-generic-mouse.quirks quirks: no button debouncing on generic emulated mouse 2021-09-12 21:51:53 +00:00
10-generic-trackball.quirks Rename data/ to quirks/ 2018-07-13 13:30:54 +10:00
30-vendor-a4tech.quirks quirks: add ModelBouncingKeys for A4Tech X-710BK Mouse 2021-12-13 13:08:01 +10:00
30-vendor-aiptek.quirks tablet: use the AttrPressureRange quirk for tablets too 2020-03-31 02:49:24 +00:00
30-vendor-alps.quirks quirks: Customize ALPS i2c touchpad palm detect pressure threshold 2020-09-28 12:12:51 +08:00
30-vendor-contour.quirks quirks: add RollerMouse Free 3 for double-click fix 2019-10-26 16:04:05 +00:00
30-vendor-cypress.quirks quirks: add touchpad range for cypress touchpads 2019-06-28 11:27:13 +10:00
30-vendor-elantech.quirks quirks: extend/restore the Elan Touchpads quirks 2018-09-18 07:18:34 +10:00
30-vendor-ibm.quirks quirks: speed up the TrackPoint on the IBM USB UltraNav keyboard a bit 2019-04-05 19:16:23 +02:00
30-vendor-kensington.quirks quirks: enforce uppercase hex numbers 2019-01-18 04:31:53 +00:00
30-vendor-logitech.quirks Add original MX Master to inverted-horizontal-wheel-having mice. 2020-08-11 19:47:23 +02:00
30-vendor-madcatz.quirks quirks: Add quirk for MadCatz RAT7 mouse 2020-02-15 20:24:00 +01:00
30-vendor-microsoft.quirks quirks: Microsoft Surface Pro 3 Cover 2021-09-06 18:51:01 +02:00
30-vendor-razer.quirks quirks: add palm rejection support for all Razer Blade models 2021-05-19 12:59:18 +10:00
30-vendor-starlabs.quirks quirks: Update dmi for StarBook Mk V 2021-10-11 07:19:39 +00:00
30-vendor-synaptics.quirks Rename data/ to quirks/ 2018-07-13 13:30:54 +10:00
30-vendor-trust.quirks add trust mouse quirk #455 2020-03-22 12:07:51 +01:00
30-vendor-vmware.quirks quirks: disable debouncing on the VMware Virtual mice 2018-10-19 00:16:15 +00:00
30-vendor-wacom.quirks Revert "tablet: don't disable the proximity quirk on good sequences" 2020-05-22 03:10:06 +00:00
50-framework.quirks quirks: add Framework Touchpad Quirk 2021-07-28 16:47:48 -04:00
50-system-acer.quirks quirks: don't disable keyboard device for Acer Spin 5 when in tablet mode 2019-01-08 02:24:16 +00:00
50-system-apple.quirks quirks: add quirks for Apple SPI input devices 2021-03-17 02:34:30 +00:00
50-system-asus.quirks Update 50-system-asus.quirks to include Asus G15 Zephyrus quirk. 2021-06-01 11:04:44 -04:00
50-system-chicony.quirks quirks: enforce uppercase hex numbers 2019-01-18 04:31:53 +00:00
50-system-chuwi.quirks quirks: Chuwi AeroBook Plus has a clickpad falsely claiming to have BTN_RIGHT 2021-07-30 22:59:22 +02:00
50-system-cyborg.quirks quirks: switch a few model quirks over to use the new evcode disabling 2018-10-29 04:16:38 +00:00
50-system-dell.quirks quirks: Dell 15R touchpad settings for firmware v3 2021-12-13 13:07:40 +10:00
50-system-gigabyte.quirks quirks: add palm size quirk for the Gigabyte Aero 15 2021-04-14 15:04:39 +10:00
50-system-google.quirks quirks: add wildcard to HID-over-I2C names (for FreeBSD) 2021-03-17 02:34:30 +00:00
50-system-gpd.quirks quirks: add quirk for GPD Win Max 2021-10-20 16:18:33 +02:00
50-system-hp.quirks quirks: add wildcard to HID-over-I2C names (for FreeBSD) 2021-03-17 02:34:30 +00:00
50-system-huawei.quirks quirks: add a quirk for the Huawei Matebook 2020 touchpad 2021-06-21 08:52:27 +10:00
50-system-lenovo.quirks quirks: changes touchpad pressure Lenovo Yoga 2 Pro 2021-12-13 13:08:14 +10:00
50-system-pine64.quirks quirks: Pine64 PineBook Pro keyboard 2021-09-05 14:05:24 -07:00
50-system-prestigio.quirks quirks: add quirk for the Prestigio Smartbook 141 C2 touchpad 2021-09-27 05:56:37 +10:00
50-system-purism.quirks quirks: relax DMI modalias match for Purism Librem 14v1 2021-10-11 19:23:20 -04:00
50-system-sony.quirks Add quirks file for Sony Vaio Laptop 2020-06-17 13:33:08 +00:00
50-system-system76.quirks Rename data/ to quirks/ 2018-07-13 13:30:54 +10:00
50-system-toshiba.quirks Removed whitespace from filename. 2019-03-29 12:34:27 +01:00
README.md quirks: reword the requirements section in the quirks README 2021-02-03 07:45:12 +00:00

libinput quirks file format

This directory contains hardware quirks used by libinput to work around bugs in the hardware, device behavior and to supply information not obtained through the kernel device.

THIS IS NOT STABLE API

The data format may change at any time. If your quirks file is not part of the libinput git tree, do not expect it to work after an update. Absolutely no guarantees are made for backwards-compatibility.

THIS IS NOT A CONFIGURATION API

Use the libinput_device_config_foo() functions for device configuration. Quirks here are hardware quirks only.

Data file naming

Data files are read in versionsort order, read order determines how values override each other. Values read later override previously read values. The current structure is:

  • 10-generic-foo.quirks for generic settings,
  • 30-vendor-foo.quirks for vendor-specific settings, and
  • 50-system-foo.quirks for system vendors.

This is not a fixed naming scheme and may change at any time. It's an approximation only because some vendors are also system vendors, e.g. Microsoft makes devices and laptops.

Laptop-specific quirks should always go into the laptop vendor's file even where they apply to a component of a different vendor. For example, a quirk for a Synaptics touchpad specific to a Dell laptop should go into the Dell quirks file.

Sections, matches and values

A data file must contain at least one section, each section must have at least one Match tag and at least one of either Attr or Model. Section names are free-form and may contain spaces.

# This is a comment
[Some touchpad]
MatchBus=usb
# No quotes around strings
MatchName=*Synaptics Touchpad*
AttrSizeHint=50x50
ModelSynapticsTouchpad=1

[Apple touchpad]
MatchVendor=0x5AC
MatchProduct=0x123
ModelAppleTouchpad=1

Comments are lines starting with #.

All Model tags take a value of either 1 or 0.

All Attr tag values are specific to that attribute.

Parser errors

The following requirements must be met:

  • No whitespace is allowed at the beginning of the line
  • A Section must have at least one Match* entry
  • A Section must not repeat Match* entry
  • A Section must have at least one of Model* or Attr* entries
  • A Model tag may only have the value 1 or 0
  • String properties must not be enclosed in quotes
  • Hex numbers must use uppercase letters (e.g. 0x12AB)

Failure to meet these requirements will cause a parser error and the quirks files will not be used.

Debugging

When modifying a data file, use the libinput list-quirks tool to verify the changes. The tool can be pointed at the data directory to analyse, use --verbose to get more info. For example:

libinput list-quirks --data-dir /path/to/git/repo/quirks/ --verbose /dev/input/event0