diff options
author | Maximilian Luz <luzmaximilian@gmail.com> | 2022-07-05 01:33:04 +0200 |
---|---|---|
committer | José Expósito <jose.exposito89@gmail.com> | 2022-07-10 18:25:22 +0000 |
commit | 238a56eb7c0e803caa4d6bbea17df155a6467730 (patch) | |
tree | 3b29887bbc4b1d79493d1c93d607e577a9acfe22 | |
parent | ad95d68f479c835c76b42b342e46ee7115bed6eb (diff) | |
download | libinput-238a56eb7c0e803caa4d6bbea17df155a6467730.tar.gz |
quirks: Add quirks to improve tablet-mode on the Surface Laptop Studio
The Microsoft Surface Laptop Studio can operate in multiple postures. In
one of these, dubbed "slate/tent", the screen is angled roughly 45°,
covering the keyboard but not the touchpad. Unfortunately, this state is
(as far as we can tell) indiscernible to the display being flipped 180°
backwards (dubbed "slate/flipped"), where the keyboard points away from
the user and is now behind the screen.
Due to this, it makes sense to enable tablet-mode in this (general)
"slate" state, which is what the corresponding kernel driver currently
does. This, for example, can tell desktop environments to bring up a
touch keyboard in certain situations and to allow for automatic screen
rotation (which is required in the "flipped" mode).
Unfortunately, libinput disables all integrated peripherals, including
the touchpad, when tablet-mode is on, rendering the touchpad unusable in
the "slate/tent" state. Therefore, set ModelTabletModeNoSuspend=1 to
keep the touchpad functional. For simplicity, apply this quirk to all
input devices on the Surface Laptop Studio. Those are already disabled
by firmware in the respective postures, meaning things work well without
suspension by libinput.
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
-rw-r--r-- | quirks/30-vendor-microsoft.quirks | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/quirks/30-vendor-microsoft.quirks b/quirks/30-vendor-microsoft.quirks index b5fb9146..36efebb1 100644 --- a/quirks/30-vendor-microsoft.quirks +++ b/quirks/30-vendor-microsoft.quirks @@ -27,6 +27,11 @@ MatchUdevType=touchpad AttrPressureRange=25:10 AttrPalmPressureThreshold=500 +[Microsoft Surface Laptop Studio Built-In Peripherals] +MatchName=*Microsoft Surface* +MatchDMIModalias=dmi:*svnMicrosoftCorporation:*pnSurfaceLaptopStudio +ModelTabletModeNoSuspend=1 + [Microsoft Nano Transceiver v2.0] MatchUdevType=mouse MatchBus=usb |