This program helps you generate code for Raspberry Pi config.txt for 240p gaming. See: https://forums.libretro.com/t/switchres-basic-minimum-requirements/45472/22

Modeline can be generated with switchres for a specific display, eg.: switchres -v -c 640 480 50 -m pal