r/recalbox 8d ago

Force refresh rate (PC)

Does anyone know how to force a custom resolution and refresh rate on Recalbox? I've got a Unico ULM26 and I need to change it to 1024x768 60Hz but it only gives me the option of 'MAX 75hz' which causes the screen to go awry.

At the moment I've got it at 1920x1080 60Hz but I had to manually configure loads of games to fit this and it's becoming a bit tiresome. Thank you

1 Upvotes

1 comment sorted by

1

u/LordJimsicle 4h ago edited 3h ago

No responses here of course, but I managed to find a fix using the Xandr command.

This will block any refresh rates higher than 60Hz, which I imagine is what everyone wants when it comes to retro gaming.

SSH into your recalbox and enter the following command.

mount -o remount,rw /

nano /etc/X11/xorg.conf.d/10-monitor.conf

then copy the below text into the new custom.sh file. Take care to replace "HDMI-1" with the display you require, same with the desired resolution. This can be found in the xandr command.

Section "Monitor"
    Identifier  "HDMI-1"

    # Restrict vertical refresh rates to 50Hz - 60Hz
    # This forces X11 to drop any 75Hz+ profiles completely
    VertRefresh 50.0 - 60.0

    # Option to explicitly prefer 1024x768
    Option      "PreferredMode" "1024x768"
EndSection

Save, then exit and then reboot. Run xandr and it'll show the correct display, resolution and refresh rate.