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
|
|
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
|
|
|
[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
|