Hello. I’ve recently switched to Linux and have been trying to reproduce a custom resolution I was able to use on Windows, which is 1920x1080@74Hz on a monitor that is normally 60Hz. This resolution is not present in the monitor’s EDID.
I’m using GNOME with nvidia drivers.
I first tried to use xrandr
as follows:
~ cvt 1920 1080 74
# 1920x1080 73.95 Hz (CVT) hsync: 83.49 kHz; pclk: 217.75 MHz
Modeline "1920x1080_74.00" 217.75 1920 2064 2264 2608 1080 1083 1088 1129 -hsync +vsync
~ xrandr --newmode "1920x1080_74.00" 217.75 1920 2064 2264 2608 1080 1083 1088 1129 -hsync +vsync
~ xrandr --addmode HDMI-0 "1920x1080_74.00"
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 37
Current serial number in output stream: 38
then, given the error, I tried following the steps in the Arch Wiki instead, but applying them to /etc/X11/mhwd.d/nvidia.conf
instead of /etc/X11/xorg.conf
, since that seems to be the one Manjaro uses by default.
After making the necessary changes, this is my nvidia.conf
:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 510.47.03
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "LG Electronics 23MP55"
HorizSync 30.0 - 86.0
VertRefresh 56.0 - 75.0
ModeLine "1920x1080_74.00" 217.75 1920 2064 2264 2608 1080 1083 1088 1129 -hsync +vsync
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "NVIDIA GeForce GTX 1660 SUPER"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "ModeValidation" "NoVesaModes, NoXServerModes"
Option "ExactModeTimingsDVI" "True"
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-1"
Option "metamodes" "nvidia-auto-select +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
Modes "1920x1080_74.00"
EndSubSection
EndSection
note that besides what I could see in the arch wiki, I also changed
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 61.0
to
HorizSync 30.0 - 85.0
VertRefresh 56.0 - 75.0
just to be safe.
After a reboot, my display uses the default 60Hz and no new resolutions/rates show up in either nvidia-settings
or GNOME’s settings panel
Checking back nvidia.conf
, I can see that
SubSection "Display"
Depth 24
Modes "1920x1080_74.00"
EndSubSection
went back to
SubSection "Display"
Depth 24
EndSubSection
and
HorizSync 30.0 - 85.0
VertRefresh 56.0 - 75.0
went back to
HorizSync 30.0 - 83.0
VertRefresh 56.0 - 61.0
I suspect that after the reboot, the system is reading the EDID and invalidating the custom resolution since it is outside of what it considers that the monitor can push, but Nvidia’s Control Panel in Windows had no issues with this.
Thanks a lot for any help in solving this issue
Note: I would like to link to the section of the Arch Wiki I referenced, but it seems like I cannot create posts containing links yet