Home

Batocera on the Sony GDM-C520: finding the right 640x480 mode

June 27, 2026

If you want Batocera to run properly on a Sony GDM-C520, the short answer is simple: use 640x480 at 59.94 Hz. That mode is confirmed by the monitor’s EDID, by Sony’s service manual, and by Xorg on the live system.

A longer answer is useful because it shows why CRT setup still matters today. Modelines used to be essential in Linux and X11, and CRT users still care about exact timing because the wrong mode can mean a bad image or no image at all.

What the monitor reports

Reading the EDID from the GDM-C520 shows that the monitor explicitly supports 640x480 at 59.94 Hz, with a 25.175 MHz pixel clock and 31.469 kHz horizontal frequency. It also reports a GTF (Generalized Timing Formula) range and lists 1024x768i among the supported timings, which confirms that the monitor is comfortable with both standard and interlaced modes.

That matters because it means the 640x480 mode is not a guess or a compatibility hack. It is a native, documented timing that the monitor itself advertises.

What Sony documents

Sony’s service manual gives the same answer. For the 640x480 production mode, it lists a 25.175 MHz clock, 59.940 Hz vertical frequency, 31.469 kHz horizontal frequency, and negative sync polarity. That timing produces the familiar VESA-style modeline:

ModeLine "640x480" 25.175 640 656 752 800 480 490 492 525 -hsync -vsync

The manual is useful because it gives the exact timing structure, not just the resolution name. In other words, it explains why the mode works rather than just stating that it does.

What Batocera actually needed

The practical surprise was that Batocera did not need a custom xrandr modeline at all. Batocera’s CRT documentation describes the traditional xrandr approach for setting modes, but it also shows that simpler resolution selection is often enough when the mode already exists in the display’s supported list.

The key setting was:

es.resolution=640x480.59.94

That pinned the system to the exact refresh rate Xorg reported on this machine, instead of letting it choose a different safe mode such as 85 Hz. This was the part that made the setup predictable and repeatable.

Why this is worth sharing

This is worth writing up because it solves a real niche problem in a clean way. Anyone using Batocera with a PC CRT like the GDM-C520 can benefit from a worked example that starts with EDID, checks the service manual, and ends with a working configuration.

It is also a good reminder that the simplest solution is often the best one. In this case, the modeline math was useful as verification, but the actual fix was just a correctly specified Batocera resolution string.

Final working setup

If someone wants the short version, this is the practical takeaway:

es.resolution=640x480.59.94

That gives the Sony GDM-C520 the mode it was designed to run, without extra timing tricks or custom X11 modelines.

For the full investigation — EDID output, service manual timing tables, derived modelines for all four documented modes, and the GTF discovery — see Reviving the Modeline: Batocera Linux and the Sony GDM-C520.

References