diff --git a/0001-quirks-add-quirk-support-for-Goodix-touchpad.patch b/0001-quirks-add-quirk-support-for-Goodix-touchpad.patch new file mode 100644 index 0000000..168db0e --- /dev/null +++ b/0001-quirks-add-quirk-support-for-Goodix-touchpad.patch @@ -0,0 +1,44 @@ +From 76e304764de1f9268efd792543544528904017c7 Mon Sep 17 00:00:00 2001 +From: Richie Roy Jayme +Date: Fri, 6 Feb 2026 21:01:00 +0900 +Subject: [PATCH] quirks: add quirk support for Goodix touchpad + +This commit adds a specific vendor HWID for Goodix Haptic Touchpad to +improve detection and handling. + +Signed-off-by: Richie Roy Jayme +Signed-off-by: Richie Roy Jayme +Reviewed-by: Vishnu Sankar +Reviewed-by: Vishnu Sankar +Reported-by: Ameer Ivan Julkarnain +Part-of: +(cherry picked from commit df8f5a3627e7bb2bf90ec5f2205713eacd642105) + +whot: Upstream has this in quirks/30-vendor-goodix.quirks now, easier to +backport to lenovo here. + +Signed-off-by: Peter Hutterer +--- + quirks/50-system-lenovo.quirks | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/quirks/50-system-lenovo.quirks b/quirks/50-system-lenovo.quirks +index 8d31f61099ee..1953cf4e0b6b 100644 +--- a/quirks/50-system-lenovo.quirks ++++ b/quirks/50-system-lenovo.quirks +@@ -423,3 +423,12 @@ MatchName=*GXTP5100* + MatchDMIModalias=dmi:*svnLENOVO:*pvrThinkBook*G7+IAH*:* + MatchUdevType=touchpad + ModelPressurePad=1 ++ ++# "GXTP5420 Touchpad": pressure touchpad mostly used in Lenovo laptops. ++# GXTP5420:00 27C6:0F95 Touchpad ++[Goodix Haptic Touchpad (27C6:0F95)] ++MatchBus=i2c ++MatchVendor=0x27C6 ++MatchProduct=0x0F95 ++MatchUdevType=touchpad ++ModelPressurePad=1 +-- +2.52.0 + diff --git a/libinput.spec b/libinput.spec index 856e23e..c2f4def 100644 --- a/libinput.spec +++ b/libinput.spec @@ -5,7 +5,7 @@ Name: libinput Version: 1.30.1 -Release: 1%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Release: 2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} Summary: Input device library # SPDX @@ -19,6 +19,8 @@ Source2: commitid Source0: https://gitlab.freedesktop.org/libinput/libinput/-/archive/%{version}/libinput-%{version}.tar.bz2 %endif +Patch0001: 0001-quirks-add-quirk-support-for-Goodix-touchpad.patch + BuildRequires: git-core BuildRequires: gcc BuildRequires: meson @@ -161,6 +163,9 @@ intended to be run by users. %changelog +* Thu Feb 12 2026 Peter Hutterer - 1.30.1-2 +- Add a quirk for a Goodix touchpad in current lenovos (#2437977) + * Mon Dec 08 2025 Peter Hutterer - 1.30.1-1 - libinput 1.30.1