Dotfiles: Add pacman hook to nvidia fix

This commit is contained in:
Harzo 2023-08-24 17:53:45 +02:00
parent 106c70e666
commit bab7883ad2
1 changed files with 2 additions and 0 deletions

View File

@ -6,5 +6,7 @@ root_guard
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/path/to/tmp-nvidia" > /etc/modprobe.d/nvidia-power-management.conf echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/path/to/tmp-nvidia" > /etc/modprobe.d/nvidia-power-management.conf
install -m 644 "${CURDIR}/../files/hooks/nvidia.hook" /etc/pacman.d/hooks/nvidia.hook
systemctl enable nvidia-suspend systemctl enable nvidia-suspend
systemctl enable nvidia-hibernate systemctl enable nvidia-hibernate