Add quirk for the Huawai Matebook 2020 (#1972370)

This commit is contained in:
Peter Hutterer 2021-06-21 08:55:06 +10:00
parent 43e178c21d
commit 3bb4699393
2 changed files with 38 additions and 1 deletions

View File

@ -0,0 +1,32 @@
From 17783c24df991e6283c693050d6b0304b7307d3e Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
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 <peter.hutterer@who-t.net>
---
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

View File

@ -5,7 +5,7 @@
Name: libinput Name: libinput
Version: 1.18.0 Version: 1.18.0
Release: 1%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} Release: 2%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
Summary: Input device library Summary: Input device library
License: MIT License: MIT
@ -18,6 +18,8 @@ Source2: commitid
Source0: http://www.freedesktop.org/software/libinput/libinput-%{version}.tar.xz Source0: http://www.freedesktop.org/software/libinput/libinput-%{version}.tar.xz
%endif %endif
Patch001: 0001-quirks-add-a-quirk-for-the-Huawei-Matebook-2020-touc.patch
BuildRequires: git-core BuildRequires: git-core
BuildRequires: gcc BuildRequires: gcc
BuildRequires: meson BuildRequires: meson
@ -146,6 +148,9 @@ pathfix.py -i %{__python3} -p -n $(git grep -l '#!/usr/bin/.*python3')
%{_mandir}/man1/libinput-test-suite.1* %{_mandir}/man1/libinput-test-suite.1*
%changelog %changelog
* Mon Jun 21 2021 Peter Hutterer <peter.hutterer@redhat.com> 1.18.0-2
- Add quirk for the Huawai Matebook 2020 (#1972370)
* Wed Jun 02 2021 Peter Hutterer <peter.hutterer@redhat.com> 1.18.0-1 * Wed Jun 02 2021 Peter Hutterer <peter.hutterer@redhat.com> 1.18.0-1
- libinput 1.18.0 - libinput 1.18.0