commit da039eea6bb4425b5ef7b92c80077f04bc3f4584
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Fri Nov 3 18:21:57 2023 +0000
Readd nvidia power management udev rules
80-nvidia-pm.rules | 7 +++++++
xorg-x11-drv-nvidia.spec | 10 +++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/80-nvidia-pm.rules b/80-nvidia-pm.rules
new file mode 100644
index 0000000..ba3cefe
--- /dev/null
+++ b/80-nvidia-pm.rules
@@ -0,0 +1,7 @@
+# Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind
+ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de",
ATTR{class}=="0x030000", TEST=="power/control",
ATTR{power/control}="auto"
+ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de",
ATTR{class}=="0x030200", TEST=="power/control",
ATTR{power/control}="auto"
+
+# Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind
+ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de",
ATTR{class}=="0x030000", TEST=="power/control",
ATTR{power/control}="on"
+ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de",
ATTR{class}=="0x030200", TEST=="power/control",
ATTR{power/control}="on"
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index d5a934f..14b707d 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -22,7 +22,7 @@
Name: xorg-x11-drv-nvidia
Epoch: 3
Version: 545.29.02
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards
License: Redistributable, no modification permitted
@@ -31,6 +31,7 @@ Source0:
https://download.nvidia.com/XFree86/Linux-x86_64/%{version}/NVI
Source1:
https://download.nvidia.com/XFree86/Linux-aarch64/%{version}/NVIDIA-Linux...
Source5: alternate-install-present
Source6: nvidia.conf
+Source7: 80-nvidia-pm.rules
Source8: xorg-x11-drv-nvidia.metainfo.xml
Source9: parse-supported-gpus.py
Source11: nvidia-uvm.conf
@@ -379,6 +380,9 @@ install -m 0755 -d %{buildroot}%{_udevrulesdir}
install -p -m 0644 %{SOURCE13} %{buildroot}%{_udevrulesdir}
install -p -m 0644 %{SOURCE14} %{buildroot}%{_unitdir}
+# UDev rules for PCI-Express Runtime D3 (RTD3) Power Management
+install -p -m 0644 %{SOURCE7} %{buildroot}%{_udevrulesdir}
+
# Systemd units and script for suspending/resuming
mkdir %{buildroot}%{_systemd_util_dir}/system-{sleep,preset}/
install -p -m 0644 %{SOURCE17} %{buildroot}%{_systemd_util_dir}/system-preset/
@@ -451,6 +455,7 @@ fi ||:
%ghost %{_sysconfdir}/X11/xorg.conf.d/nvidia.conf
%{_datadir}/X11/xorg.conf.d/nvidia.conf
%{_udevrulesdir}/10-nvidia.rules
+%{_udevrulesdir}/80-nvidia-pm.rules
%{_unitdir}/nvidia-fallback.service
%{_metainfodir}/%{name}.metainfo.xml
%{_datadir}/pixmaps/%{name}.png
@@ -606,6 +611,9 @@ fi ||:
%endif
%changelog
+* Fri Nov 03 2023 Leigh Scott <leigh123linux(a)gmail.com> - 3:545.29.02-4
+- Readd nvidia power management udev rules
+
* Fri Nov 03 2023 Leigh Scott <leigh123linux(a)gmail.com> - 3:545.29.02-3
- Add requires nvidia-modprobe to main package