Skip to content

Commit

Permalink
Add support for more devices
Browse files Browse the repository at this point in the history
Add support for
- Surface Pro 8
- Surface Pro 9
- Surface Laptop Studio

Additionally, re-arrange the patches in order of device names.
  • Loading branch information
qzed committed Jun 14, 2023
1 parent 2b05be5 commit df6201a
Show file tree
Hide file tree
Showing 33 changed files with 318 additions and 102 deletions.
4 changes: 2 additions & 2 deletions patches/v1/0001-Add-support-for-BUS_VIRTUAL.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 3f437a3a53b2159bb385335be0598f8859ff385f Mon Sep 17 00:00:00 2001
From: Dorian Stoll <[email protected]>
Date: Sat, 27 Jun 2020 18:21:11 +0200
Subject: [PATCH 01/13] Add support for BUS_VIRTUAL
Subject: [PATCH 01/16] Add support for BUS_VIRTUAL

This is needed to support IPTS devices through the iptsd userspace
daemon. It exposes the touchscreen / stylus as uinput, since the parsing
Expand Down Expand Up @@ -102,5 +102,5 @@ index 3953b1e..734463f 100755
assert re.match('[0-9a-f]{4}', pid), f'{tabletfile}: {pid} must be lowercase hex'

--
2.40.1
2.41.0

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 52157eec5eb3c6f172531f741d2897b0401ac6c2 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Sat, 1 Jun 2019 21:17:15 +0200
Subject: [PATCH 02/13] Add support for Intel Management Engine bus
Subject: [PATCH 02/16] Add support for Intel Management Engine bus

Add support for devices connected via the Intel Management Engine (MEI).
This is required to support IPTS based devices, such as (among others)
Expand Down Expand Up @@ -97,5 +97,5 @@ index 734463f..c9c6312 100755
assert re.match('[0-9a-f]{4}', pid), f'{tabletfile}: {pid} must be lowercase hex'

--
2.40.1
2.41.0

4 changes: 2 additions & 2 deletions patches/v1/0003-data-Add-Microsoft-Surface-Pro-3.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 75db7ee0734d19b8d68ee1d2b8e85706e743cfc8 Mon Sep 17 00:00:00 2001
From: "Antony Jordan (Tablet)" <[email protected]>
Date: Wed, 8 Jun 2022 22:03:33 +0200
Subject: [PATCH 03/13] data: Add Microsoft Surface Pro 3
Subject: [PATCH 03/16] data: Add Microsoft Surface Pro 3

---
data/surface-pro3.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..3238d43
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

4 changes: 2 additions & 2 deletions patches/v1/0004-data-Add-Microsoft-Surface-Pro-4.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From c8700d17bda8620d372e07c9789eba84984c6db1 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:18:55 +0200
Subject: [PATCH 04/13] data: Add Microsoft Surface Pro 4
Subject: [PATCH 04/16] data: Add Microsoft Surface Pro 4

---
data/surface-pro4.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..1e0c67c
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

4 changes: 2 additions & 2 deletions patches/v1/0005-data-Add-Microsoft-Surface-Pro-5.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 0531299aabb786c049e7046578f317f2e8999d26 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:19:02 +0200
Subject: [PATCH 05/13] data: Add Microsoft Surface Pro 5
Subject: [PATCH 05/16] data: Add Microsoft Surface Pro 5

---
data/surface-pro5.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..b26af3a
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

4 changes: 2 additions & 2 deletions patches/v1/0006-data-Add-Microsoft-Surface-Pro-6.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 2c4b1f3e0c2f7b8c06c439cbc01438ef92ba13b7 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:19:07 +0200
Subject: [PATCH 06/13] data: Add Microsoft Surface Pro 6
Subject: [PATCH 06/16] data: Add Microsoft Surface Pro 6

---
data/surface-pro6.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..e97fad8
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

4 changes: 2 additions & 2 deletions patches/v1/0007-data-Add-Microsoft-Surface-Pro-7.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From fb983a5b9bd17510c370d0b8d242dd48cd6b77f0 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:19:13 +0200
Subject: [PATCH 07/13] data: Add Microsoft Surface Pro 7
Subject: [PATCH 07/16] data: Add Microsoft Surface Pro 7

---
data/surface-pro7.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..7961379
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From c748e1e7d0b37d6513717446b63eabbc3871bc0d Mon Sep 17 00:00:00 2001
From 0756e4c76b4b3fbe81b51129893eb5a240be6a15 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Fri, 26 May 2023 12:32:21 +0200
Subject: [PATCH 13/13] data: Add Microsoft Surface Pro 7+
Subject: [PATCH 08/16] data: Add Microsoft Surface Pro 7+

