Move additional scripts to 'extra' directory

This commit is contained in:
dec05eba
2023-07-28 16:46:55 +02:00
parent 15a7c2f1b0
commit aabab6dd87
5 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
Section "Device"
Identifier "Device0"
Driver "nvidia"
Option "Coolbits" "12"
EndSection

1
extra/gsr-nvidia.conf Normal file
View File

@@ -0,0 +1 @@
options nvidia NVreg_PreserveVideoMemoryAllocations=1

10
extra/install_coolbits.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
script_dir=$(dirname "$0")
cd "$script_dir"
[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
for xorg_conf_d in "/etc/X11/xorg.conf.d" "/usr/share/X11/xorg.conf.d" "/usr/lib/X11/xorg.conf.d"; do
[ -d "$xorg_conf_d" ] && install -Dm644 "88-gsr-coolbits.conf" "$xorg_conf_d/88-gsr-coolbits.conf" && exit 0
done

View File

@@ -0,0 +1,8 @@
#!/bin/sh
script_dir=$(dirname "$0")
cd "$script_dir"
[ $(id -u) -ne 0 ] && echo "You need root privileges to run the install script" && exit 1
install -Dm644 gsr-nvidia.conf /etc/modprobe.d/gsr-nvidia.conf