Match all Surface (Pro/Laptop/Book) devices.
authorBlaž Hrastnik <blaz@mxxn.io>
Tue, 15 Dec 2020 03:39:23 +0000 (12:39 +0900)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 17 Dec 2020 04:24:28 +0000 (14:24 +1000)
Signed-off-by: Blaž Hrastnik <blaz@mxxn.io>
(cherry picked from commit aec8e0b4ef00f46e964a0053b98638fa72701543)

quirks/30-vendor-microsoft.quirks

index 36eb9927147c53d48a42e86e19220bdddfd93294..00f755e199be36a76b5851fc6bd0d41d804ea305 100644 (file)
@@ -5,9 +5,14 @@ MatchName=*Lid Switch*
 MatchDMIModalias=dmi:*svnMicrosoftCorporation:pnSurface3:*
 AttrLidSwitchReliability=write_open
 
-[Microsoft Surface 3 Type Cover Keyboard]
-MatchName=*Microsoft Surface Type Cover Keyboard*
-MatchDMIModalias=dmi:*svnMicrosoftCorporation:pnSurface3:*
+# Matches both Surface Laptop keyboards as well as type covers.
+# i.e.
+# - Surface 3: Microsoft Surface 3 Type Cover Keyboard
+# - Surface Laptop 3: Microsoft Surface 045E:09AE Keyboard
+# - Surface Book 2: Microsoft Surface Keyboard
+[Microsoft Surface Keyboard]
+MatchName=*Microsoft Surface *Keyboard*
+MatchDMIModalias=dmi:*svnMicrosoftCorporation:*
 AttrKeyboardIntegration=internal
 
 [Microsoft Nano Transceiver v2.0]