From d0a3e8d0622e34966fa0d2d64c88d2b317fd0aea Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 22 May 2017 13:18:34 +1000 Subject: [PATCH] Install a hwdb file to tag lid switches as such, this is missing from F25 systemd. --- 90-switch.hwdb | 4 ++++ libinput.spec | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 90-switch.hwdb diff --git a/90-switch.hwdb b/90-switch.hwdb new file mode 100644 index 0000000..35543e9 --- /dev/null +++ b/90-switch.hwdb @@ -0,0 +1,4 @@ +# Simple entry for ID_INPUT_SWITCH +# Upstream in systemd 233 but not in F25 +libinput:name:*Lid Switch*:dmi:* + ID_INPUT_SWITCH=1 diff --git a/libinput.spec b/libinput.spec index 498aadf..0ebe49b 100644 --- a/libinput.spec +++ b/libinput.spec @@ -5,7 +5,7 @@ Name: libinput Version: 1.6.3 -Release: 4%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist} +Release: 5%{?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 +Source1: 90-switch.hwdb + Patch01: 0001-evdev-allow-button-scrolling-on-the-L-R-button-with-.patch Patch02: 0001-evdev-add-quirk-for-Logitech-Marble-Mouse.patch Patch03: 0001-touchpad-pull-the-tap-exclusion-zone-down-to-the-ful.patch @@ -70,6 +72,8 @@ make %{?_smp_mflags} %make_install find $RPM_BUILD_ROOT -name '*.la' -delete +mkdir -p ${RPM_BUILD_ROOT}%{udevdir}/hwdb.d/ +install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{udevdir}/hwdb.d/ %post /sbin/ldconfig @@ -86,6 +90,7 @@ find $RPM_BUILD_ROOT -name '*.la' -delete %{udevdir}/rules.d/80-libinput-device-groups.rules %{udevdir}/rules.d/90-libinput-model-quirks.rules %{udevdir}/hwdb.d/90-libinput-model-quirks.hwdb +%{udevdir}/hwdb.d/90-switch.hwdb %{_bindir}/libinput-list-devices %{_bindir}/libinput-debug-events %{_mandir}/man1/libinput-list-devices.1* @@ -98,6 +103,10 @@ find $RPM_BUILD_ROOT -name '*.la' -delete %changelog +* Mon May 22 2017 Peter Hutterer 1.6.3-5 +- Install a hwdb file to tag lid switches as such, this is missing from F25 + systemd. + * Tue May 09 2017 Peter Hutterer 1.6.3-4 - Ignore taps in the palm detection area even in software buttons (#1415796)