18 lines
649 B
Bash
Executable file
18 lines
649 B
Bash
Executable file
#!/bin/bash
|
|
# According to installation guide on Arch Wiki:
|
|
# https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting
|
|
{
|
|
echo "options nvidia_drm modeset=1";
|
|
# echo "options nvidia_drm fbdev=1";
|
|
} | sudo tee /etc/modprobe.d/nvidia.conf > /dev/null;
|
|
|
|
# According to: https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks
|
|
{
|
|
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 \
|
|
nvidia-resume.service;
|