diff options
-rw-r--r-- | x11-drivers/nvidia-drivers/files/nvidia.conf | 1 | ||||
-rw-r--r-- | x11-drivers/nvidia-drivers/nvidia-drivers-390.132.ebuild | 7 | ||||
-rw-r--r-- | x11-drivers/nvidia-drivers/nvidia-drivers-440.44.ebuild | 9 |
3 files changed, 12 insertions, 5 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia.conf b/x11-drivers/nvidia-drivers/files/nvidia.conf new file mode 100644 index 00000000..31075c0d --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/nvidia.conf @@ -0,0 +1 @@ +blacklist nouveau diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.132.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.132.ebuild index 4981460c..93f63478 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.132.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.132.ebuild @@ -144,6 +144,9 @@ src_install() { doins ${NV_X11}/10_nvidia_wayland.json fi + insinto /etc/modprobe.d + doins "${FILESDIR}"/nvidia.conf + # NVIDIA kernel <-> userspace driver config lib donvidia ${NV_OBJ}/libnvidia-cfg.so.${NV_SOVER} @@ -173,8 +176,8 @@ src_install() { # install nvidia-modprobe setuid and symlink in /usr/bin (bug #505092) doexe ${NV_OBJ}/nvidia-modprobe - #fowners root:video /opt/bin/nvidia-modprobe - #fperms 4710 /opt/bin/nvidia-modprobe + fowners root:video /opt/bin/nvidia-modprobe + fperms 4710 /opt/bin/nvidia-modprobe dosym /{opt,usr}/bin/nvidia-modprobe # init diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-440.44.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-440.44.ebuild index dc45391d..f1e13dde 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-440.44.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-440.44.ebuild @@ -145,6 +145,9 @@ src_install() { insinto /usr/share/glvnd/egl_vendor.d doins ${NV_X11}/10_nvidia.json + + insinto /etc/vulkan/icd.d + doins ${NV_X11}/nvidia_icd.json fi if use wayland; then @@ -152,6 +155,9 @@ src_install() { doins ${NV_X11}/10_nvidia_wayland.json fi + insinto /etc/modprobe.d + doins "${FILESDIR}"/nvidia.conf + # OpenCL ICD for NVIDIA insinto /etc/OpenCL/vendors doins ${NV_OBJ}/nvidia.icd @@ -161,9 +167,6 @@ src_install() { if use X; then doexe ${NV_OBJ}/nvidia-xconfig - - insinto /etc/vulkan/icd.d - doins nvidia_icd.json fi doexe ${NV_OBJ}/nvidia-cuda-mps-control |