NVIDIA显卡调优
作者Lou Xiao创建时间2020-04-20 17:24:00更新时间2020-04-20 18:26:00
调整风扇转速shell脚本
1.双击鼠标左键复制此行;2.单击复制所有代码。
1
#!/bin/bash
2
3
cat > /etc/X11/dell.edid <<EOF
4
00 ff ff ff ff ff ff 00 10 ac 7e 40 4c 54 41 41
5
15 17 01 03 80 3c 22 78 ea 4b b5 a7 56 4b a3 25
6
0a 50 54 a5 4b 00 81 00 b3 00 d1 00 71 4f a9 40
7
81 80 d1 c0 01 01 56 5e 00 a0 a0 a0 29 50 30 20
8
35 00 55 50 21 00 00 1a 00 00 00 ff 00 47 4b 30
9
4b 44 33 35 4f 41 41 54 4c 0a 00 00 00 fc 00 44
10
45 4c 4c 20 55 32 37 31 33 48 4d 0a 00 00 00 fd
11
00 31 56 1d 71 1c 00 0a 20 20 20 20 20 20 00 6f
12
EOF
13
14
nvidia-xconfig -a \
15
--allow-empty-initial-configuration \
16
--use-display-device="DFP-0" \
17
--connected-monitor="DFP-0" \
18
--custom-edid="DFP-0:/etc/X11/dell.edid" \
19
--enable-all-gpus \
20
--cool-bits=4
21
22
X :1 &>>/dev/null &
23
24
export DISPLAY=:1
25
26
nvidia-smi -pm 1
27
28
for I in {0..1};do
29
echo $I
30
nvidia-settings -a "[gpu:${I}]/GPUFanControlState=1" -a "[fan:${I}]/GPUTargetFanSpeed=100"
31
done
32
killall X
33
34
echo 'Done'
文章目录