Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
batocera-and-crt [2023/08/13 05:46] – formatting fixes ataribatocera-and-crt [2025/07/23 14:06] (current) – [Connecting the PC to a CRT display] rion
Line 1: Line 1:
 ====== Batocera native CRT output ====== ====== Batocera native CRT output ======
  
-<WRAP center round info+<WRAP center round alert
-This guide only applies to Batocera **v32** on the x86_64 and RPi buildsFor **v30**/**v31** and on x86, refer to the [[:batocera-and-crt-old|legacy guide]]. This article is also not for the faint of heartWord-count: about 9k.+🚫 **This page is outdated and should no longer be used.**   
 +Please refer to the **[[https://github.com/ZFEbHVUE/Batocera-CRT-Script/wiki|Batocera CRT Script – Official Wiki]]** instead. 
 + 
 +🛠 An **automated CRT setup script** is now available and should be used to configure native CRT output on the latest x86_64 Batocera builds. 
 + 
 +⚠️ Only refer to this page if you’re troubleshooting legacy setups.   
 +For all current installations, follow the GitHub Wiki and script instructions.
 </WRAP> </WRAP>
  
-<WRAP center round tip+ 
-[[https://github.com/ZFEbHVUE/Build-CRT-15KHz-Batocera-V35|An automated script]] has been developed which can be used to configure and activate CRT capabilities in x86_64 Batocera versions between **v32** and **v36**. Use it after reading through this guide at least once to understand its usage.+<WRAP center round info
 +This guide only applies to Batocera **v32** on the x86_64. [[:batocera-and-crt-rpi|CRT on Raspberry Pi]] has its own page. For **v30**/**v31** and on x86, refer to the [[:batocera-and-crt-old|legacy guide]]. This article is also not for the faint of heart. Word-count: about 9k.
 </WRAP> </WRAP>
  
-Batocera has the capability to natively output an analogue signal, should you have the hardware to do so. The specifics are later in this guide, but that basically means you have a VGA/DVI-I port on your graphics card (which is becoming exceedingly rare with modern graphics cards) or on your motherboard (the CPU will need integrated graphics to support it, probably along with particular BIOS settings). Modern cards with only digital outputs have a minimum bandwidth that's above the acceptable rate that CRTs can interpret, and thus won't be compatible for use in this guide.+Batocera has the capability to natively output an analogue signal, should you have the hardware to do so. The specifics are later in this guide, but that basically means you have a VGA/DVI-I port on your graphics card (which is becoming exceedingly rare with modern graphics cards) or on your motherboard (the CPU will need integrated graphics to support it and must not have a DAC altering the signal, probably along with particular BIOS settings). Modern cards with only digital outputs have a minimum bandwidth that's above the acceptable rate that CRTs can interpret, and thus won't be compatible for use in this guide.
  
 <WRAP center round tip> <WRAP center round tip>
Line 88: Line 95:
     * If using a TV with **component**/**composite**/**S-video** inputs, an appropriate **DVI-I**/**VGA** RGB to **component**/**composite**/**S-video** transcoder     * If using a TV with **component**/**composite**/**S-video** inputs, an appropriate **DVI-I**/**VGA** RGB to **component**/**composite**/**S-video** transcoder
       * If using a TV that only has **RF** input, you will need a **composite** to **RF** modulator in addition to the transcoder       * If using a TV that only has **RF** input, you will need a **composite** to **RF** modulator in addition to the transcoder
-  * For Raspberry Pi: 
-    * A Raspberry Pi with **composite** video output (the headphone jack) 
-    * The **three-pole A/V composite** cable for Raspberry Pi 
-    * A TV with **composite** inputs, //or//; 
-    * If using a TV that only has **RF** input, you will need a **composite** to **RF** modulator in addition to the transcoder 
   * A way to [[:access_the_batocera_via_ssh|SSH into the Batocera machine]] (for Windows, PuTTY works fine)   * A way to [[:access_the_batocera_via_ssh|SSH into the Batocera machine]] (for Windows, PuTTY works fine)
   * A way to edit files over the network (for Windows, WinScp and Notepad++ work fine)   * A way to edit files over the network (for Windows, WinScp and Notepad++ work fine)
Line 115: Line 117:
  
 GreenAntz RGB to component transcoder GreenAntz RGB to component transcoder
- 
  
 {{hardware:greenantz-transcoder.jpg?240}} {{hardware:greenantz-transcoder.jpg?240}}
