Compare commits

...

2 Commits

Author SHA1 Message Date
Harzo c7e50d4743 Make patch-script.sh executable 2023-08-01 20:36:07 +02:00
Harzo fc77df7709 Hyprland: Nvidia suspend fix 2023-08-01 20:35:20 +02:00
3 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

0
.local/share/dotfiles/extra/patch-scripts.sh Normal file → Executable file
View File

View File

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