diff --git a/0001-quirks-add-quirks-for-Dell-Precision5680-Touchpad.patch b/0001-quirks-add-quirks-for-Dell-Precision5680-Touchpad.patch new file mode 100644 index 0000000..244a6e1 --- /dev/null +++ b/0001-quirks-add-quirks-for-Dell-Precision5680-Touchpad.patch @@ -0,0 +1,39 @@ +From 5414d1395dec138d3daa39db886cc40bc3eae736 Mon Sep 17 00:00:00 2001 +From: Charles Wang +Date: Wed, 11 Jan 2023 17:16:13 +0800 +Subject: [PATCH] quirks: add quirks for Dell Precision5680 Touchpad + +This touchpad is a pressure pad and needs the pressure +handling disable. + +Fixes https://gitlab.freedesktop.org/libinput/libinput/-/issues/849 + +Signed-off-by: Charles Wang + +Cherry-pick adjusted to work with the AttrEventCodeDisable quirk +(cherry picked from commit 29a49e968e67eb7bf6d63c9f93b06ee983772018) +(cherry picked from commit 6420178b5fdb5f9c5f353556703ae151891297fd) +Signed-off-by: Peter Hutterer +--- + quirks/50-system-dell.quirks | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/quirks/50-system-dell.quirks b/quirks/50-system-dell.quirks +index 9bc3e357..cbd1fbcb 100644 +--- a/quirks/50-system-dell.quirks ++++ b/quirks/50-system-dell.quirks +@@ -108,3 +108,11 @@ MatchBus=usb + MatchVendor=0x2575 + MatchProduct=0x0204 + ModelDellCanvasTotem=1 ++ ++# This is a true pressurepad so disable pressure for contact size ++# https://gitlab.freedesktop.org/libinput/libinput/-/issues/849 ++[Dell Precision5680 Touchpad] ++MatchBus=i2c ++MatchVendor=0x27C6 ++MatchProduct=0x0F60 ++AttrEventCodeDisable=ABS_MT_PRESSURE;ABS_PRESSURE; +-- +2.39.0 + diff --git a/libinput.spec b/libinput.spec index db1a769..ef828c2 100644 --- a/libinput.spec +++ b/libinput.spec @@ -5,7 +5,7 @@ Name: libinput Version: 1.19.3 -Release: 2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Release: 3%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} Summary: Input device library License: MIT @@ -19,6 +19,7 @@ Source0: http://www.freedesktop.org/software/libinput/libinput-%{version} %endif Patch0001: 0001-evdev-strip-the-device-name-of-format-directives.patch +Patch0002: 0001-quirks-add-quirks-for-Dell-Precision5680-Touchpad.patch BuildRequires: git-core BuildRequires: gcc @@ -148,6 +149,9 @@ pathfix.py -i %{__python3} -p -n $(git grep -l '#!/usr/bin/.*python3') %{_mandir}/man1/libinput-test-suite.1* %changelog +* Thu Jan 19 2023 Peter Hutterer - 1.19.3-3 +- Add a quirk for the Dell Precision 5680 pressurepad (#2158075) + * Wed May 04 2022 Peter Hutterer - 1.19.3-2 - CVE-2022-1215: fix a format string vulnerability (#2076816)