From fc77df77094b0121e2c39d8ef82ab5009016d964 Mon Sep 17 00:00:00 2001 From: Harzo Date: Tue, 1 Aug 2023 20:35:20 +0200 Subject: [PATCH] Hyprland: Nvidia suspend fix --- .../share/dotfiles/extra/hyprland-nvidia-fix.sh | 17 +++++++++++++++++ .local/share/dotfiles/pkglist-add | 1 + 2 files changed, 18 insertions(+) create mode 100755 .local/share/dotfiles/extra/hyprland-nvidia-fix.sh diff --git a/.local/share/dotfiles/extra/hyprland-nvidia-fix.sh b/.local/share/dotfiles/extra/hyprland-nvidia-fix.sh new file mode 100755 index 0000000..a99500f --- /dev/null +++ b/.local/share/dotfiles/extra/hyprland-nvidia-fix.sh @@ -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 diff --git a/.local/share/dotfiles/pkglist-add b/.local/share/dotfiles/pkglist-add index 0dffb86..0fe0c49 100644 --- a/.local/share/dotfiles/pkglist-add +++ b/.local/share/dotfiles/pkglist-add @@ -36,6 +36,7 @@ polkit-gnome qqc2-desktop-style qt5ct qt6ct +realtime-privileges seatd starship sudo