Line 139: Line 140:
 </WRAP> </WRAP>
  
 +RGBS / SCART to YCBCR / YPBPR / S-Video converter adapter
 +
 +{{hardware:rgbs-scart-a-ycbcr-ypbpr-.jpg?240}}
 +Convert VGA to Scart cable to YCBCR & S-Video
 +  * [[https://www.arcadexpress.com/en/video-converters/615-convertidor-de-video-rgbs-scart-a-ycbcr-ypbpr-.html?mot_tcid=75c33dde-5be2-4fc6-ba75-933c02460a9b]]
 +Can also be found by searching AliExpress for "SCART RGBS to YUV YCBCR Video Converter"
  
 ===== Composite/S-Video Transcoders ===== ===== Composite/S-Video Transcoders =====
Line 151: Line 158:
  
   * [[https://www.axunworks.com/product-p341706.html]]   * [[https://www.axunworks.com/product-p341706.html]]
- 
-RetroCastle's General VGA(15khz) to Composite & S-Video 
- 
- 
-{{hardware:retrocastle_general_vga_15khz_to_composite_s_video.jpg?240}}  
- 
- 
-  * [[https://www.aliexpress.com/item/1005004542004772.html]] 
  
 ===== DisplayPort to VGA DAC ===== ===== DisplayPort to VGA DAC =====
Line 168: Line 167:
  
 <WRAP center round info> <WRAP center round info>
-If you are in a situation where you must use an active adapter, the CableDeconn DP to VGA adapter is one of the best options. It uses a repurposed Realtek RTD 2168 audio chip for its conversion, which doesn't rely on an oscillating crystal (no out-of-sync timing it has to account for) and no automatic deinterlacer (pretty much standard for all other active adapters, this will ruin your signal's quality).+If you are in a situation where you must use an active adapter, the CableDeconn DP to VGA adapter is one of the best options. It uses a repurposed Realtek RTD 2166 audio chip for its conversion, which doesn't rely on an oscillating crystal (no out-of-sync timing it has to account for) and no automatic deinterlacer (pretty much standard for all other active adapters, this will ruin your signal's quality).
 </WRAP> </WRAP>
  
Line 180: Line 179:
 <WRAP center round info> <WRAP center round info>
 If you are in a situation where you must use an active adapter and only have a USB type C connection the StartTech.com USB type C to VGA adapter is one of the best options. It uses a repurposed Realtek RTD 2166 audio chip for its conversion, which doesn't rely on an oscillating crystal (no out-of-sync timing it has to account for) and no automatic deinterlacer (pretty much standard for all other active adapters, this will ruin your signal's quality). If you are in a situation where you must use an active adapter and only have a USB type C connection the StartTech.com USB type C to VGA adapter is one of the best options. It uses a repurposed Realtek RTD 2166 audio chip for its conversion, which doesn't rely on an oscillating crystal (no out-of-sync timing it has to account for) and no automatic deinterlacer (pretty much standard for all other active adapters, this will ruin your signal's quality).
-</WRAP> 
- 
-===== A/V composite cable (Raspberry Pi) ===== 
- 
-If you need the three-pole A/V composite cable: 
-  * [[https://www.adafruit.com/product/2881|Link to Adafruit's store page for the cable]] 
-  * [[https://www.amazon.com.au/Adafruit-Composite-Video-Raspberry-ADA2881/dp/B06W2JXLSK|Link to Amazon's store page for the cable]] 
- 
- 
-An Xbox 360E three-pole to A/V composite cable also works for the Raspberry Pi. 
- 
-{{hardware:composite-rca-cable-av-cable-for-xbox-360-e.jpg?240}} 
- 
-===== Using a Raspberry Pi ===== 
- 
-<WRAP center round tip> 
-Friendly reminder that this guide was written for **v32**, this function may not work identically on future versions, if at all. 
-</WRAP> 
- 
-This is way easier than on PC, as all the necessary modifications can be done on the SD card before even turning on the Pi. 
- 
-<WRAP center round important> 
-If using Windows, remember to use Notepad++ to edit files so as not to corrupt them. The built-in Notepad will corrupt them. 
-</WRAP> 
- 
-After Batocera has been flashed to the SD card, open up the boot partition on it labelled "BATOCERA" and open the ''cmdline.txt'' file. Add the following to the beginning of the line: 
- 
-<code ini> 
-video=Composite-1:720x480@60ie 
-</code> 
- 
-Save the file (make sure not to accidentally add extra lines/spaces as it may interfer with Batocera booting). Then in that same folder, open ''config.txt''. Comment out any line that contains ''hdmi'' by adding a ''#'' in front of it. 
- 
-<code ini> 
-#hdmi-yadda-yadda 
-</code> 
- 
-In the main section (not inside any section like ''[RPI3]''), add the following lines: 
- 
-<code ini> 
-max_framebuffer_width=320 
-max_framebuffer_height=240 
-framebuffer_width=320 
-framebuffer_height=240 
-enable_tvout=1 
-sdtv_mode=0 
-sdtv_aspect=1 
-audio_pwm_mode=2 
-disable_fw_kms_setup=1 
-enable_uart=1 
-</code> 
- 
-Then the Raspberry Pi is set up to output to a CRT display via the composite output. Read the [[#editing_the_configuration_files|editing files section]], and then skip forward to the [[#disable_emulationstation_from_forcing_60hz|section about EmulationStation]]. 
- 
-Although most of the rest of the guide also applies to RPi, RPi does not support switchres or standalone MAME. Hence, any configuration that applies to them would not be applicable to RPi. RetroArch does have its own configuration though. 
- 
-<WRAP center round help> 
-If after doing this on a Pi 4, you get the menu working but no emulators launch correctly, try using the FKMS driver instead of the real KMS driver. 
- 
-Under the ''[pi4]'' header, comment out ''dtoverlay=vc4-kms-v3d-pi4'' and uncomment ''dtoverlay=vc4-fkms-v3d'' to do so. 
- 
-If after doing this on a Pi 3, you get a black screen after the boot logo, try editing this line under the ''[pi3]'' header: 
- 
-<code> 
-dtoverlay=vc4-kms-v3d 
-</code> 
- 
-so that it is instead: 
- 
-<code> 
-dtoverlay=vc4-kms-v3d,composite=1 
-</code> 
 </WRAP> </WRAP>
  
Line 271: Line 198:
 Once everything is safe, you can turn on your Batocera machine. If you'd like to edit files using the Batocera machine itself, you can hook up a secondary digital display in the meantime. If you have multiple ports and use another port, then you'll not be able to do this once you disable the other port outputs in the upcoming section. If you have a modern digital display that can handle older standard signals over older standards cables without blowing up (such as a LCD monitor with both HDMI and VGA ports), you can use that in place of your CRT until everything is configured correctly for it. Once everything is safe, you can turn on your Batocera machine. If you'd like to edit files using the Batocera machine itself, you can hook up a secondary digital display in the meantime. If you have multiple ports and use another port, then you'll not be able to do this once you disable the other port outputs in the upcoming section. If you have a modern digital display that can handle older standard signals over older standards cables without blowing up (such as a LCD monitor with both HDMI and VGA ports), you can use that in place of your CRT until everything is configured correctly for it.
  
 +<WRAP center round alert>
 +🚫 **This page is outdated and should no longer be used.**  
 +Please refer to the **[[https://github.com/ZFEbHVUE/Batocera-CRT-Script/wiki|Batocera CRT Script – Official Wiki]]** instead.
 +
 +🛠 An **automated CRT setup script** is now available and should be used to configure native CRT output on the latest x86_64 Batocera builds.
 +
 +⚠️ Only refer to this page if you’re troubleshooting legacy setups.  
 +For all current installations, follow the GitHub Wiki and script instructions.
 +</WRAP>
 ===== Editing the configuration files ===== ===== Editing the configuration files =====
  
Line 326: Line 262:
   - Search for the ''syslinux'' file to enable booting in low resolution <WRAP center round tip 60%>To make the next step a little bit easier for Windows users, connect to Batocera using WinScp and install Notepad++</WRAP>   - Search for the ''syslinux'' file to enable booting in low resolution <WRAP center round tip 60%>To make the next step a little bit easier for Windows users, connect to Batocera using WinScp and install Notepad++</WRAP>
     * If legacy, the file will be at ''/boot/boot/syslinux/syslinux.cfg''     * If legacy, the file will be at ''/boot/boot/syslinux/syslinux.cfg''
-    * If UEFI, the file will be at ''/boot/EFI/BOOT/syslinux.cfg''+    * If UEFI, for Batocera **v39** and higher the file will be at ''/boot/EFI/batocera/syslinux.cfg'' and for Batocera **v38** and lower the file will be at ''/boot/EFI/BOOT/syslinux.cfg'' 
   - Append a space, followed by ''video=//[your-card-output]//:640x480ieS'' to the ''APPEND'' line in the file (make sure there are no additional spaces after!)   - Append a space, followed by ''video=//[your-card-output]//:640x480ieS'' to the ''APPEND'' line in the file (make sure there are no additional spaces after!)
  
Line 605: Line 541:
 </code> </code>
  
-Open ''userdata/system/batocera.conf'' and go down to this comment: +Open ''userdata/system/batocera.conf'' and add the following lines at the end of the file:
- +
-<code> +
-## Configurations generated by Batocera.linux +
-</code> +
- +
-Add the following lines to right before that comment:+
  
 <code> <code>
Line 645: Line 575:
 ## ES Settings ## ES Settings
 es.customsargs=--screensize 640 480 --screenoffset 00 00 es.customsargs=--screensize 640 480 --screenoffset 00 00
- 
-## Configurations generated by Batocera.linux 
 </code> </code>
  
Line 654: Line 582:
 ## ES Settings ## ES Settings
 es.customsargs=--screensize 640 488 --screenoffset 38 16 es.customsargs=--screensize 640 488 --screenoffset 38 16
- 
-## Configurations generated by Batocera.linux 
 </code> </code>
  
  • batocera-and-crt.1691905597.txt.gz
  • Last modified: 3 years ago
  • by atari