Hyprland: Nvidia suspend fix

This commit is contained in:
Harzo 2023-08-01 20:35:20 +02:00
parent 15aa65ada2
commit fc77df7709
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#!/bin/sh
CURDIR="$(dirname "$0")"
. "${CURDIR}/../helpers/root_guard.sh"
root_guard
echo "options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/path/to/tmp-nvidia" > /etc/modprobe.d/nvidia-power-management.conf
#install -m 755 "${CURDIR}/../files/scripts/suspend-hyprland" /usr/local/bin
#install -m 644 "${CURDIR}/../files/services/hyprland-suspend.service" /usr/lib/systemd/system
#install -m 644 "${CURDIR}/../files/services/hyprland-resume.service" /usr/lib/systemd/system
#
#systemctl daemon-reload
#systemctl enable hyprland-suspend.service
#systemctl enable hyprland-resume.service
systemctl enable nvidia-suspend
systemctl enable nvidia-hibernate

View File

@ -36,6 +36,7 @@ polkit-gnome
qqc2-desktop-style
qt5ct
qt6ct
realtime-privileges
seatd
starship
sudo