vpsFree.cz


by snajpa

Sept. 1, 2017, 4:40 p.m.

Maximize, Download, Raw, Embed


#!/bin/bash

service lightdm stop
pkill -9 Xorg
X :0 &
export DISPLAY=:0

spd=$1
echo $spd
if [ -z $spd ]; then
  spd=100
fi

echo Setting GPU fan speed to $spd

for i in $(seq 0 $(( $(nvidia-smi -L | wc -l) - 1 )) ); do 
 nvidia-settings -a [gpu:$i]/GPUFanControlState=1 -a [fan:$i]/GPUTargetFanSpeed=$spd;
done