You are not logged in.
I would like to change my refresh rate of my monitor to 120, or rather 119.88. Anyways, it works at first, but when I go into a full screen game, the refresh rate reverts back to 60. I can change it to windowed mode and it works, but that is a gross compromise. Anyone know how to fix this?
If this helps:
[pinged@pinged:~]$ xrandr (05-26 01:04)
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 520mm x 290mm
1920x1080 60.00 + 120.00 119.88* 100.00 60.00 59.94 50.00
1680x1050 119.99 59.95
1440x900 119.85 59.89
1280x1024 119.96 75.02 60.02
1280x720 119.88 100.00 59.94 50.00
1024x768 119.99 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
720x576 50.00
720x480 59.94
640x480 75.00 72.81 59.94 59.93
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
1920x1080_120.00 (0x202) 172.510MHz -HSync +VSync
h: width 1920 start 2040 end 2248 total 2576 skew 0 clock 66.97KHz
v: height 1080 start 1081 end 1084 total 1118 clock 59.90Hz
[pinged@pinged:~][130]$ xrandr --output HDMI-0 --mode 1920x1080 --rate 119.88
Last edited by pinged (2020-05-27 00:16:15)
Offline
I don't know if there's a way to block programs from setting their own fullscreen resolution. The way I "solve" this problem is to simply never use the fullscreen setting that games have in their graphics settings. For games that can't create a borderless window themselves in their graphics settings, I let them start in a window and then press the fullscreen hotkey of my window manager to force their window into filling the screen.
Something else you can try is, you can change the default refresh rate for 1920x1080 away from the current 60Hz and to 120Hz in an Xorg config file. Maybe when the game then tries to set 1920x1080 resolution, it'll choose 120Hz instead of 60Hz like it does now.
Another thing I remembered right now: for Wine I've seen a "fake fullscreen" patch. It fools Windows programs into thinking they've set a fullscreen resolution but instead Wine is not changing anything about your desktop's resolution/refresh. There's a "wine-tkg" package for Arch somewhere that contains that patch.
And another thing: there's a "gamescope" window manager from Valve somewhere on github.com. It runs nested inside your normal desktop, it does not replace your current window manager. You add it to the command line for your game as a wrapper. It will prevent the game from setting its own resolution.
About that Xorg config thing I mentioned earlier, that kind of file looks like this:
Section "Monitor"
Identifier "HDMI-0"
# 1920x1080 @ 120.000 Hz Reduced Blank (CVT) field rate 119.880 Hz; hsync: 137.143 kHz; pclk: 274.29 MHz
Modeline "1920x1080_120.00_rb2" 274.29 1920 1928 1960 2000 1080 1130 1138 1144 +hsync -vsync
Option "PreferredMode" "1920x1080_120.00_rb2"
EndSection
This file works on Intel and AMD. I don't know if it works with the Nvidia driver.
I created the modeline for the config with a tool named "cvt12" that's in the AUR, like this:
$ cvt12 1920 1080 120 -b -o
# 1920x1080 @ 120.000 Hz Reduced Blank (CVT) field rate 119.880 Hz; hsync: 137.143 kHz; pclk: 274.29 MHz
Modeline "1920x1080_120.00_rb2" 274.29 1920 1928 1960 2000 1080 1130 1138 1144 +hsync -vsync
Last edited by Ropid (2020-05-26 16:24:06)
Offline
Something else you can try is, you can change the default refresh rate for 1920x1080 away from the current 60Hz and to 120Hz in an Xorg config file. Maybe when the game then tries to set 1920x1080 resolution, it'll choose 120Hz instead of 60Hz like it does now.
About that Xorg config thing I mentioned earlier, that kind of file looks like this:
Section "Monitor" Identifier "HDMI-0" # 1920x1080 @ 120.000 Hz Reduced Blank (CVT) field rate 119.880 Hz; hsync: 137.143 kHz; pclk: 274.29 MHz Modeline "1920x1080_120.00_rb2" 274.29 1920 1928 1960 2000 1080 1130 1138 1144 +hsync -vsync Option "PreferredMode" "1920x1080_120.00_rb2" EndSection
This file works on Intel and AMD. I don't know if it works with the Nvidia driver.
I created the modeline for the config with a tool named "cvt12" that's in the AUR, like this:
$ cvt12 1920 1080 120 -b -o # 1920x1080 @ 120.000 Hz Reduced Blank (CVT) field rate 119.880 Hz; hsync: 137.143 kHz; pclk: 274.29 MHz Modeline "1920x1080_120.00_rb2" 274.29 1920 1928 1960 2000 1080 1130 1138 1144 +hsync -vsync
This worked! Thank you very much!
Offline