Skip to content

Commit

Permalink
profiles/graphic_drivers: Enable nvidia-powerd by default for Ampere+…
Browse files Browse the repository at this point in the history
… dGPUs (#140)

Signed-off-by: Vasiliy Stelmachenok <[email protected]>
  • Loading branch information
ventureoo authored Nov 9, 2024
1 parent d7e7e65 commit da5c05d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions profiles/pci/graphic_drivers/profiles.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ EOF
# Trying to determine the laptop
device_type="$(cat /sys/devices/virtual/dmi/id/chassis_type)"
if ((device_type >= 8 && device_type <= 11)); then
# nvidia-powerd is not supported by Turing GPUs
if ! lspci -d "10de:*:030x" -vm | grep -q 'Device:\tTU.*'; then
systemctl enable nvidia-powerd
fi
systemctl enable switcheroo-control
else
# Add libva-nvidia-driver to profile
Expand Down

0 comments on commit da5c05d

Please sign in to comment.