Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
libinput (1.28.1-1+deb13u1deepin2) unstable; urgency=medium

* Add a DMI-scoped ModelPressurePad quirk for the Lenovo ThinkBook
14/16 G8+ IPH touchpad.
* Use ModelPressurePad instead of AttrInputProp=+INPUT_PROP_PRESSUREPAD:
the latter is unknown to libevdev < 1.13.6 and made libinput discard
the whole quirks database, breaking touchpads on other models.
* Match the exact DMI modalias instead of the shared Goodix USB IDs
27C6:01E7/27C6:01E8.
* Ref: https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1442

-- lichenggang <lichenggang@uniontech.com> Mon, 16 Nov 2026 19:00:18 +0800

libinput (1.28.1-1+deb13u1deepin1) unstable; urgency=medium

* Rebuild with LTO enabled (dpkg vendor feature optimize/lto).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
From: lichenggang <lichenggang@uniontech.com>
Date: Mon, 16 Nov 2026 10:30:00 +0800
Subject: quirks: add ModelPressurePad quirk for Lenovo ThinkBook 14/16 G8+ IPH

The Goodix GXTP5100 touchpads on the Lenovo ThinkBook 14 G8+ IPH and
ThinkBook 16 G8+ IPH report pressure as contact size. Without a pressure
pad quirk libinput can only click but cannot move the pointer.

Add a ModelPressurePad quirk for these two exact models.

The previously reverted patch (PR #8) added
AttrInputProp=+INPUT_PROP_PRESSUREPAD. That property name is not known to
libevdev < 1.13.6, so parse_input_prop_property() fails and the failure
propagates up through parse_file()/parse_files(): libinput then gives up
on the *entire* quirks database ("Failed to load the device quirks ...
This will negatively affect device behavior"). Every model that relies
on a quirk - e.g. the HONOR MagicBook Art 14 or the ThinkBook 14+ G6/G7
pressure pads - loses its quirk, which is why touchpads stopped working
on some machines.

This version uses ModelPressurePad=1, which is supported by libinput
1.28.1 and does not rely on libevdev knowing the property name. The
match is also scoped to the exact DMI modalias and the GXTP5100 device
name instead of the shared Goodix USB IDs (27C6:01E7/27C6:01E8), so
other Lenovo models cannot be affected.

Ref: https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1442
Forwarded: https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1442
Signed-off-by: lichenggang <lichenggang@uniontech.com>
---
quirks/50-system-lenovo.quirks | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)

diff --git a/quirks/50-system-lenovo.quirks b/quirks/50-system-lenovo.quirks
index 73b4167..4954881 100644
--- a/quirks/50-system-lenovo.quirks
+++ b/quirks/50-system-lenovo.quirks
@@ -417,3 +417,23 @@ MatchName=*GXTP5100*
MatchDMIModalias=dmi:*svnLENOVO:*pvrThinkBook14G7+IAH*:*
MatchUdevType=touchpad
ModelPressurePad=1
+
+# The Goodix GXTP5100 touchpads on the ThinkBook 14/16 G8+ IPH report
+# pressure as contact size, so libinput can only click but cannot move
+# the pointer. Mark these exact models as pressure pads.
+#
+# Match on the DMI modalias and the device name instead of the Goodix
+# USB IDs (27C6:01E7/27C6:01E8): those IDs are shared with touchpads on
+# other Lenovo models that are not pressure pads and must not get this
+# quirk.
+[Lenovo ThinkBook 14 G8+ IPH touchpad]
+MatchName=*GXTP5100*
+MatchDMIModalias=dmi:*svnLENOVO:*pvrThinkBook14G8+IPH*:*
+MatchUdevType=touchpad
+ModelPressurePad=1
+
+[Lenovo ThinkBook 16 G8+ IPH touchpad]
+MatchName=*GXTP5100*
+MatchDMIModalias=dmi:*svnLENOVO:*pvrThinkBook16G8+IPH*:*
+MatchUdevType=touchpad
+ModelPressurePad=1
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ tools-remove-references-to-libinput_quir.patch
util-don-t-call-function-in-macro-argument.patch
util-sanitize-control-characters-in-str_sanitize.patch
libinput-device-group-sanitize-phys-before-printing-.patch
quirks-add-pressure-pad-quirk-for-Lenovo-ThinkBook-G8-IPH.patch
Loading