Based on https://github.com/linux-surface/libwacom-surface/issues/12
---
Expand Down Expand Up @@ -30,5 +30,5 @@ index 0000000..36e1e3f
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

34 changes: 34 additions & 0 deletions patches/v1/0009-data-Add-Microsoft-Surface-Pro-8.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From cfee67252f87151fe41437f46719eabc20c1236b Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Sun, 11 Jun 2023 21:29:52 +0200
Subject: [PATCH 09/16] data: Add Microsoft Surface Pro 8

Based on https://github.com/linux-surface/libwacom-surface/issues/13
---
data/surface-pro8.tablet | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 data/surface-pro8.tablet

diff --git a/data/surface-pro8.tablet b/data/surface-pro8.tablet
new file mode 100644
index 0000000..fe779af
--- /dev/null
+++ b/data/surface-pro8.tablet
@@ -0,0 +1,14 @@
+# This is for the Microsoft Surface Pro 8
+
+[Device]
+Name=Microsoft Surface Pro 8
+Class=PenDisplay
+DeviceMatch=virt:045e:0c37
+Width=10
+Height=6
+IntegratedIn=Display;System;
+
+[Features]
+Stylus=false
+Touch=true
+Buttons=0
--
2.41.0

34 changes: 34 additions & 0 deletions patches/v1/0010-data-Add-Microsoft-Surface-Pro-9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From fe48b903f11ba7ef0f638eb9dea22dfdd8302831 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Wed, 14 Jun 2023 21:11:36 +0200
Subject: [PATCH 10/16] data: Add Microsoft Surface Pro 9

IDs taken from https://github.com/quo/ithc-linux/issues/5
---
data/surface-pro9.tablet | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 data/surface-pro9.tablet

diff --git a/data/surface-pro9.tablet b/data/surface-pro9.tablet
new file mode 100644
index 0000000..e5ccf68
--- /dev/null
+++ b/data/surface-pro9.tablet
@@ -0,0 +1,14 @@
+# This is for the Microsoft Surface Pro 9
+
+[Device]
+Name=Microsoft Surface Pro 9
+Class=PenDisplay
+DeviceMatch=virt:045e:0c52
+Width=10
+Height=6
+IntegratedIn=Display;System;
+
+[Features]
+Stylus=false
+Touch=true
+Buttons=0
--
2.41.0

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From ec23f66a61c3eab3d60d9135550f7ac67d40916f Mon Sep 17 00:00:00 2001
From aff87d44fd1e8ec3d473d46905053c70fb515c75 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:19:38 +0200
Subject: [PATCH 08/13] data: Add Microsoft Surface Book
Subject: [PATCH 11/16] data: Add Microsoft Surface Book

