How to do custom (non EDID) resolution with nvidia BUT works with nv?
by IsaacKuo from LinuxQuestions.org on (#5J0H2)
I have a Spectre 4K TV which only reports up to 30.00fps on EDID. This means that by default, xrandr only lets me get up to 3840x2160_30.00 with both nv and nvidia.
However, with nv I can easily add a custom modeline using xrandr to get 60fps - 3840x2160_60. The problem is that using nv inevitably crashes my computer, usually within a few minutes.
So, I bit the bullet and installed nvidia. But now I can't add a custom modeline! I get this:
Code:kuo@cinderella:~$ xrandr --newmode "3840x2160ijk" 533.00 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync
kuo@cinderella:~$ xrandr --addmode DP-1 "3840x2160ijk"
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: 31
Current serial number in output stream: 32Searching around, I see suggested solutions involving setting "AllowNonEdidModes" and perhaps a slew of other settings to eliminate nvidia's draconian modeline checking or something. For example:
https://forums.developer.nvidia.com/...hat-i-do/27743
"If you want to use your own modes, the ModeValidation override you want is AllowNonEdidModes, not NoEdidModes (which has no effect since there's no EDID)."
However, these suggestions all seem to involve editing xorg.conf, which does not exist on my system (Debian 10 Buster amd64). There are a bunch of files and directories in /etc/X11, but no xorg.conf.
I've been trying to figure out if there's a way to alter these settings with xrandr or nvidia-settings, but I haven't had any luck yet.
Any ideas?


However, with nv I can easily add a custom modeline using xrandr to get 60fps - 3840x2160_60. The problem is that using nv inevitably crashes my computer, usually within a few minutes.
So, I bit the bullet and installed nvidia. But now I can't add a custom modeline! I get this:
Code:kuo@cinderella:~$ xrandr --newmode "3840x2160ijk" 533.00 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync
kuo@cinderella:~$ xrandr --addmode DP-1 "3840x2160ijk"
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: 31
Current serial number in output stream: 32Searching around, I see suggested solutions involving setting "AllowNonEdidModes" and perhaps a slew of other settings to eliminate nvidia's draconian modeline checking or something. For example:
https://forums.developer.nvidia.com/...hat-i-do/27743
"If you want to use your own modes, the ModeValidation override you want is AllowNonEdidModes, not NoEdidModes (which has no effect since there's no EDID)."
However, these suggestions all seem to involve editing xorg.conf, which does not exist on my system (Debian 10 Buster amd64). There are a bunch of files and directories in /etc/X11, but no xorg.conf.
I've been trying to figure out if there's a way to alter these settings with xrandr or nvidia-settings, but I haven't had any luck yet.
Any ideas?