我有一个小脚本,每天需要手动执行以将刷新率设置为120Hz。这就是脚本的内容:
#!/bin/bash
xrandr --output HDMI-1 --mode 1920x1080 --rate 120
echo 120Hz Has been Enabled
如何将其设置为默认模式,每次启动操作系统时,系统都会自动将其分配回60Hz。这是我在有关显示器的xrandr输出:
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 298mm
1920x1080 60.00 + 120.00* 100.00 119.88 119.98 99.91 50.00 59.94
3840x2160 30.00 25.00 24.00 29.97 23.98
1280x1024 119.96 75.02 60.02
1440x900 119.85
1280x960 99.99
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 119.99 75.03 60.00
800x600 119.97 99.99 75.00 60.32
720x576 50.00
720x480 60.00 59.94
640x480 119.99 75.00 60.00 59.94
720x400 70.08