From: Kacper Kornet Date: Tue, 13 Apr 2010 12:38:54 +0000 (+0000) Subject: - these two accelerometers are not mice (based on Fedora) X-Git-Tag: auto/th/xorg-xserver-server-1_8_0_901-4~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=997bcfbef110b1e5a273670b7808c3e58cbc1d4e;p=packages%2Fxorg-xserver-server.git - these two accelerometers are not mice (based on Fedora) Changed files: 10-quirks.conf -> 1.1 xorg-xserver-server.spec -> 1.230 --- diff --git a/10-quirks.conf b/10-quirks.conf new file mode 100644 index 0000000..fde0311 --- /dev/null +++ b/10-quirks.conf @@ -0,0 +1,11 @@ +# Collection of quirks and blacklist/whitelists for specific devices. + + +# Accelerometer device, posts data through ABS_X/ABS_Y, making X unusable +# http://bugs.freedesktop.org/show_bug.cgi?id=22442 +Section "InputClass" + Identifier "Accelerometers blacklist" + MatchProduct "ThinkPad HDAPS accelerometer data|ST LIS3LV02DL Accelerometer" + Option "Ignore" "on" +EndSection + diff --git a/xorg-xserver-server.spec b/xorg-xserver-server.spec index 9d5f2d3..5d6c876 100644 --- a/xorg-xserver-server.spec +++ b/xorg-xserver-server.spec @@ -25,6 +25,7 @@ License: MIT Group: X11/Servers Source0: http://xorg.freedesktop.org/releases/individual/xserver/xorg-server-%{version}.tar.bz2 # Source0-md5: 7cec3a11890bb53f4a07854319360348 +Source1: 10-quirks.conf Source2: xserver.pamd Patch0: %{name}-xwrapper.patch Patch1: %{name}-pic-libxf86config.patch @@ -411,6 +412,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{*,*/*}.{la,a} %if %{with udev} mv $RPM_BUILD_ROOT%{_prefix}/etc/X11/xorg.conf.d/10-evdev.conf $RPM_BUILD_ROOT/etc/X11/xorg.conf.d +install %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/xorg.conf.d/10-quirks.conf %endif %if %{with multigl} @@ -472,6 +474,7 @@ fi %dir /etc/X11/xorg.conf.d %if %{with udev} %config(noreplace) %verify(not md5 mtime size) /etc/X11/xorg.conf.d/10-evdev.conf +%config(noreplace) %verify(not md5 mtime size) /etc/X11/xorg.conf.d/10-quirks.conf %endif %{_mandir}/man1/Xorg.1x* %{_mandir}/man1/Xserver.1x*