From 3bb4699393c027e7d93d1e4d4dc0e047a3ae9222 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 21 Jun 2021 08:55:06 +1000 Subject: [PATCH] Add quirk for the Huawai Matebook 2020 (#1972370) --- ...rk-for-the-Huawei-Matebook-2020-touc.patch | 32 +++++++++++++++++++ libinput.spec | 7 +++- 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 0001-quirks-add-a-quirk-for-the-Huawei-Matebook-2020-touc.patch diff --git a/0001-quirks-add-a-quirk-for-the-Huawei-Matebook-2020-touc.patch b/0001-quirks-add-a-quirk-for-the-Huawei-Matebook-2020-touc.patch new file mode 100644 index 0000000..789550e --- /dev/null +++ b/0001-quirks-add-a-quirk-for-the-Huawei-Matebook-2020-touc.patch @@ -0,0 +1,32 @@ +From 17783c24df991e6283c693050d6b0304b7307d3e Mon Sep 17 00:00:00 2001 +From: Peter Hutterer +Date: Mon, 21 Jun 2021 08:51:04 +1000 +Subject: [PATCH libinput] quirks: add a quirk for the Huawei Matebook 2020 + touchpad + +Clickpad that announces BTN_RIGHT + +https://bugzilla.redhat.com/show_bug.cgi?id=1972370 + +Signed-off-by: Peter Hutterer +--- + quirks/50-system-huawei.quirks | 7 +++++++ + 1 file changed, 7 insertions(+) + create mode 100644 quirks/50-system-huawei.quirks + +diff --git a/quirks/50-system-huawei.quirks b/quirks/50-system-huawei.quirks +new file mode 100644 +index 00000000..43ccb075 +--- /dev/null ++++ b/quirks/50-system-huawei.quirks +@@ -0,0 +1,7 @@ ++# Clickpad that announces BTN_RIGHT ++# https://bugzilla.redhat.com/show_bug.cgi?id=1972370 ++[Huawei MateBook 2020 Touchpad] ++MatchName=ELAN2604:00 04F3:3114 Touchpad ++MatchUdevType=touchpad ++MatchDMIModalias=dmi:*svnHUAWEI:*pvrM1010* ++AttrEventCodeDisable=BTN_RIGHT +-- +2.31.1 + diff --git a/libinput.spec b/libinput.spec index 11b11f1..1048b9e 100644 --- a/libinput.spec +++ b/libinput.spec @@ -5,7 +5,7 @@ Name: libinput Version: 1.18.0 -Release: 1%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Release: 2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} Summary: Input device library License: MIT @@ -18,6 +18,8 @@ Source2: commitid Source0: http://www.freedesktop.org/software/libinput/libinput-%{version}.tar.xz %endif +Patch001: 0001-quirks-add-a-quirk-for-the-Huawei-Matebook-2020-touc.patch + BuildRequires: git-core BuildRequires: gcc BuildRequires: meson @@ -146,6 +148,9 @@ pathfix.py -i %{__python3} -p -n $(git grep -l '#!/usr/bin/.*python3') %{_mandir}/man1/libinput-test-suite.1* %changelog +* Mon Jun 21 2021 Peter Hutterer 1.18.0-2 +- Add quirk for the Huawai Matebook 2020 (#1972370) + * Wed Jun 02 2021 Peter Hutterer 1.18.0-1 - libinput 1.18.0