Revert #5519 for now
Encountered issues during testing that prove Nvidia is still a little too shakey to take this as is. See #5554 for more details.
This commit is contained in:
@@ -24,12 +24,6 @@ if [[ -n $NVIDIA ]]; then
|
|||||||
# Configure modprobe for early KMS
|
# Configure modprobe for early KMS
|
||||||
sudo tee /etc/modprobe.d/nvidia.conf <<EOF >/dev/null
|
sudo tee /etc/modprobe.d/nvidia.conf <<EOF >/dev/null
|
||||||
options nvidia_drm modeset=1
|
options nvidia_drm modeset=1
|
||||||
EOF
|
|
||||||
|
|
||||||
# Ensure NVreg_UseKernelSuspendNotifiers is used for hibernation
|
|
||||||
sudo tee -a /etc/modprobe.d/nvidia.conf <<EOF >/dev/null
|
|
||||||
options nvidia NVreg_PreserveVideoMemoryAllocations=0
|
|
||||||
options nvidia NVreg_UseKernelSuspendNotifiers=1
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Configure mkinitcpio for early loading
|
# Configure mkinitcpio for early loading
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
echo "Ensure NVreg_UseKernelSuspendNotifiers is used for hibernation"
|
|
||||||
|
|
||||||
if [[ -f /etc/modprobe.d/nvidia.conf ]] && ! grep -q "NVreg_PreserveVideoMemoryAllocations" /etc/modprobe.d/nvidia.conf; then
|
|
||||||
sudo tee -a /etc/modprobe.d/nvidia.conf <<EOF >/dev/null
|
|
||||||
options nvidia NVreg_PreserveVideoMemoryAllocations=0
|
|
||||||
options nvidia NVreg_UseKernelSuspendNotifiers=1
|
|
||||||
EOF
|
|
||||||
sudo limine-update
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user