mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
New drivers don't seem to expose the necessary suspend interface to use `NVreg_PreserveVideoMemoryAllocations`. I explained the issues I experienced on: https://github.com/basecamp/omarchy/discussions/5500 While https://github.com/omacom-io/omarchy-pkgs/pull/84 fixed part of the issue, the default value of `NVreg_PreserveVideoMemoryAllocations` is `2`, which doesn't work.
10 lines
387 B
Bash
Executable File
10 lines
387 B
Bash
Executable File
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
|