PortValhalla/scripts/Common/Software/nvidia-dkms/main.fish

22 lines
650 B
Fish
Raw Normal View History

2024-09-20 00:01:22 +00:00
#!/bin/env fish
begin
set -l dir (status dirname)
2024-11-01 12:12:16 +00:00
source "$dir/../../../lib/software.fish"
2024-09-20 00:01:22 +00:00
function configureSW -V dir
# According to: https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks
begin
printf %s\n \
"options nvidia NVreg_PreserveVideoMemoryAllocations=1" \
"options nvidia NVreg_TemporaryFilePath=/var/tmp"
2024-10-06 19:25:34 +00:00
end | sudo tee /etc/modprobe.d/nvidia-power-management.conf >/dev/null
2024-09-20 00:01:22 +00:00
sudo systemctl enable \
nvidia-suspend.service \
nvidia-hibernate.service \
nvidia-resume.service
end
runInstaller $argv
end