Install a hwdb file to tag lid switches as such, this is missing from F25

systemd.
This commit is contained in:
Peter Hutterer 2017-05-22 13:18:34 +10:00
commit d0a3e8d062
2 changed files with 14 additions and 1 deletions

4
90-switch.hwdb Normal file
View file

@ -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

View file

@ -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 <peter.hutterer@redhat.com> 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 <peter.hutterer@redhat.com> 1.6.3-4
- Ignore taps in the palm detection area even in software buttons (#1415796)