---
data/surface-book.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..e2a5401
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 0006283ddcbf9641561573a862e32836cfa096db Mon Sep 17 00:00:00 2001
From e2070d95b352324039d7c7a2b2c66b5441ae30a6 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:20:04 +0200
Subject: [PATCH 09/13] data: Add Microsoft Surface Book 2 (13.5")
Subject: [PATCH 12/16] data: Add Microsoft Surface Book 2 (13.5")

---
data/surface-book2-13.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..b13cb07
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From ff81b9f652459ccef960516c2381bfc3cbe1d519 Mon Sep 17 00:00:00 2001
From 780ccc057926e6819549bbbf7e3b4083dba4e23a Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:20:13 +0200
Subject: [PATCH 10/13] data: Add Microsoft Surface Book 2 (15")
Subject: [PATCH 13/16] data: Add Microsoft Surface Book 2 (15")

---
data/surface-book2-15.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..ad98cc7
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 315ed87e3e8ed8b288c43655c237887cea668562 Mon Sep 17 00:00:00 2001
From 349fe069bc28bab2f5dbf508edd2566bc2e58cea Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:20:29 +0200
Subject: [PATCH 11/13] data: Add Microsoft Surface Book 3 (13.5")
Subject: [PATCH 14/16] data: Add Microsoft Surface Book 3 (13.5")

---
data/surface-book3-13.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..a33c9cb
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 9a339c382ec155c37181c149739750ac144f0c4a Mon Sep 17 00:00:00 2001
From e1cf877bd69077c597a75edec2cb859f08e81f98 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:20:42 +0200
Subject: [PATCH 12/13] data: Add Microsoft Surface Book 3 (15")
Subject: [PATCH 15/16] data: Add Microsoft Surface Book 3 (15")

---
data/surface-book3-15.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..291321f
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

34 changes: 34 additions & 0 deletions patches/v1/0016-data-Add-Microsoft-Surface-Laptop-Studio.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 71043b01f59f7af8c1c8b74aaf14a4de8764ae4d Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Wed, 14 Jun 2023 21:12:41 +0200
Subject: [PATCH 16/16] data: Add Microsoft Surface Laptop Studio

IDs taken from https://github.com/quo/ithc-linux/issues/5
---
data/surface-laptop-studio.tablet | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 data/surface-laptop-studio.tablet

diff --git a/data/surface-laptop-studio.tablet b/data/surface-laptop-studio.tablet
new file mode 100644
index 0000000..6739b2c
--- /dev/null
+++ b/data/surface-laptop-studio.tablet
@@ -0,0 +1,14 @@
+# This is for the Microsoft Surface Laptop Studio
+
+[Device]
+Name=Microsoft Surface Laptop Studio
+Class=PenDisplay
+DeviceMatch=virt:045e:0c1b
+Width=10
+Height=6
+IntegratedIn=Display;System;
+
+[Features]
+Stylus=false
+Touch=true
+Buttons=0
--
2.41.0

4 changes: 2 additions & 2 deletions patches/v2/0001-Add-support-for-BUS_VIRTUAL.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 6fe89a80a28042bc57fd625ad82181e4092b95f2 Mon Sep 17 00:00:00 2001
From: Dorian Stoll <[email protected]>
Date: Sat, 27 Jun 2020 18:21:11 +0200
Subject: [PATCH 01/13] Add support for BUS_VIRTUAL
Subject: [PATCH 01/16] Add support for BUS_VIRTUAL

This is needed to support IPTS devices through the iptsd userspace
daemon. It exposes the touchscreen / stylus as uinput, since the parsing
Expand Down Expand Up @@ -101,5 +101,5 @@ index c2db899..476aeca 100755
assert re.match(
"[0-9a-f]{4}", vid
--
2.40.1
2.41.0

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 10ef0701cdde200063a73b3db5bfb305a12909c2 Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Sat, 1 Jun 2019 21:17:15 +0200
Subject: [PATCH 02/13] Add support for Intel Management Engine bus
Subject: [PATCH 02/16] Add support for Intel Management Engine bus

Add support for devices connected via the Intel Management Engine (MEI).
This is required to support IPTS based devices, such as (among others)
Expand Down Expand Up @@ -96,5 +96,5 @@ index 476aeca..cc739dd 100755
assert re.match(
"[0-9a-f]{4}", vid
--
2.40.1
2.41.0

4 changes: 2 additions & 2 deletions patches/v2/0003-data-Add-Microsoft-Surface-Pro-3.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 77664bc3c0be343b8e6acddb5bcb18bfb591da24 Mon Sep 17 00:00:00 2001
From: "Antony Jordan (Tablet)" <[email protected]>
Date: Wed, 8 Jun 2022 22:03:33 +0200
Subject: [PATCH 03/13] data: Add Microsoft Surface Pro 3
Subject: [PATCH 03/16] data: Add Microsoft Surface Pro 3

---
data/surface-pro3.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..3238d43
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

4 changes: 2 additions & 2 deletions patches/v2/0004-data-Add-Microsoft-Surface-Pro-4.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From fa3a6c733c16529098f5a5066eb8fd3051177d8f Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:18:55 +0200
Subject: [PATCH 04/13] data: Add Microsoft Surface Pro 4
Subject: [PATCH 04/16] data: Add Microsoft Surface Pro 4

---
data/surface-pro4.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..1e0c67c
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

4 changes: 2 additions & 2 deletions patches/v2/0005-data-Add-Microsoft-Surface-Pro-5.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From c1e48260b343e6616f1106ff4769ad11e9a0948b Mon Sep 17 00:00:00 2001
From: Maximilian Luz <[email protected]>
Date: Tue, 18 Aug 2020 20:19:02 +0200
Subject: [PATCH 05/13] data: Add Microsoft Surface Pro 5
Subject: [PATCH 05/16] data: Add Microsoft Surface Pro 5

---
data/surface-pro5.tablet | 14 ++++++++++++++
Expand Down Expand Up @@ -29,5 +29,5 @@ index 0000000..b26af3a
+Touch=true
+Buttons=0
--
2.40.1
2.41.0

Loading

0 comments on commit df6201a

Please sign in to comment.