From 5d0e1e14e32d94ba1be7df7f116e094f339904de Mon Sep 17 00:00:00 2001 From: iislamov Date: Sat, 13 Apr 2024 11:51:17 +0300 Subject: [PATCH] small fixes for nvidia.sh and xdph.sh --- install-scripts/nvidia.sh | 5 ++++- install-scripts/xdph.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/install-scripts/nvidia.sh b/install-scripts/nvidia.sh index b40edc7..1d6eb5f 100755 --- a/install-scripts/nvidia.sh +++ b/install-scripts/nvidia.sh @@ -104,7 +104,10 @@ printf "${YELLOW} nvidia-stuff to /etc/default/grub..." # Define the configuration file and the line to add config_file="/etc/modprobe.d/nvidia.conf" - line_to_add="options nvidia-drm modeset=1" + line_to_add=""" + options nvidia-drm modeset=1 + options nvidia NVreg_PreserveVideoMemoryAllocations=1 + """ # Check if the config file exists if [ ! -e "$config_file" ]; then diff --git a/install-scripts/xdph.sh b/install-scripts/xdph.sh index e68d6f7..694caf1 100755 --- a/install-scripts/xdph.sh +++ b/install-scripts/xdph.sh @@ -35,7 +35,7 @@ fi # Clone and build xdg-desktop-portal-hyprland printf "${NOTE} Installing xdg-desktop-portal-hyprland...\n" -if git clone --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland; then +if git clone --branch v1.3.0 --recursive https://github.com/hyprwm/xdg-desktop-portal-hyprland; then cd xdg-desktop-portal-hyprland || exit 1 make all if sudo make install 2>&1 | tee -a "$MLOG" ; then