commit 2dec942e6cc48d3026be5204fc9a52458ef1ae10
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Tue Aug 15 23:29:52 2017 +0100
Enable modeset for DRM
nvidia-drm.conf | 1 +
xorg-x11-drv-nvidia.spec | 5 +++++
2 files changed, 6 insertions(+)
---
diff --git a/nvidia-drm.conf b/nvidia-drm.conf
new file mode 100644
index 0000000..0ea2309
--- /dev/null
+++ b/nvidia-drm.conf
@@ -0,0 +1 @@
+options nvidia-drm modeset=1
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index ade90d9..2e0317f 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -54,6 +54,7 @@ Source13: parse-readme.py
Source14: 60-nvidia-uvm.rules
Source15: nvidia-uvm.conf
Source16: 99-nvidia-dracut.conf
+Source17: nvidia-drm.conf
Source20: 10-nvidia.rules
Source21: nvidia-fallback.service
@@ -301,6 +302,9 @@ install -p -m 0644 %{SOURCE15} %{buildroot}%{_modprobe_d}
install -p -m 0644 %{SOURCE6} %{buildroot}%{_modprobe_d}
%endif
+# DRM modprobe conf
+install -p -m 0644 %{SOURCE17} %{buildroot}%{_modprobe_d}
+
# UDev rules for nvidia
install -m 0755 -d %{buildroot}%{_udevrulesdir}
install -p -m 0644 %{SOURCE11} %{buildroot}%{_udevrulesdir}
@@ -498,6 +502,7 @@ fi ||:
%if 0%{?rhel} > 6 || 0%{?fedora}
%{_udevrulesdir}/10-nvidia.rules
%{_udevrulesdir}/60-nvidia.rules
+%{_modprobe_d}/nvidia-drm.conf
%{_unitdir}/nvidia-fallback.service
%endif
%if 0%{?fedora} >= 25
Show replies by date