ublue-os / hwe

Fedora variants with support for ASUS devices, Nvidia devices, and Surface laptops
https://universal-blue.org/images/hwe
Apache License 2.0
176 stars 39 forks source link

nvidia GPU extra devices need udev rules for power management #291

Closed bsherman closed 4 weeks ago

bsherman commented 4 weeks ago

We have the core GPU device covered on power management (both in 60-nvidia.rules and in 90-supergfxd-nvidia-pm.rules)

But we don't have rules for the sometimes present extra devices. We should add rules since it doesn't hurt but will enable power management should a machine have these devices:

# Remove NVIDIA USB xHCI Host Controller devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c0330", ATTR{remove}="1"

# Remove NVIDIA USB Type-C UCSI devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x0c8000", ATTR{remove}="1"

# Remove NVIDIA Audio devices, if present
ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}=="0x040300", ATTR{remove}="1"

I'm thinking we may just want to add this to /usr/lib/udev/rules.d/60-nvidia.rules

see: https://download.nvidia.com/XFree86/Linux-x86_64/565.57.01/README/dynamicpowermanagement.html