xorg-server: misc cleanups with driver automatching and system config.

- nvidia autoconfiguration can now be done via a configuration
file rather than patching.
- remove obsolete 11-quirks.conf.
- fix system configuration directory, previously it was set to /etc/X11/X11.
This commit is contained in:
Juan RP 2014-07-26 07:54:42 +02:00
parent 66bfc94f97
commit 875249abdd
4 changed files with 11 additions and 42 deletions

View file

@ -1,10 +0,0 @@
# 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 "ThinkPad HDAPS accelerometer blacklist"
MatchProduct "ThinkPad HDAPS accelerometer data"
Option "Ignore" "on"
EndSection

View file

@ -0,0 +1,6 @@
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
EndSection

View file

@ -1,27 +0,0 @@
--- hw/xfree86/common/xf86pciBus.c 2012-02-10 10:10:37.583014924 +0000
+++ hw/xfree86/common/xf86pciBus.c 2012-02-10 11:16:07.148971317 +0000
@@ -1144,7 +1144,23 @@
int idx = 0;
#ifdef __linux__
- driverList[idx++] = "nouveau";
+ switch (dev->device_id)
+ {
+ /* NV1 */
+ case 0x0008:
+ case 0x0009:
+ driverList[idx++] = "vesa";
+ break;
+ /* NV3 */
+ case 0x0018:
+ case 0x0019:
+ driverList[idx++] = "nouveau";
+ break;
+ default:
+ driverList[idx++] = "nvidia";
+ driverList[idx++] = "nouveau";
+ break;
+ }
#endif
driverList[idx++] = "nv";
break;

View file

@ -1,12 +1,12 @@
# Template build file for 'xorg-server'.
pkgname=xorg-server
version=1.16.0
revision=5
revision=6
build_style=gnu-configure
configure_args="--enable-ipv6 --enable-xcsecurity --enable-record
--enable-xnest --enable-xephyr --enable-composite --enable-xvfb
--disable-static --disable-config-hal --disable-xfbdev --disable-xfake
--enable-config-udev --enable-config-udev-kms --sysconfdir=/etc/X11
--enable-config-udev --enable-config-udev-kms
--with-xkb-path=/usr/share/X11/xkb --with-xkb-output=/var/lib/xkb
--with-fontrootdir=/usr/share/fonts/X11 --with-sha1=libcrypto
--disable-dmx --disable-xfree86-utils --enable-dga --enable-xorg
@ -61,7 +61,8 @@ else
fi
post_install() {
vinstall ${FILESDIR}/11-quirks.conf 644 etc/X11/xorg.conf.d
vinstall ${FILESDIR}/nvidia-drm-outputclass.conf 644 usr/share/X11/xorg.conf.d
vinstall COPYING 644 usr/share/licenses/${pkgname}
chmod 4755 ${DESTDIR}/usr/libexec/Xorg.wrap
@ -69,8 +70,7 @@ post_install() {
if [ -e ${DESTDIR}/usr/lib/xorg/modules/extensions/libglx.so ]; then
# Support nvidia and amd binary blobs to provide their own
# implementation.
mv ${DESTDIR}/usr/lib/xorg/modules/extensions/libglx.so \
${DESTDIR}/usr/lib/xorg/modules/extensions/libglx-xorg.so
mv ${DESTDIR}/usr/lib/xorg/modules/extensions/{libglx.so,libglx-xorg.so}
fi
}