xrandr fails to set an available resolution/nvidia-settings sets it without issues

I have a standard FullHD monitor (LG 24MP55) connected via HDMI and GTX 1060.

$ xrandr 
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 290mm
   1920x1080     60.00*+  59.94    50.00    60.05    60.00    50.04  
   1680x1050     59.95  
   1600x900      60.00  
   1440x900      59.89  
   1400x1050     59.98  
   1280x1024     60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      60.00  
   1024x768      60.00  
   800x600       60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94    59.93  
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
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)

$ xrandr -s 1440x900
Size 1440x900 not found in available modes

However I am perfectly able to set this resolution using nvidia-settings and after that xrandr can also set this display resolution.

This looks like a bug to me.

I’m running NVIDIA drivers 415.27 under Fedora 29 (fully updated).

xrandr -s uses the old RandR 1.1 protocol. Does it work if you use the RandR 1.2 protocol?

xrandr --output HDMI-0 --mode 1440x900

It might be interesting to see the output of “xrandr --q1” before and after setting it with nvidia-settings to see how the MetaMode list is changing and how it affects the RandR 1.1 protocol.

Before

xrandr --q1
 SZ:    Pixels          Physical       Refresh
*0   1920 x 1080   ( 513mm x 291mm )   50   51   52   53   54   55   56  *58  
 1   1680 x 1050   ( 449mm x 283mm )   57  
 2   1440 x 900    ( 385mm x 243mm )   59  
 3   1400 x 1050   ( 374mm x 283mm )   60  
 4   1280 x 1024   ( 342mm x 276mm )   61  
 5   1280 x 800    ( 342mm x 216mm )   62  
 6   1280 x 720    ( 342mm x 194mm )   63   64   65  
 7   1152 x 864    ( 308mm x 233mm )   66  
 8   1024 x 768    ( 273mm x 207mm )   67  
 9    800 x 600    ( 213mm x 162mm )   68  
 10   720 x 576    ( 192mm x 155mm )   69  
 11   720 x 480    ( 192mm x 129mm )   70  
 12   640 x 480    ( 171mm x 129mm )   71   72  
 13  1366 x 768    ( 365mm x 207mm )   73  
Current rotation - normal
Current reflection - none
Rotations possible - normal left inverted right 
Reflections possible - X Axis Y Axis

After

xrandr --q1
 SZ:    Pixels          Physical       Refresh
*0   1920 x 1080   ( 513mm x 291mm )  *50   58   52   53   54   55   56  
 1   1680 x 1050   ( 449mm x 283mm )   57  
 2   1600 x 900    ( 427mm x 243mm )   74  
 3   1440 x 900    ( 385mm x 243mm )   59  
 4   1400 x 1050   ( 374mm x 283mm )   60  
 5   1280 x 1024   ( 342mm x 276mm )   61  
 6   1280 x 800    ( 342mm x 216mm )   62  
 7   1280 x 720    ( 342mm x 194mm )   63   64   65  
 8   1152 x 864    ( 308mm x 233mm )   66  
 9   1024 x 768    ( 273mm x 207mm )   67  
 10   800 x 600    ( 213mm x 162mm )   68  
 11   720 x 576    ( 192mm x 155mm )   69  
 12   720 x 480    ( 192mm x 129mm )   70  
 13   640 x 480    ( 171mm x 129mm )   71   72  
 14  1366 x 768    ( 365mm x 207mm )   73  
Current rotation - normal
Current reflection - none
Rotations possible - normal left inverted right 
Reflections possible - X Axis Y Axis

Depending on a day of the week it cannot set either 1440x900 or 1600x900 resolutions.

xrandr --output HDMI-0 --mode 1440x900

Always works.