diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2022-05-20 20:05:42 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2022-05-20 20:18:50 -0400 |
commit | f56310fc9f3542319950e223dacfcbf301f596ec (patch) | |
tree | f0dacd1038f8851cd0a16fc0e0b171c350ae7a93 /x11-drivers/nvidia-drivers/files | |
parent | sec-keys/openpgp-keys-evenrouault: update EAPI 7 -> 8 (diff) | |
download | gentoo-f56310fc9f3542319950e223dacfcbf301f596ec.tar.gz gentoo-f56310fc9f3542319950e223dacfcbf301f596ec.tar.bz2 gentoo-f56310fc9f3542319950e223dacfcbf301f596ec.zip |
x11-drivers/nvidia-drivers: install PM udev rules from README.txt
User reported it solved some power management issues (e.g. oddities
followed by Xorg segfault when using sleep with GNOME), and other
distros like Fedora install these unconditionally. Only for 470+
given wasn't included in nvidia's README for 390.xx and likely not
relevant.
Skip revbump, not known(?) to affect many and will propagate on
kernel upgrades + rebuild.
Thanks-to: Randall T. Vasquez
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-drivers/nvidia-drivers/files')
-rw-r--r-- | x11-drivers/nvidia-drivers/files/nvidia-470.rules | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/files/nvidia-470.rules b/x11-drivers/nvidia-drivers/files/nvidia-470.rules new file mode 100644 index 000000000000..ba3cefef9876 --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/nvidia-470.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" |