Custom Resolution

I love playing game on a stretched resolution like 1680x1050. I just swapped from windows to Endeavouros with Gnome 42. I could configure the Resolution to 1680x1050 but i can’t set the Refresh to 240.

xrandr:

DP-4 connected primary 1680x1050+1080+1080 (normal left inverted right x axis y axis) 600mm x 340mm

1920x1080 60.00 + 239.96 143.99 119.98 59.94 50.00

1680x1050 59.95*

1440x900 59.89

I’ve tried to set a new custom resolution with the following commands:

$ cvt 1680 1050 240

# 1680x1050 239.81 Hz (CVT) hsync: 291.14 kHz; pclk: 684.75 MHz

Modeline "1680x1050_240.00" 684.75 1680 1832 2016 2352 1050 1053 1059 1214 -hsync +vsync

$ xrandr --newmode "1680x1050_240.00" 684.75 1680 1832 2016 2352 1050 1053 1059 1214 -hsync +vsync

But i am getting the following error:

X Error of failed request: BadName (named color or font does not exist)

Major opcode of failed request: 140 (RANDR)

Minor opcode of failed request: 16 (RRCreateMode)

Serial number of failed request: 47

Current serial number in output stream: 47

Tried to generate other Modelines for 1680x1050_100Hz, 1680x1050_120… etc but non did work.

Using a RTX2080ti with the following driver:

$ nvidia-smi

Thu Jun 9 12:29:45 2022

+-----------------------------------------------------------------------------+

| NVIDIA-SMI 515.48.07 Driver Version: 515.48.07 CUDA Version: 11.7 |

|-------------------------------+----------------------+----------------------+

| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |

| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |

| | | MIG M. |

|===============================+======================+======================|

| 0 NVIDIA GeForce ... Off | 00000000:0A:00.0 On | N/A |

| 0% 35C P0 49W / 300W | 480MiB / 11264MiB | 1% Default |

| | | N/A |

+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+

| Processes: |

| GPU GI CI PID Type Process name GPU Memory |

| ID ID Usage |

|=============================================================================|

| 0 N/A N/A 1067 G /usr/lib/Xorg 193MiB |

| 0 N/A N/A 1129 G /usr/bin/gnome-shell 104MiB |

| 0 N/A N/A 2883 G gnome-control-center 6MiB |

| 0 N/A N/A 6001 G /usr/lib/firefox/firefox 152MiB |

+-----------------------------------------------------------------------------+

Does your panel support that combination?

Hello, and welcome to the forum!
Also, did you try using Wayland instead of Xorg yet?

Wayland and Nvidia is still not a great combination.

Thanks, I wasn’t aware of this.

it did on windows

Hi, i did not because heard that it isnt good with nvidia

in the mean while i could create the xrandr --newmode and it gets listed via xrandr below the usb-c:

$ xrandr
Screen 0: minimum 8 x 8, current 3000 x 2130, 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 1080x1920+0+210 left (normal left inverted right x axis y axis) 597mm x 336mm
   3840x2160     60.00 +  59.94    50.00    30.00    29.97    25.00    23.98  
   1920x1080     60.00*   59.94    50.00    29.97    25.00    23.98  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     75.02    60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      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 connected 1920x1080+1080+0 (normal left inverted right x axis y axis) 598mm x 336mm
   3840x2160     60.00 + 119.91    59.94    50.00    30.00    29.97    25.00    23.98  
   2560x1440    143.63   120.00  
   1920x2160    143.84  
   1920x1080    143.56*  119.88    60.00    59.94    50.00  
   1680x1050     59.95  
   1440x900      59.89  
   1280x1024     60.02  
   1280x960      60.00  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1024x768      60.00  
   800x600       75.00    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94    59.93  
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 connected primary 1680x1050+1080+1080 (normal left inverted right x axis y axis) 600mm x 340mm
   1920x1080     60.00 + 239.96   143.99   119.98    59.94    50.00  
   1680x1050     59.95* 
   1440x900      59.89  
   1280x1024     60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      70.07    60.00  
   800x600       75.00    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       59.94    59.93  
DP-5 disconnected (normal left inverted right x axis y axis)
USB-C-0 disconnected (normal left inverted right x axis y axis)
  1680x1050_240.00 (0x29e) 684.750MHz -HSync +VSync
        h: width  1680 start 1832 end 2016 total 2352 skew    0 clock 291.14KHz
        v: height 1050 start 1053 end 1059 total 1214           clock 239.81Hz

but when i try to add it to the output DP-4 the following happens:

$ xrandr --addmode DP-4 1680x1050_240.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:  47
  Current serial number in output stream:  48

Also tried the following:

$ xrandr --output DP-4 --mode 1680x1050 --rate 240

but that just sets the Monitor to 1680x1050 with rate 60.

Any ideas how i could archive 1680x1050 with 240hz?

For everyone who runs into the problem:
If you’re trying to retain the high refresh rate at 1680x1050 resolution on a 1080p monitor, you might consider doing what I do, and use --scale-from 1680x1050 for your xrandr command.

Ie, “–output DisplayPort-0 --mode 1920x1080 --scale-from 1680x1050 -r 240”.

That high refresh rate only kicks in at higher resolutions. So make the monitor think it’s using a higher res, but scale it down to what you actually want.

2 Likes

So you now may mark your own last post as solution for this thread!

:sweat_smile:

Thx mate, im pretty new to such forums :smiley:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.