From 351db57a96bb97f2ada1d1e7c6cc61bd328e7346 Mon Sep 17 00:00:00 2001 From: lichenggang Date: Mon, 16 Nov 2026 22:09:32 +0800 Subject: [PATCH] feat: backport upstream touchpad support for haptic/pressure pads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport the upstream INPUT_PROP_PRESSUREPAD support and the touchpad quirk entries added between 1.28.1 and 1.32.0. Upstream replaced the ModelPressurePad quirk with AttrInputProp=+INPUT_PROP_PRESSUREPAD and, while doing so, had to fix two things that this version also needs: a) the vendored linux headers do not define INPUT_PROP_PRESSUREPAD (0x07), added upstream in 7621edab; b) libevdev < 1.13.6 does not know the name "INPUT_PROP_PRESSUREPAD", so parse_input_prop_property() fails and libinput discards the whole quirks database. Upstream added a name fallback in db6a0466, and made tp_init_pressurepad() honour the property as well. Point b is the root cause of the touchpad regression that forced the reverted debian patch (PR #8). Keeping ModelPressurePad alongside it means the existing ThinkBook G6+/G7+ and HONOR quirks keep working. On top of that, 37 touchpad quirk sections from upstream are imported verbatim: Goodix 27C6:01E7/01E8/01E9/01EA/01EB/0F90/0F95/0F96, Elan 04F3:3355, Pixart 093A:4811/0255/0274/1336/200F, Synaptics 06CB:D024, Dell 0488:108C/108D and 2C2F:0033/0034 and 06CB:D01A/D01D, plus Hantick, Clevetura, Microsoft Surface Pro 10, Google Chromebook Roric/Rull, Samsung Galaxy Book 4 360, Positivo, Wareus B15, Getac X600, GPD MicroPC 2, Acer Nitro ANV16-42, EAECIS NL60R, HP OmniBook Ultra Flip and Lenovo ThinkPad P14s Gen 6. Entries that depend on quirks unknown to 1.28.1 are left out on purpose (AttrTouchpadHysteresis, ModelCircularTouchpad, ModelScrollOnMiddleClick, AttrIsVirtual); including them would make the parser reject the file and lose the whole database again. All 304 existing quirk sections are kept unchanged. Log: Imported upstream INPUT_PROP_PRESSUREPAD support and 37 touchpad quirk entries Influence: 1. Verify a quirk using AttrInputProp=+INPUT_PROP_PRESSUREPAD no longer breaks the quirks database 2. Verify haptic touchpads (Goodix/Elan/Pixart/Synaptics/Dell) move the cursor 3. Verify existing ThinkBook G6+/G7+, HONOR MagicBook Art 14 quirks still apply 4. Verify devices relying on ModelPressurePad behave as before 5. Run libinput quirks validate and the quirks test suite feat: 回合上游触摸板支持(压力板/触感触摸板) 回合上游 1.28.1 到 1.32.0 之间新增的 INPUT_PROP_PRESSUREPAD 支持及其 触摸板 quirk 条目。 上游用 AttrInputProp=+INPUT_PROP_PRESSUREPAD 取代了 ModelPressurePad, 并为此修了两个问题,本版本同样需要: a) 自带的内核头文件缺少 INPUT_PROP_PRESSUREPAD(0x07) 定义,上游在 7621edab 中补上; b) libevdev < 1.13.6 不认识 "INPUT_PROP_PRESSUREPAD" 这个名字, parse_input_prop_property() 会失败,导致 libinput 丢弃整个 quirks 数据库。上游在 db6a0466 中加了名称兜底,同时让 tp_init_pressurepad() 也认这个属性。 b) 正是导致触摸板失效、进而回退补丁(PR #8)的根因。保留 ModelPressurePad 是为了让已有的 ThinkBook G6+/G7+、HONOR 等 quirk 继续 生效。 此外逐字引入上游 37 个触摸板 quirk 条目:Goodix 27C6:01E7/01E8/01E9/01EA/01EB/0F90/0F95/0F96、Elan 04F3:3355、 Pixart 093A:4811/0255/0274/1336/200F、Synaptics 06CB:D024、Dell 0488:108C/108D 与 2C2F:0033/0034、06CB:D01A/D01D,以及 Hantick、 Clevetura、Microsoft Surface Pro 10、Google Chromebook Roric/Rull、 Samsung Galaxy Book 4 360、Positivo、Wareus B15、Getac X600、 GPD MicroPC 2、Acer Nitro ANV16-42、EAECIS NL60R、 HP OmniBook Ultra Flip、Lenovo ThinkPad P14s Gen 6。 依赖 1.28.1 不支持的新 quirk 的条目(AttrTouchpadHysteresis、 ModelCircularTouchpad、ModelScrollOnMiddleClick、AttrIsVirtual)刻意 不引入,否则解析失败会再次拖垮整个数据库。原有 304 个 quirk section 全部保持不变。 Log: 引入上游 INPUT_PROP_PRESSUREPAD 支持及 37 个触摸板 quirk 条目 Influence: 1. 验证 AttrInputProp=+INPUT_PROP_PRESSUREPAD 不再导致 quirks 库加载失败 2. 验证各触感触摸板(Goodix/Elan/Pixart/Synaptics/Dell)可移动光标 3. 验证已有 ThinkBook G6+/G7+、HONOR MagicBook Art 14 quirk 仍生效 4. 验证依赖 ModelPressurePad 的设备行为不变 5. 运行 libinput quirks validate 与 quirk 测试套件 repo: libinput #master --- debian/changelog | 22 + ...chpad-support-INPUT_PROP_PRESSUREPAD.patch | 102 ++++ ...quirks-add-upstream-touchpad-support.patch | 503 ++++++++++++++++++ debian/patches/series | 2 + 4 files changed, 629 insertions(+) create mode 100644 debian/patches/0001-touchpad-support-INPUT_PROP_PRESSUREPAD.patch create mode 100644 debian/patches/0002-quirks-add-upstream-touchpad-support.patch diff --git a/debian/changelog b/debian/changelog index 741431e..c94bc85 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,25 @@ +libinput (1.28.1-1+deb13u1deepin3) unstable; urgency=medium + + * Backport upstream INPUT_PROP_PRESSUREPAD support for haptic/pressure + touchpads + * Add the missing header definition, the libevdev < 1.13.6 name + fallback in the quirks parser and the pressurepad detection + * Import upstream touchpad quirk entries for newer Goodix, Elan, + Pixart, Synaptics, Dell and other models + + -- lichenggang Mon, 16 Nov 2026 22:08:49 +0800 + +libinput (1.28.1-1+deb13u1deepin2) unstable; urgency=medium + + * Backport upstream INPUT_PROP_PRESSUREPAD support for haptic/pressure + touchpads + * Add the missing header definition, the libevdev < 1.13.6 name + fallback in the quirks parser and the pressurepad detection + * Import upstream touchpad quirk entries for newer Goodix, Elan, + Pixart, Synaptics, Dell and other models + + -- lichenggang Mon, 16 Nov 2026 22:07:59 +0800 + libinput (1.28.1-1+deb13u1deepin1) unstable; urgency=medium * Rebuild with LTO enabled (dpkg vendor feature optimize/lto). diff --git a/debian/patches/0001-touchpad-support-INPUT_PROP_PRESSUREPAD.patch b/debian/patches/0001-touchpad-support-INPUT_PROP_PRESSUREPAD.patch new file mode 100644 index 0000000..57c7394 --- /dev/null +++ b/debian/patches/0001-touchpad-support-INPUT_PROP_PRESSUREPAD.patch @@ -0,0 +1,102 @@ +From: lichenggang +Date: Mon, 16 Nov 2026 20:10:00 +0800 +Subject: touchpad: support INPUT_PROP_PRESSUREPAD + +Backport the upstream support for the INPUT_PROP_PRESSUREPAD input +property, which is what upstream uses to mark a haptic touchpad (also +called pressure pad or forcepad) as such. + +Three pieces are needed and they come from upstream: + + a) The vendored linux headers do not define + INPUT_PROP_PRESSUREPAD (0x07). Upstream added it in + 7621edab ("include: sync headers with kernel 6.18"), so do the + same here or the new code below does not compile. + + b) parse_input_prop_property() resolves AttrInputProp entries by name + through libevdev_property_from_name(). libevdev < 1.13.6 does not + know "INPUT_PROP_PRESSUREPAD" and returns -1, which makes the + parser fail. Upstream added a name-specific fallback in db6a0466 + ("touchpad: use INPUT_PROP_PRESSUREPAD as signal it's a + pressurepad"); without it a quirk using this property makes + libinput discard the *entire* quirks database, which is the bug + behind the reverted debian patch (see PR #8). + + c) tp_init_pressurepad() only looked at the ABS_MT_PRESSURE resolution + and at ModelPressurePad. Upstream made it honour + INPUT_PROP_PRESSUREPAD as well in db6a0466, so a device marked by + the property actually gets the pressure axes disabled. + +Keeping QUIRK_MODEL_PRESSURE_PAD is deliberate: the ModelPressurePad +quirk stays valid for this version, and the existing quirks that use it +(e.g. Lenovo ThinkBook G6+/G7+, HONOR MagicBook Art 14) must keep +working. + +Forwarded: not-needed (backport of 7621edab + db6a0466) +Signed-off-by: lichenggang +--- + include/linux/freebsd/input-event-codes.h | 1 + + include/linux/linux/input-event-codes.h | 1 + + src/evdev-mt-touchpad.c | 3 ++- + src/util-prop-parsers.c | 10 ++++++++-- + 4 files changed, 12 insertions(+), 3 deletions(-) + +diff --git a/include/linux/freebsd/input-event-codes.h b/include/linux/freebsd/input-event-codes.h +index 0c2e27d..37f8e48 100644 +--- a/include/linux/freebsd/input-event-codes.h ++++ b/include/linux/freebsd/input-event-codes.h +@@ -27,6 +27,7 @@ + #define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */ + #define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */ + #define INPUT_PROP_ACCELEROMETER 0x06 /* has accelerometer */ ++#define INPUT_PROP_PRESSUREPAD 0x07 /* pressure triggers clicks */ + + #define INPUT_PROP_MAX 0x1f + #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) +diff --git a/include/linux/linux/input-event-codes.h b/include/linux/linux/input-event-codes.h +index 0c2e27d..37f8e48 100644 +--- a/include/linux/linux/input-event-codes.h ++++ b/include/linux/linux/input-event-codes.h +@@ -27,6 +27,7 @@ + #define INPUT_PROP_TOPBUTTONPAD 0x04 /* softbuttons at top of pad */ + #define INPUT_PROP_POINTING_STICK 0x05 /* is a pointing stick */ + #define INPUT_PROP_ACCELEROMETER 0x06 /* has accelerometer */ ++#define INPUT_PROP_PRESSUREPAD 0x07 /* pressure triggers clicks */ + + #define INPUT_PROP_MAX 0x1f + #define INPUT_PROP_CNT (INPUT_PROP_MAX + 1) +diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c +index 909e8f0..14dcbc4 100644 +--- a/src/evdev-mt-touchpad.c ++++ b/src/evdev-mt-touchpad.c +@@ -3733,7 +3733,8 @@ tp_init_pressurepad(struct tp_dispatch *tp, + * + * See also #562 + */ +- if (libevdev_get_abs_resolution(device->evdev, ABS_MT_PRESSURE) != 0 || ++ if (libevdev_has_property(device->evdev, INPUT_PROP_PRESSUREPAD) || ++ libevdev_get_abs_resolution(device->evdev, ABS_MT_PRESSURE) != 0 || + evdev_device_has_model_quirk(device, QUIRK_MODEL_PRESSURE_PAD)) { + libevdev_disable_event_code(device->evdev, EV_ABS, ABS_MT_PRESSURE); + libevdev_disable_event_code(device->evdev, EV_ABS, ABS_PRESSURE); +diff --git a/src/util-prop-parsers.c b/src/util-prop-parsers.c +index fc829e9..084cf4a 100644 +--- a/src/util-prop-parsers.c ++++ b/src/util-prop-parsers.c +@@ -465,8 +465,14 @@ parse_input_prop_property(const char *prop, struct input_prop *props_out, size_t + goto out; + } else { + int val = libevdev_property_from_name(s); +- if (val == -1) +- goto out; ++ if (val == -1) { ++ /* Remove once we require libevdev 1.13.6 */ ++ if (streq(s, "INPUT_PROP_PRESSUREPAD")) { ++ val = INPUT_PROP_PRESSUREPAD; ++ } else { ++ goto out; ++ } ++ } + prop = (unsigned int)val; + } + props[idx].prop = prop; diff --git a/debian/patches/0002-quirks-add-upstream-touchpad-support.patch b/debian/patches/0002-quirks-add-upstream-touchpad-support.patch new file mode 100644 index 0000000..3a40140 --- /dev/null +++ b/debian/patches/0002-quirks-add-upstream-touchpad-support.patch @@ -0,0 +1,503 @@ +From: lichenggang +Date: Mon, 16 Nov 2026 20:20:00 +0800 +Subject: quirks: add upstream touchpad support for newer devices + +Backport the touchpad quirk entries upstream added between 1.28.1 and +1.32.0. Each block is copied verbatim from upstream (comments and +ordering preserved) so they can be refreshed from upstream later. + +New devices covered: + + Goodix haptic touchpads 27C6:01E7/01E8/01E9/01EA/01EB, 27C6:0F90, + 27C6:0F95, 27C6:0F96 + Elan haptic touchpad 04F3:3355 + Pixart haptic touchpad 093A:4811, plus 093A:0255/0274/1336/200F + quirks reworked from the old per-system files + Synaptics haptic 06CB:D024 + Dell pressure pads 0488:108C/108D, 2C2F:0033/0034, + 06CB:D01A/D01D + Hantick 0911:5288 (clickpad announcing BTN_RIGHT) + Clevetura CLVX S BT 36F7:5755 + Microsoft Surface Pro 10 / Flex Keyboard touchpads + Google Chromebook Roric/Rull, Samsung Galaxy Book 4 360, + Positivo N8460 / VAIO FE15, Wareus B15, Getac X600, + GPD MicroPC 2, Acer Nitro ANV16-42, EAECIS NL60R, + HP OmniBook Ultra Flip 14 pressure ranges, + Lenovo ThinkPad P14s Gen 6. + +Only entries whose quirk keys are understood by this version are +included. Upstream entries relying on features that do not exist in +1.28.1 are deliberately left out: AttrTouchpadHysteresis (Framework +13 Pro), ModelCircularTouchpad (Panasonic Let's Note CF-*), +ModelScrollOnMiddleClick, AttrIsVirtual (QEMU/Oracle/VMware), and the +LenovoPavilionDM4/System76 model quirks. Adding any of those as-is +would make the quirks parser reject the file and libinput would then +drop the whole database - the exact failure mode of the reverted +patch. + +All 304 quirk sections of 1.28.1 are kept unchanged; this patch only +adds sections. + +Forwarded: not-needed (backport of the 1.29..1.32 quirks updates) +Signed-off-by: lichenggang +--- +diff --git a/quirks/30-vendor-clevetura.quirks b/quirks/30-vendor-clevetura.quirks +new file mode 100644 +index 0000000..5b6ae2e +--- /dev/null ++++ b/quirks/30-vendor-clevetura.quirks +@@ -0,0 +1,11 @@ ++# Do not edit this file, it will be overwritten on update ++ ++# Touchpad is not a clickpad but INPUT_PROP_BUTTONPAD is set, ++# causing libinput to drop physical button events. ++[Clevetura CLVX S Touchpad] ++MatchUdevType=touchpad ++MatchBus=bluetooth ++MatchVendor=0x36F7 ++MatchProduct=0x5755 ++AttrInputProp=-INPUT_PROP_BUTTONPAD ++AttrEventCode=+BTN_RIGHT +diff --git a/quirks/30-vendor-elantech.quirks b/quirks/30-vendor-elantech.quirks +index 9b3a1ba..bb486ba 100644 +--- a/quirks/30-vendor-elantech.quirks ++++ b/quirks/30-vendor-elantech.quirks +@@ -9,3 +9,11 @@ AttrPressureRange=10:8 + MatchName=*Elan Touchpad* + AttrResolutionHint=31x31 + AttrPressureRange=10:8 ++ ++# Elan Hapticpad mostly used in Lenovo laptops. ++[Elan Haptic Touchpad (04F3:3355)] ++MatchBus=i2c ++MatchVendor=0x04F3 ++MatchProduct=0x3355 ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD +diff --git a/quirks/30-vendor-goodix.quirks b/quirks/30-vendor-goodix.quirks +new file mode 100644 +index 0000000..ed084d0 +--- /dev/null ++++ b/quirks/30-vendor-goodix.quirks +@@ -0,0 +1,72 @@ ++# Do not edit this file, it will be overwritten on update ++ ++# "GXTP5100 Touchpad": pressure touchpad mostly used in Lenovo laptops. ++# Match vid and pid as it can have other names. ++[Goodix Haptic Touchpad (27C6:01E7)] ++MatchBus=i2c ++MatchVendor=0x27C6 ++MatchProduct=0x01E7 ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++# "GXTP5100 Touchpad": pressure touchpad mostly used in Lenovo laptops. ++# GXTP5100:00 27C6:01E8 Touchpad ++[Goodix Haptic Touchpad (27C6:01E8)] ++MatchBus=i2c ++MatchVendor=0x27C6 ++MatchProduct=0x01E8 ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++# "GXTP5100 Touchpad": pressure touchpad mostly used in Lenovo laptops. ++# GXTP5100:00 27C6:01E9 Touchpad ++[Goodix Haptic Touchpad (27C6:01E9)] ++MatchBus=i2c ++MatchVendor=0x27C6 ++MatchProduct=0x01E9 ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++# "GXTP5100 Touchpad": pressure touchpad mostly used in Lenovo laptops. ++# GXTP5100:00 27C6:01EA Touchpad ++[Goodix Haptic Touchpad (27C6:01EA)] ++MatchBus=i2c ++MatchVendor=0x27C6 ++MatchProduct=0x01EA ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++# "GXTP5100 Touchpad": pressure touchpad mostly used in Lenovo laptops. ++# GXTP5100:00 27C6:01EB Touchpad ++[Goodix Haptic Touchpad (27C6:01EB)] ++MatchBus=i2c ++MatchVendor=0x27C6 ++MatchProduct=0x01EB ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++# "GXTP5400 Touchpad": pressure touchpad mostly used in Lenovo laptops. ++# GXTP5400:00 27C6:0F96 Touchpad ++[Goodix Haptic Touchpad (27C6:0F96)] ++MatchBus=i2c ++MatchVendor=0x27C6 ++MatchProduct=0x0F96 ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++# "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 ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++# "GXTP5420 Touchpad": pressure touchpad mostly used in Lenovo laptops. ++[Goodix Haptic Touchpad (27C6:0F90)] ++MatchBus=i2c ++MatchVendor=0x27C6 ++MatchProduct=0x0F90 ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD +diff --git a/quirks/30-vendor-hantick.quirks b/quirks/30-vendor-hantick.quirks +new file mode 100644 +index 0000000..61d8a64 +--- /dev/null ++++ b/quirks/30-vendor-hantick.quirks +@@ -0,0 +1,22 @@ ++# Do not edit this file, it will be overwritten on update ++ ++# HTIX3602:00 0911:5288 touchpad, clickpad pretending it has a right button. ++# Integrated into several systems, including ++# Purism Librem 14v1 ++# Prestigio Smartbook 141 C2 ++# StarLite Mk II ++# Iota IOTA2320 ++# with different names ++# ALPS0001:00 0911:5288 ++# HTIX3602:00 0911:5288 ++# PCT2342:00 0911:5288 ++# SP3105FT:00 0911:5288 ++# SYNA3602:00 0911:5288 ++# Also exist FTSC1000:00 0911:5288 Mouse, so match in type ++# is needed to leave mouse button untouched. ++[Hantick 0911:5288 Touchpad] ++MatchBus=i2c ++MatchVendor=0x0911 ++MatchProduct=0x5288 ++MatchUdevType=touchpad ++AttrEventCode=-BTN_RIGHT +diff --git a/quirks/30-vendor-microsoft.quirks b/quirks/30-vendor-microsoft.quirks +index 36efebb..c2c9c7b 100644 +--- a/quirks/30-vendor-microsoft.quirks ++++ b/quirks/30-vendor-microsoft.quirks +@@ -38,3 +38,23 @@ MatchBus=usb + MatchVendor=0x045E + MatchProduct=0x0800 + ModelBouncingKeys=1 ++ ++# The Surface Pro 10 Flex keyboard touchpad is a clickpad that also ++# advertises a right button. ++[Microsoft Surface Pro 10 with Flex Keyboard Touchpad] ++MatchVendor=0x045E ++MatchProduct=0x0C8D ++MatchUdevType=touchpad ++AttrEventCode=-BTN_RIGHT ++ ++# The same touchpad over Bluetooth when the keyboard is detached. udev tags it ++# external, which disables palm detection unless the touchpad sits below the ++# keys of a keyboard combo, as it does here. Like the attached touchpad it is a ++# clickpad that also advertises a right button. ++[Microsoft Surface Pro Flex Keyboard Touchpad (Bluetooth)] ++MatchBus=bluetooth ++MatchVendor=0x045E ++MatchProduct=0x0C7A ++MatchUdevType=touchpad ++AttrTPKComboLayout=below ++AttrEventCode=-BTN_RIGHT +diff --git a/quirks/30-vendor-pixart.quirks b/quirks/30-vendor-pixart.quirks +new file mode 100644 +index 0000000..c38188c +--- /dev/null ++++ b/quirks/30-vendor-pixart.quirks +@@ -0,0 +1,46 @@ ++# Do not edit this file, it will be overwritten on update ++ ++# GPD Win Max - All versions ++# TongFang GX4 (X4SP4NAL) ++[Pixart Touchpad (093A:0255)] ++MatchBus=i2c ++MatchUdevType=touchpad ++MatchVendor=0x093A ++MatchProduct=0x0255 ++AttrEventCode=-BTN_RIGHT ++ ++# Framework Laptop ++# PCSpecialist Recoil 17 ++[Pixart Touchpad (093A:0274)] ++MatchBus=i2c ++MatchUdevType=touchpad ++MatchVendor=0x093A ++MatchProduct=0x0274 ++AttrEventCode=-BTN_RIGHT ++ ++# Chuwi AeroBook Plus ++# Chuwi Gemibook ++[Pixart Touchpad (093A:1336)] ++MatchBus=i2c ++MatchUdevType=touchpad ++MatchVendor=0x093A ++MatchProduct=0x1336 ++AttrEventCode=-BTN_RIGHT ++ ++# "093A:4811 Touchpad": haptic pressure touchpad used in Acer Predator laptops. ++# PIXA4811:00 093A:4811 Touchpad ++[Pixart Haptic Touchpad (093A:4811)] ++MatchBus=i2c ++MatchVendor=0x093A ++MatchProduct=0x4811 ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++# ASUS Chromebook CX1405CTA ++# ASUS Chromebook CX1505CKA ++[Pixart Touchpad (093A:200F)] ++MatchBus=i2c ++MatchUdevType=touchpad ++MatchVendor=0x093A ++MatchProduct=0x200F ++AttrPressureRange=20:8 +diff --git a/quirks/30-vendor-synaptics.quirks b/quirks/30-vendor-synaptics.quirks +index 315ab41..cdb2588 100644 +--- a/quirks/30-vendor-synaptics.quirks ++++ b/quirks/30-vendor-synaptics.quirks +@@ -17,3 +17,11 @@ ModelSynapticsSerialTouchpad=1 + MatchUdevType=touchpad + MatchName=* 0911:5288 Touchpad + AttrEventCode=-BTN_RIGHT ++ ++# "06CB:D024 Touchpad": pressure touchpad used in HP laptops. ++[Synaptics 06CB:D024 Touchpad] ++MatchBus=i2c ++MatchVendor=0x06CB ++MatchProduct=0xD024 ++MatchUdevType=touchpad ++AttrInputProp=+INPUT_PROP_PRESSUREPAD +diff --git a/quirks/50-system-acer.quirks b/quirks/50-system-acer.quirks +index fcac08e..4b91ccf 100644 +--- a/quirks/50-system-acer.quirks ++++ b/quirks/50-system-acer.quirks +@@ -7,3 +7,11 @@ ModelTabletModeNoSuspend=1 + MatchName=AT Translated Set 2 keyboard + MatchDMIModalias=dmi:*svnAcer:pnSpinSP513-52N:* + ModelTabletModeNoSuspend=1 ++ ++# Nitro ANV16-42 ++[Acer touchpad (06CB:CFE4)] ++MatchUdevType=keyboard ++MatchBus=usb ++MatchVendor=0x06CB ++MatchProduct=0xCFE4 ++AttrKeyboardIntegration=internal +diff --git a/quirks/50-system-dell.quirks b/quirks/50-system-dell.quirks +index 8110651..b0c4ff1 100644 +--- a/quirks/50-system-dell.quirks ++++ b/quirks/50-system-dell.quirks +@@ -165,3 +165,39 @@ MatchBus=i2c + MatchVendor=0x27C6 + MatchProduct=0x0F62 + ModelPressurePad=1 ++ ++[Dell 14 Premium DA14250 touchpad] ++MatchBus=i2c ++MatchVendor=0x0488 ++MatchProduct=0x108C ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++[Dell 16 Premium DA16250 touchpad] ++MatchBus=i2c ++MatchVendor=0x0488 ++MatchProduct=0x108D ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++[Dell laptop 14 Sensel touchpad] ++MatchBus=i2c ++MatchVendor=0x2C2F ++MatchProduct=0x0034 ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++[Dell laptop 14_1 Synaptics touchpad] ++MatchBus=i2c ++MatchVendor=0x06CB ++MatchProduct=0xD01D ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++[Dell laptop 16 Sensel touchpad] ++MatchBus=i2c ++MatchVendor=0x2C2F ++MatchProduct=0x0033 ++AttrInputProp=+INPUT_PROP_PRESSUREPAD ++ ++[Dell laptop 16_1 Synaptics touchpad] ++MatchBus=i2c ++MatchVendor=0x06CB ++MatchProduct=0xD01A ++AttrInputProp=+INPUT_PROP_PRESSUREPAD +diff --git a/quirks/50-system-eaecis.quirks b/quirks/50-system-eaecis.quirks +new file mode 100644 +index 0000000..1d78e71 +--- /dev/null ++++ b/quirks/50-system-eaecis.quirks +@@ -0,0 +1,13 @@ ++# Do not edit this file, it will be overwritten on update ++ ++# The touchpad found on the EAECIS NL60R comes with volume and brightness ++# sliders on the left and right edges, which are extremely easy to trigger ++# when typing. ++# ++# Disable them so that we don't get "volume and brightness jitters" when ++# typing on this laptop. ++[Disable EAECIS NL60R Touchpad Keys] ++MatchName=PNP0C50:00 36B6:C005 Keyboard ++MatchUdevType=keyboard ++MatchDMIModalias=dmi:*:svnEAECIS:pnNL60R*:* ++AttrEventCode=-KEY_BRIGHTNESSUP;-KEY_BRIGHTNESSDOWN;-KEY_VOLUMEUP;-KEY_VOLUMEDOWN +diff --git a/quirks/50-system-getac.quirks b/quirks/50-system-getac.quirks +new file mode 100644 +index 0000000..3d4b985 +--- /dev/null ++++ b/quirks/50-system-getac.quirks +@@ -0,0 +1,11 @@ ++# Do not edit this file, it will be overwritten on update ++ ++# Most Pixart Touchpad (093A:0274) devices don't have buttons so we remove right ++# button in 30-vendor-pixart.quirks, but this one does. ++[Getac X600 Touchpad] ++MatchBus=i2c ++MatchUdevType=touchpad ++MatchVendor=0x093A ++MatchProduct=0x0274 ++MatchDMIModalias=dmi:*:svnGETAC:pnX600*:* ++AttrEventCode=+BTN_RIGHT +diff --git a/quirks/50-system-google.quirks b/quirks/50-system-google.quirks +index 920f8f6..b5ba279 100644 +--- a/quirks/50-system-google.quirks ++++ b/quirks/50-system-google.quirks +@@ -178,3 +178,17 @@ ModelChromebook=1 + AttrPressureRange=0:-2 + AttrThumbPressureThreshold=45 + AttrPalmPressureThreshold=0 ++ ++[Google Chromebook Roric] ++MatchUdevType=touchpad ++MatchName=PNP0C50:00 093A:3307 Touchpad ++MatchDMIModalias=dmi:*svnGoogle:pnRoric* ++ModelChromebook=1 ++AttrPressureRange=20:10 ++ ++[Google Chromebook Rull] ++MatchUdevType=touchpad ++MatchName=PNP0C50:00 093A:3307 Touchpad ++MatchDMIModalias=dmi:*svnGoogle:pnRull* ++ModelChromebook=1 ++AttrPressureRange=20:10 +diff --git a/quirks/50-system-gpd.quirks b/quirks/50-system-gpd.quirks +index bdfeae9..b5e04d9 100644 +--- a/quirks/50-system-gpd.quirks ++++ b/quirks/50-system-gpd.quirks +@@ -3,3 +3,9 @@ MatchName=HTIX5288:00 093A:0255 Touchpad + MatchUdevType=touchpad + MatchDMIModalias=dmi:*svnGPD:*pnG1619-* + AttrEventCode=-BTN_RIGHT ++ ++[GPD MicroPC 2 Touchpad] ++MatchName=ALPS0001:00 36B6:C001 Touchpad ++MatchUdevType=touchpad ++MatchDMIModalias=dmi:*:svnGPD:pnG1688-08:* ++AttrInputProp=-INPUT_PROP_BUTTONPAD +diff --git a/quirks/50-system-hp.quirks b/quirks/50-system-hp.quirks +index 7e4ef99..6348d06 100644 +--- a/quirks/50-system-hp.quirks ++++ b/quirks/50-system-hp.quirks +@@ -98,3 +98,16 @@ MatchBus=i2c + MatchVendor=0x06CB + MatchProduct=0xCFD2 + ModelPressurePad=1 ++ ++# The HP OmniBook Ultra Flip 14 toggles tablet mode at a little less than 180 ++# degrees and hardware switches off inputs at a little more than 180 degrees. ++# We don't suspend ourselves to allow using them in flat position. ++# This rule is for the touchpad. ++[HP OmniBook Ultra Flip Laptop 14-fh0xxx and 14t-fh000 Touchpad] ++MatchBus=i2c ++MatchUdevType=touchpad ++MatchDMIModalias=dmi:*:svnHP:*:rn8CDE:* ++ModelTabletModeNoSuspend=1 ++AttrPressureRange=15:5 ++AttrThumbPressureThreshold=80 ++AttrPalmPressureThreshold=125 +diff --git a/quirks/50-system-lenovo.quirks b/quirks/50-system-lenovo.quirks +index 73b4167..d2bbaf3 100644 +--- a/quirks/50-system-lenovo.quirks ++++ b/quirks/50-system-lenovo.quirks +@@ -417,3 +417,12 @@ MatchName=*GXTP5100* + MatchDMIModalias=dmi:*svnLENOVO:*pvrThinkBook14G7+IAH*:* + MatchUdevType=touchpad + ModelPressurePad=1 ++ ++# The touchpad firmware clears the confidence bit one frame before finger ++# lift-off, so hid-multitouch reports MT_TOOL_PALM at the end of every touch ++# and taps are always cancelled as palms. ++[Lenovo P14s Gen 6 Touchpad] ++MatchUdevType=touchpad ++MatchName=ELAN0676:00 04F3:3195 Touchpad ++MatchDMIModalias=dmi:*:svnLENOVO:*:pvrThinkPadP14sGen6:* ++AttrEventCode=-ABS_MT_TOOL_TYPE +diff --git a/quirks/50-system-positivo.quirks b/quirks/50-system-positivo.quirks +new file mode 100644 +index 0000000..e71c47b +--- /dev/null ++++ b/quirks/50-system-positivo.quirks +@@ -0,0 +1,22 @@ ++# Do not edit this file, it will be overwritten on update ++ ++# Most Pixart Touchpad (093A:0255) devices don't have buttons so we remove right ++# button in 30-vendor-pixart.quirks, but this one does. ++[Positivo VAIO FE15 Touchpad] ++MatchBus=i2c ++MatchVendor=0x093A ++MatchProduct=0x0255 ++MatchUdevType=touchpad ++MatchDMIModalias=dmi:*:svnPositivoBahia-VAIO:pnVJFE59F11X-*:* ++AttrEventCode=+BTN_RIGHT ++ ++# Most Pixart Touchpad (093A:0255) devices don't have buttons so we remove right ++# button in 30-vendor-pixart.quirks, but this one does. ++# https://gitlab.freedesktop.org/libinput/libinput/-/work_items/1315 ++[Positivo N8460 Touchpad] ++MatchBus=i2c ++MatchVendor=0x093A ++MatchProduct=0x0255 ++MatchUdevType=touchpad ++MatchDMIModalias=dmi:*svnPositivoTecnologiaSA:pnN8460:* ++AttrEventCode=+BTN_RIGHT +diff --git a/quirks/50-system-samsung.quirks b/quirks/50-system-samsung.quirks +new file mode 100644 +index 0000000..8ca85d8 +--- /dev/null ++++ b/quirks/50-system-samsung.quirks +@@ -0,0 +1,7 @@ ++# Do not edit this file, it will be overwritten on update ++ ++[Samsung Galaxy Book 4 360 Touchpad] ++MatchUdevType=touchpad ++MatchName=*ZNT0001* ++AttrPressureRange=20:10 ++AttrPalmPressureThreshold=100 +diff --git a/quirks/50-system-wareus.quirks b/quirks/50-system-wareus.quirks +new file mode 100644 +index 0000000..8a5bbab +--- /dev/null ++++ b/quirks/50-system-wareus.quirks +@@ -0,0 +1,8 @@ ++# Do not edit this file, it will be overwritten on update ++ ++# Clickpad that announces BTN_RIGHT ++[Wareus B15 Touchpad] ++MatchName=HTIX5288:00 36B6:C001 Touchpad ++MatchUdevType=touchpad ++MatchDMIModalias=dmi:*svnWareus:*pnB15* ++AttrEventCode=-BTN_RIGHT diff --git a/debian/patches/series b/debian/patches/series index a97901a..788557b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,5 @@ 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 +0001-touchpad-support-INPUT_PROP_PRESSUREPAD.patch +0002-quirks-add-upstream-touchpad-support.patch