2018-06-14 11:54:52 +10:00
|
|
|
# Do not edit this file, it will be overwritten on update
|
|
|
|
|
|
Implement a quirks system to replace the udev property parsing
Previously, we had all extra device information ("This is an Apple Touchpad",
"This touchpad causes pointer jumps", etc.) in the udev hwdb. The problem with
the hwdb is that updating it is nontrivial for the average user and debugging
when things go wrong is even harder. Plus, the hwdb has a matching scheme that
is unpredictable unless one is familiar with the implementation.
This patch set moves the hwdb entries into .ini style text files, with a
simple line-based parser. A new libinput list-quirks tool can list the quirks
applied to any given device, in --verbose mode it prints all matches as they
apply or not apply.
The data files are currently unused by libinput, that comes in a later patch.
They're installed though, the defaults point to the /usr/share/libinput
directory and for *temporary* local overrides the single file
/etc/libinput/local-overrides.quirks.
Failure to parse any file is a hard failure for the quirks system, but if the
local override file doesn't exist that's fine.
THIS IS NOT A CONFIGURATION INTERFACE! None of these settings are exposed via
the libinput_device_config_* calls. There is no API guarantee for these files,
think of them as source code.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-05-21 14:28:53 +10:00
|
|
|
[Asus X555LAB]
|
|
|
|
|
MatchName=*ETPS/2 Elantech Touchpad*
|
|
|
|
|
MatchDMIModalias=dmi:*svnASUSTeKCOMPUTERINC.:pnX555LAB:*
|
|
|
|
|
ModelTouchpadVisibleMarker=1
|
|
|
|
|
|
|
|
|
|
[Asus UX21E]
|
|
|
|
|
MatchName=*ETPS/2 Elantech Touchpad*
|
|
|
|
|
MatchDMIModalias=dmi:*svnASUSTeKComputerInc.:pnUX21E:*
|
|
|
|
|
AttrPressureRange=24:10
|
2018-09-20 09:20:18 +10:00
|
|
|
|
2018-10-19 15:27:20 +10:00
|
|
|
# Asus UX302LA touchpad doesn't update the pressure values once two
|
|
|
|
|
# fingers are down. So let's just pretend it doesn't have pressure
|
|
|
|
|
# at all. https://gitlab.freedesktop.org/libinput/libinput/issues/145
|
2018-09-20 09:20:18 +10:00
|
|
|
[Asus UX302LA]
|
|
|
|
|
MatchName=*ETPS/2 Elantech Touchpad*
|
|
|
|
|
MatchDMIModalias=dmi:*svnASUSTeKCOMPUTERINC.:pnUX302LA:*
|
2018-10-19 15:27:20 +10:00
|
|
|
AttrEventCodeDisable=ABS_MT_PRESSURE;ABS_PRESSURE;
|
2019-01-03 00:19:32 +01:00
|
|
|
|
|
|
|
|
# Asus VivoBook Flip 14 TP412UA tablet switch seems misbehaving, always
|
|
|
|
|
# indicating tablet position
|
2019-01-16 10:05:59 +10:00
|
|
|
[Asus TP412UA Tablet Mode Switch]
|
|
|
|
|
MatchName=*Intel Virtual Button*
|
2019-01-03 00:19:32 +01:00
|
|
|
MatchDMIModalias=dmi:*svnASUSTeKCOMPUTERINC.:pnVivoBookFlip14_ASUSFlipTP412UA:*
|
2019-01-16 10:05:59 +10:00
|
|
|
ModelTabletModeSwitchUnreliable=1
|
2021-05-31 16:24:43 +00:00
|
|
|
|
|
|
|
|
# keyboard has a different vid/pid to the touchpad
|
|
|
|
|
# so libinput won't pair the two together and dwt isn't active.
|
|
|
|
|
# see: https://gitlab.freedesktop.org/libinput/libinput/-/issues/615
|
|
|
|
|
[Asus ROG Zephyrus G15 2021 keyboard]
|
|
|
|
|
MatchVendor=0x0B05
|
|
|
|
|
MatchProduct=0x19B6
|
|
|
|
|
MatchUdevType=keyboard
|
|
|
|
|
AttrKeyboardIntegration=internal
|
2022-01-20 04:44:07 +00:00
|
|
|
|
|
|
|
|
# keyboard has a different vid/pid to the touchpad
|
|
|
|
|
# so libinput won't pair the two together and dwt isn't active.
|
|
|
|
|
[Asus ROG Strix G15 2021 keyboard]
|
|
|
|
|
MatchVendor=0x0B05
|
|
|
|
|
MatchProduct=0x1866
|
|
|
|
|
MatchUdevType=keyboard
|
|
|
|
|
AttrKeyboardIntegration=internal
|