diff --git a/profiles/pci/graphic_drivers/profiles.toml b/profiles/pci/graphic_drivers/profiles.toml index 3beacef..a71e301 100644 --- a/profiles/pci/graphic_drivers/profiles.toml +++ b/profiles/pci/graphic_drivers/profiles.toml @@ -63,6 +63,11 @@ post_install = """ # nvidia-powerd is not supported by Turing GPUs if ! lspci -d "10de:*:030x" -vm | grep -q 'Device:\\tTU.*'; then systemctl enable nvidia-powerd + else + cat << 'EOF' >/etc/modprobe.d/chwd-nvidia.conf +# This file is automatically generated by chwd. PLEASE DO NOT EDIT IT. +options nvidia NVreg_DynamicPowerManagement=0x02 +EOF fi systemctl enable switcheroo-control @@ -94,6 +99,7 @@ pre_remove = """ post_remove = """ rm -f /etc/profile.d/nvidia-rtd3-workaround.sh rm -f /usr/lib/systemd/user-environment-generators/20-nvidia-rtd3-workaround + rm -f /etc/modprobe.d/chwd-nvidia.conf """ [nvidia-dkms-580xx]