summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2020-08-25 10:12:58 -0700
committerMatt Turner <mattst88@gentoo.org>2020-08-25 10:42:45 -0700
commitcb335d5d9efcb79e99a8c8fc2fbce91610050bcd (patch)
treeba5fcd76a0f2d34091420d508105594e19b40f72 /x11-drivers
parentx11-base/xorg-server: Stabilize 1.20.9 amd64, #734976 (diff)
downloadgentoo-cb335d5d9efcb79e99a8c8fc2fbce91610050bcd.tar.gz
gentoo-cb335d5d9efcb79e99a8c8fc2fbce91610050bcd.tar.bz2
gentoo-cb335d5d9efcb79e99a8c8fc2fbce91610050bcd.zip
x11-drivers/nvidia-drivers: Add xorg.conf file to set ModulePath
Closes: https://bugs.gentoo.org/713546 Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/nvidia-drivers/files/nvidia-390.conf7
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-390.138-r2.ebuild (renamed from x11-drivers/nvidia-drivers/nvidia-drivers-390.138-r1.ebuild)3
2 files changed, 10 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-390.conf b/x11-drivers/nvidia-drivers/files/nvidia-390.conf
new file mode 100644
index 000000000000..81dbfc45786e
--- /dev/null
+++ b/x11-drivers/nvidia-drivers/files/nvidia-390.conf
@@ -0,0 +1,7 @@
+Section "OutputClass"
+ Identifier "nvidia"
+ MatchDriver "nvidia-drm"
+ Driver "nvidia"
+ Option "AllowEmptyInitialConfiguration"
+ ModulePath "/usr/lib/nvidia/xorg"
+EndSection
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.138-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.138-r2.ebuild
index 783dd93a4d22..7505e7d936a1 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.138-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.138-r2.ebuild
@@ -343,6 +343,9 @@ src_install() {
insinto /etc/vulkan/icd.d
doins nvidia_icd.json
+
+ insinto /etc/X11/xorg.conf.d
+ doins "${FILESDIR}"/nvidia-390.conf
fi
if use kernel_linux; then