diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-07-28 16:46:55 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-07-28 16:46:55 +0200 |
commit | aabab6dd872fb7dc9d917b81011bc04e5fe2b185 (patch) | |
tree | fb33cc9e74c9356f2dde2b638f86500f0d56cd1c /extra | |
parent | 15a7c2f1b038be695e1e40f4dfdba180fda6d525 (diff) |
Move additional scripts to 'extra' directory
Diffstat (limited to 'extra')
-rw-r--r-- | extra/88-gsr-coolbits.conf | 5 | ||||
-rw-r--r-- | extra/gsr-nvidia.conf | 1 | ||||
-rwxr-xr-x | extra/install_coolbits.sh | 10 | ||||
-rwxr-xr-x | extra/install_preserve_video_memory.sh | 8 |
4 files changed, 24 insertions, 0 deletions
diff --git a/extra/88-gsr-coolbits.conf b/extra/88-gsr-coolbits.conf new file mode 100644 index 0000000..be665f1 --- /dev/null +++ b/extra/88-gsr-coolbits.conf @@ -0,0 +1,5 @@ +Section "Device" + Identifier "Device0" + Driver "nvidia" + Option "Coolbits" "12" +EndSection diff --git a/extra/gsr-nvidia.conf b/extra/gsr-nvidia.conf new file mode 100644 index 0000000..10cbf7d --- /dev/null +++ b/extra/gsr-nvidia.conf @@ -0,0 +1 @@ +options nvidia NVreg_PreserveVideoMemoryAllocations=1 diff --git a/extra/install_coolbits.sh b/extra/install_coolbits.sh new file mode 100755 index 0000000..053e8ab --- /dev/null +++ b/extra/install_coolbits.sh @@ -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 diff --git a/extra/install_preserve_video_memory.sh b/extra/install_preserve_video_memory.sh new file mode 100755 index 0000000..c5cf658 --- /dev/null +++ b/extra/install_preserve_video_memory.sh @@ -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 |