Adding resolutions in videomodes.conf - ZFEbHVUE/Batocera-CRT-Script GitHub Wiki

How to Add and Test Resolutions on Batocera for CRT Use

This guide will walk you through adding and testing the resolution 384x224@60Hz on your CRT setup.

Step 1: Test the Resolution

  1. Open the terminal and type the following command to test the resolution:

    switchres 384 224 60 -i switchres.ini -c
    

    Alternatively, you can use the -f (force) command to specify the resolution name:

    switchres 384 224 60 -f 384x224@60 -i switchres.ini -c
    
  2. After running the command, you should see an output similar to this:

    Switchres: Calculating best video mode for [email protected] orientation: normal  
    Switchres: Modeline "384x224_50 15.600000KHz 50.000000Hz" 7.378800 384 395 430 473 224 259 261 312   -hsync -vsync  
    

    If the output appears without errors, this resolution is compatible with your monitor profile.


Step 2: Add the Resolution to the Available Video Modes

  1. Open the following files in a text editor:

    • /userdata/system/videomodes.conf
    • /userdata/system/videomodes.conf.bak
  2. Understand the format used in these files by reviewing an existing resolution entry. For example:

    240x240.60.00001:240x240 1.0:0:0 15KHz 60Hz  
    
    • First section: The resolution (240x240.60)
    • Second section: A unique number in the list (00001)
    • Third section: The text displayed in EmulationStation and the geometry adjustments read by switchres (240x240 1.0:0:0 15KHz 60Hz)
  3. Add the new resolution entry at the bottom of both files. Use the next sequential number based on the last entry in the file. For instance:

    384x224.60.00054:384x224 1.0:0:0 15KHz 60Hz  
    

    In this example:

    • The resolution is 384x224.60
    • The unique number is 00054 because the previous entry ended with 53
  4. Save the changes to both videomodes.conf and videomodes.conf.bak.


Once you’ve saved the files, the resolution 384x224@60Hz will be added to the system and ready for use.