Reorder nvidia-dkms installation steps

This commit is contained in:
Manuel Thalmann 2024-03-09 11:43:47 +01:00
parent 4dc3e1fd6c
commit 118cdbfbcd

View file

@ -4,11 +4,6 @@
echo "options nvidia_drm fbdev=1";
} | sudo tee /etc/modprobe.d/nvidia.conf > /dev/null;
{
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1";
echo "options nvidia NVreg_TemporaryFilePath=/var/tmp";
} | sudo tee /etc/modprobe.d/nvidia-power-management.conf > /dev/null;
sudo sed -i \
-e "/^HOOKS=(.* kms /{" \
-e "h; s/^/#/; p;" \
@ -18,6 +13,11 @@ sudo sed -i \
sudo mkinitcpio -P;
{
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1";
echo "options nvidia NVreg_TemporaryFilePath=/var/tmp";
} | sudo tee /etc/modprobe.d/nvidia-power-management.conf > /dev/null;
sudo systemctl enable \
nvidia-suspend.service \
nvidia-hibernate.service \