Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions profiles/pci/graphic_drivers/profiles.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
Expand Down
Loading