libinput/SOURCES/0001-Asus-VivoBook-Flip-14-TP412UA-tablet-mode-switch-mis.patch
2021-09-09 20:23:05 +00:00

34 lines
1.1 KiB
Diff

From 988d5b63287e5606f0c851ab3308e755bfac7d67 Mon Sep 17 00:00:00 2001
From: Thomas Sailer <t.sailer@alumni.ethz.ch>
Date: Thu, 3 Jan 2019 00:19:32 +0100
Subject: [PATCH libinput] Asus VivoBook Flip 14 TP412UA tablet mode switch
misbehaving
---
quirks/50-system-asus.quirks | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/quirks/50-system-asus.quirks b/quirks/50-system-asus.quirks
index 5299e1b8f..86d3dbd33 100644
--- a/quirks/50-system-asus.quirks
+++ b/quirks/50-system-asus.quirks
@@ -17,3 +17,15 @@ AttrPressureRange=24:10
MatchName=*ETPS/2 Elantech Touchpad*
MatchDMIModalias=dmi:*svnASUSTeKCOMPUTERINC.:pnUX302LA:*
AttrEventCodeDisable=ABS_MT_PRESSURE;ABS_PRESSURE;
+
+# Asus VivoBook Flip 14 TP412UA tablet switch seems misbehaving, always
+# indicating tablet position
+[Asus TP412UA Keyboard]
+MatchName=AT Translated Set 2 keyboard
+MatchDMIModalias=dmi:*svnASUSTeKCOMPUTERINC.:pnVivoBookFlip14_ASUSFlipTP412UA:*
+ModelTabletModeNoSuspend=1
+
+[Asus TP412UA Touchpad]
+MatchName=*ELAN*Touchpad*
+MatchDMIModalias=dmi:*svnASUSTeKCOMPUTERINC.:pnVivoBookFlip14_ASUSFlipTP412UA:*
+ModelTabletModeNoSuspend=1
--
2.19.2