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
|
|
|
[Apple Touchpads USB]
|
|
|
|
|
MatchVendor=0x05AC
|
|
|
|
|
MatchBus=usb
|
|
|
|
|
MatchUdevType=touchpad
|
|
|
|
|
ModelAppleTouchpad=1
|
|
|
|
|
AttrSizeHint=104x75
|
|
|
|
|
AttrTouchSizeRange=150:130
|
|
|
|
|
AttrPalmSizeThreshold=800
|
|
|
|
|
|
|
|
|
|
[Apple Touchpads Bluetooth]
|
|
|
|
|
MatchVendor=0x05AC
|
|
|
|
|
MatchBus=bluetooth
|
|
|
|
|
MatchUdevType=touchpad
|
|
|
|
|
ModelAppleTouchpad=1
|
2019-04-12 00:55:26 +02:00
|
|
|
AttrTouchSizeRange=150:130
|
|
|
|
|
|
|
|
|
|
[Apple Touchpads Bluetooth (new vendor ID)]
|
|
|
|
|
MatchVendor=0x004C
|
|
|
|
|
MatchBus=bluetooth
|
|
|
|
|
MatchUdevType=touchpad
|
|
|
|
|
ModelAppleTouchpad=1
|
|
|
|
|
AttrTouchSizeRange=150:130
|
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
|
|
|
|
|
|
|
|
[Apple Internal Keyboard]
|
|
|
|
|
MatchName=*Apple Inc. Apple Internal Keyboard*
|
|
|
|
|
AttrKeyboardIntegration=internal
|
|
|
|
|
|
2018-10-19 15:27:20 +10:00
|
|
|
# The Apple MagicMouse has a touchpad built-in but the kernel still
|
|
|
|
|
# emulates a full 2/3 button mouse for us. Ignore anything from the
|
|
|
|
|
# ABS interface
|
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
|
|
|
[Apple MagicMouse]
|
|
|
|
|
MatchUdevType=mouse
|
|
|
|
|
MatchBus=bluetooth
|
|
|
|
|
MatchVendor=0x05AC
|
|
|
|
|
MatchProduct=0x030D
|
2018-10-19 15:27:20 +10:00
|
|
|
AttrEventCodeDisable=EV_ABS
|
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
|
|
|
|
2020-06-13 17:34:59 +03:00
|
|
|
# The External Apple "Magic" trackpads, both the 1st and 2nd generations, have
|
|
|
|
|
# pretty good built-in spurious touch filtering in the device firmware. Using
|
|
|
|
|
# low enough values such as 20:10 effectively disables libinput's filtering.
|
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
|
|
|
[Apple Magic Trackpad v1 (2010, clickpad)]
|
|
|
|
|
MatchUdevType=touchpad
|
|
|
|
|
MatchBus=bluetooth
|
|
|
|
|
MatchVendor=0x5AC
|
|
|
|
|
MatchProduct=0x030E
|
|
|
|
|
AttrSizeHint=130x110
|
|
|
|
|
AttrTouchSizeRange=20:10
|
|
|
|
|
AttrPalmSizeThreshold=900
|
2018-08-21 20:54:58 -05:00
|
|
|
AttrThumbSizeThreshold=700
|
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
|
|
|
|
2020-06-13 17:34:59 +03:00
|
|
|
# 2nd generation trackpad can be connected over Bluetooth as well as USB.
|
|
|
|
|
[Apple Magic Trackpad v2 (2015)]
|
|
|
|
|
MatchVendor=0x05AC
|
|
|
|
|
MatchProduct=0x0265
|
|
|
|
|
AttrSizeHint=162x115
|
|
|
|
|
AttrTouchSizeRange=20:10
|
|
|
|
|
AttrPalmSizeThreshold=900
|
2020-09-12 17:21:59 +02:00
|
|
|
AttrThumbSizeThreshold=800
|
|
|
|
|
AttrPalmPressureThreshold=190
|
2020-06-13 17:34:59 +03:00
|
|
|
|
|
|
|
|
[Apple Magic Trackpad v2 (new vendor ID)]
|
|
|
|
|
MatchVendor=0x004C
|
|
|
|
|
MatchProduct=0x0265
|
|
|
|
|
AttrSizeHint=162x115
|
|
|
|
|
AttrTouchSizeRange=20:10
|
|
|
|
|
AttrPalmSizeThreshold=900
|
2020-09-12 17:21:59 +02:00
|
|
|
AttrThumbSizeThreshold=800
|
|
|
|
|
AttrPalmPressureThreshold=190
|
2020-06-13 17:34:59 +03:00
|
|
|
|
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
|
|
|
[Apple Touchpad OneButton]
|
|
|
|
|
MatchUdevType=touchpad
|
|
|
|
|
MatchBus=usb
|
|
|
|
|
MatchVendor=0x5AC
|
|
|
|
|
MatchProduct=0x021A
|
|
|
|
|
ModelAppleTouchpadOneButton=1
|
|
|
|
|
|
|
|
|
|
[Apple Touchpad MacbookPro5,5]
|
|
|
|
|
MatchUdevType=touchpad
|
|
|
|
|
MatchBus=usb
|
|
|
|
|
MatchVendor=0x05AC
|
|
|
|
|
MatchProduct=0x0237
|
|
|
|
|
AttrPalmSizeThreshold=1000
|
2018-11-27 16:14:07 -06:00
|
|
|
|
|
|
|
|
[Apple Laptop Touchpad (MacBookPro11,2 among others)]
|
|
|
|
|
MatchUdevType=touchpad
|
|
|
|
|
MatchBus=usb
|
|
|
|
|
MatchVendor=0x5AC
|
|
|
|
|
MatchProduct=0x0262
|
|
|
|
|
AttrPalmSizeThreshold=1600
|