mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-28 03:38:15 +02:00
Don't disable inputs for detachable and tablet devices, they are physically unplugged from their input devices but tend to have buttons as internal keyboard in the tablet part that must work always. We know what kind of device is using the Chassis Type DMI value. Also remove specific device quirks now covered by the chassis type. Finally refactor some Lenovo devices using this quirk and redefine Dell 2-in-1 with this quirk using chassis type. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1390>
31 lines
1 KiB
Text
31 lines
1 KiB
Text
# Do not edit this file, it will be overwritten on update
|
|
|
|
[Serial Keyboards]
|
|
MatchUdevType=keyboard
|
|
MatchBus=ps2
|
|
AttrKeyboardIntegration=internal
|
|
|
|
[Bluetooth Keyboards]
|
|
MatchUdevType=keyboard
|
|
MatchBus=bluetooth
|
|
AttrKeyboardIntegration=external
|
|
|
|
# Detachable devices usually have the tablet part buttons wired as ps2 keyboard,
|
|
# don't disable them when tablet-mode switch is in effect.
|
|
# DMI Chassis Type 20h (32 decimal) is Detachable as per SMBIOS specification.
|
|
[Detachable Device Buttons]
|
|
MatchBus=ps2
|
|
MatchUdevType=keyboard
|
|
MatchDMIModalias=dmi:*:ct32:*
|
|
ModelTabletModeNoSuspend=1
|
|
|
|
# Tablet devices usually have the tablet part buttons wired as ps2 keyboard,
|
|
# despite being tablets some of them, e.g. Microsoft Surface Laptop Studio,
|
|
# expose tablet-mode switch, so don't disable the ps2 keyboard.
|
|
# Tablets that don't expose tablet-mode switch won't have any diference.
|
|
# DMI Chassis Type 1Eh (30 decimal) is Tablet as per SMBIOS specification.
|
|
[Tablet Device Buttons]
|
|
MatchBus=ps2
|
|
MatchUdevType=keyboard
|
|
MatchDMIModalias=dmi:*:ct30:*
|
|
ModelTabletModeNoSuspend=1
|