How to adjust the Geometry manually - ZFEbHVUE/Batocera-CRT-Script GitHub Wiki
How to Adjust the Geometry Manually
Note: If you only use the CRT for Batocera, it is recommended to adjust the horizontal position using the service menu first.
Step 1: Open the Geometry Tool
From SSH, type one of the following commands depending on your resolution:
DISPLAY=:0 geometry 640 480 60
or
DISPLAY=:0 geometry 320 240 60
Use a connected keyboard to adjust the settings.
- Switch between different grids using the Tab key.
- When done, press Enter.
The tool will output something like this in the terminal:
Final geometry: 1.0:4:-2
Final crt_range: 15625.0-16200.0,49.5-65.0,1.665,4.693,8.326,0.159,0.191,1.020,0,0,192,288,448,576
switchres.ini
Step 2: Update Edit the switchres.ini
file to use the custom monitor profile.
-
Change the monitor profile from
arcade_15
tocustom
:Before:
monitor arcade_15
After:
monitor custom
-
Replace the
crt_range0
line:Before:
crt_range0 auto
After:
crt_range0 15625.0-16200.0,49.5-65.0,1.665,4.693,8.326,0.159,0.191,1.020,0,0,192,288,448,576
-
Save the
switchres.ini
file. -
Save the changes outside the userdata folder:
batocera-save-overlay
-
Reboot the system:
reboot
Generate a New Custom EDID File for Your Monitor Profile (Optional)
Step 1: Create the EDID File
Run the following command:
switchres 641 480 60 -f 641x480@60 -i switchres.ini -e
This will generate a file named custom.bin
.
Step 2: Make the Boot Partition Writable
mount -o remount,rw /boot
Step 3: Copy the EDID File
Copy custom.bin
to the folder:
/lib/firmware/edid/
Make sure the file has the correct permissions (0600
).
-
Using WinSCP:
- Right-click the file, go to Properties, and verify the permissions.
-
Or set permissions via SSH:
chmod 600 /lib/firmware/edid/custom.bin
syslinux.cfg
Files
Step 4: Edit the Open the following files in Notepad++:
/boot/boot/
/boot/boot/syslinux/
/boot/EFI/
/boot/EFI/BOOT/
You should now have 4 files open.
Step 5: Update EDID File Path
In each file, locate the line:
edid/arcade_15.bin
Change it to:
edid/custom.bin
Step 6: Save Changes and Reboot
-
Save the changes:
batocera-save-overlay
-
Reboot the system:
reboot