如何更改 Linux 显示驱动程序支持的刷新率?

How to change supported Refresh rate in Linux display Driver?

在我的 Linux 帧缓冲驱动程序中,它支持以下分辨率和刷新率。

cat /sys/class/graphics/fb1/modes 下面的命令支持

D:1600x900p-59
D:720x400p-70
V:640x480p-60
V:640x480p-75
V:800x600p-60
V:800x600p-75
V:1024x768p-60
V:1024x768p-75
V:1280x1024p-75
S:1152x864p-75
S:1280x1024p-60
D:1600x900p-59

我的问题是

这些值在驱动程序中被初始化和支持;特别是刷新率(例如:59、70、60)因为我想支持不同的刷新率 D:1600x900p-60 而不是 D:1600x900p-59

谁能帮我解决这个问题?

要选择支持的分辨率中列出的模式,请在终端中键入以下内容:

xrandr -s 1600x900 -r 59

但是由于您想要的模式未列出,请使用它来定义新模式:

xrandr --newmode $(gtf 1600 900 60 | sed -ne 's/"//g;s/ Modeline //p')

然后将其添加到您的列表中(我选择 Custom 作为此模式的名称)

xrandr --addmode Custom 1600x900_60.00

然后是

xrandr -s 1600x900 -r 60