I recently installed Ubuntu 22.04.1 LTS on my laptop, which has an NVIDIA graphics card. However, I am unable to set a custom refresh rate for my monitor, which is capable of 100 Hz but is currently locked to 60.2 Hz.
Here's what I have tried so far:
NVIDIA X Server Settings: I tried using the NVIDIA X Server Settings tool to set a custom refresh rate, but the "Attributes" section was not visible in the tool, even after enabling advanced settings.
xrandr: I tried using the xrandr command to add a new mode with a refresh rate of 100 Hz:
I ran cvt 1920 1080 100
to calculate the stuff needed for my new refresh rate mode. this is what it returned:
# 1920x1080 99.90 Hz (CVT) hsync: 114.58 kHz; pclk: 302.50 MHz
Modeline "1920x1080_100.00" 302.50 1920 2072 2280 2640 1080 1083 1088 1147 -hsync +vsync
I then tried running
xrandr --newmode "1920x1080_100.00" 302.50 1920 2072 2280 2640 1080 1083 1088 1147 -hsync +vsync
but got the folllowing error:
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 37
Current serial number in output stream: 37
I tried running xrandr --newmode "1920x1080_100.00" 302.50 1920 -hsync +vsync
but got:
xrandr: failed to parse '1920x1080_100.00' as a mode specification
Try 'xrandr --help' for more information.
I don't know what to do. I followed this answer: https://askubuntu.com/a/59626/1664901 but nothing worked.
How do I know my monitor is capable of 100hz? I used 100hz on Micro**** Wind*ws for a long time and it worked.
In gnome settings there is only one option for the refresh rate: 60.2