CRT Switchres on Ubuntu 20.04+GTX1050 - RA v.1.9.0

Greetings peeps. I’ve discovered the lovely CRT switchres functionality and just so happened to acquire an old HP CRT monitor (early 2000s 31KHz). I’m running RA on Ubuntu 20.04 and using a GTX 1050 with output via DP to a VGA converter.

I’ve searched high and low for guides on getting my setup to run games at their native resolutions, yet I can’t for the life of me get RA to switch and output properly. Most guides I’ve seen focus on Windows+CRT Emu Driver setups.

Given my setu I understand I somehow need to expose different super resolutions to my 1050, and so far I’ve attempted to use an .xprofile with xrandr commands as follows: indent preformatted text by 4 spaces #!/bin/sh xrandr --newmode “2560x480_60.00” 95.75 2560 2632 2880 3200 480 483 493 500 -hsync +vsync xrandr --newmode “2560x192_60.00” 38.50 2560 2632 2880 3200 192 195 205 208 -hsync +vsync xrandr --newmode “2560x200_60.00” 40.25 2560 2632 2880 3200 200 203 213 216 -hsync +vsync xrandr --newmode “2560x240_60.00” 48.00 2560 2632 2880 3200 240 243 253 256 -hsync +vsync xrandr --newmode “2560x224_60.00” 39.14 2560 2456 2680 2800 224 225 228 233 -HSync +Vsync xrandr --newmode “2560x237_60.00” 41.80 2560 2472 2696 2832 237 238 241 246 -HSync +Vsync xrandr --newmode “2560x256_50.00” 36.54 2560 2440 2664 2768 256 257 260 264 -HSync +Vsync xrandr --newmode “2560x254_55.00” 40.73 2560 2464 2688 2816 254 255 258 263 -HSync +Vsync xrandr --newmode “2560x448_60.00” 88.20 2560 2608 2864 3168 448 449 452 464 -HSync +Vsync

xrandr --addmode DP-0 “2560x480_60.00” xrandr --addmode DP-0 “2560x192_60.00” xrandr --addmode DP-0 “2560x200_60.00” xrandr --addmode DP-0 “2560x240_60.00” xrandr --addmode DP-0 “2560x224_60.00” xrandr --addmode DP-0 “2560x237_60.00” xrandr --addmode DP-0 “2560x256_50.00” xrandr --addmode DP-0 “2560x254_55.00” xrandr --addmode DP-0 “2560x448_60.00” indent preformatted text by 4 spaces

I also tried setting up RA to use NATIVE, DYNAMIC, and the 2560 super res options to no avail. I always make sure the switchres option is on and set my RA to exclusive fullscreen and rgui. Any time I try to run a game (mostly testing with Beetle PCE) I usually get the following crash errors: indent preformatted text by 4 spaces X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 19 (RRDeleteOutputMode) Serial number of failed request: 108 Current serial number in output stream: 110 indent preformatted text by 4 spaces

Can anyone help? Thanks.

In linux, you don’t need to pre-generate the modelines. It’ll generate them dynamically.

Are you sure you’re running in an X session instead of, say, Wayland?

@hunterk I ran the commad echo $XDG_SESSION_TYPE and it returned x11

I deleted my .xprofile and rebooted my machine. I also deleted my retroarch config and reset necessary config fields to get my emulators working. I then turned on switchres again and I keep seeing this error when running a game: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 19 (RRDeleteOutputMode) Serial number of failed request: 328 Current serial number in output stream: 330

@hunterk Thanks for the clarification! I’ll get rid of that stuff then. Also, now that you mention it I’m not sure about the X session vs. Wayland question. I’ll double check (sorry, I’m a newb with Linux in general).

I’m not sure why my replies posted out of order, so bumping my actual most recent response here (sorry please modify or delete if this is inappropriate):

@hunterk I ran the commad echo $XDG_SESSION_TYPE and it returned x11.

I deleted my .xprofile and rebooted my machine. I also deleted my retroarch config and reset necessary config fields to get my emulators working. I then turned on switchres again and I keep seeing this error when running a game: X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 19 (RRDeleteOutputMode) Serial number of failed request: 328 Current serial number in output stream: 330

1 Like

Most of the these modelines wouldn’t work in the first place if switchres needed them because you need 120/100 Hz not 60/50 Hz for 240/288p on a 31 kHz monitor.

You can still use RA with custom resolutions without switchres if for some reason it’s the root of the problem. To see if it is, I’d try to setup a modeline first in the terminal and see if you can get proper output.

1 Like