Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| user:rion [2021/09/15 10:48] – atari | user:rion [2024/11/30 15:15] (current) – rion | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <WRAP center round important 90%> | + | Work in progress on updated CRT guide... |
| - | Under Construction!</ | + | |
| - | ===== Switchres - minimum dot clock ===== | ||
| - | Fun fact about CRTs: they receive more data than they actually display and keep those extra bits outside of the frame at the top and the bottom. This will be relevant for the next paragraph. | + | ====== Batocera native CRT output ====== |
| - | The dot clock. Essentially, | + | <WRAP center round alert> |
| + | [[https:// | ||
| + | </WRAP> | ||
| - | The issue with modern graphics cards is that they have a **minimum** required bandwidth to function, anything below that will simply not render (or in some cases, lock up the hardware). Typical minimum bandwidths for these cards are 8 p/s, 12 p/s and 25 p/s. Sometimes the minimum bandwidths will differ depending on which ports are used, digital ports tend to have an even higher minimum bandwidth. | ||
| - | So what can we do about this? The answer | + | 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 |
| - | === Super resolutions === | + | <WRAP center round tip> |
| + | You can however use an active converter ([[# | ||
| + | </ | ||
| - | CRTs are beautiful in the sense that they don't think in pixels, only lines. So essentially, | + | Recommended watching: |
| + | * [[https:// | ||
| - | It' | + | Recommended reading: |
| + | * [[https:// | ||
| + | * [[https://www.aussiearcade.com/topic/76809-a-guide-to-connecting-your-windows-pc-to-an-sd-crt-tv-pvm-or-arcade-monitor/ | ||
| - | So therefore, we will let Switchres calculate the appropriate super resolution for us. It will work out the super resolution that is both a multiple of the original system' | + | ===== Foreword ===== |
| - | Here's an example: let's say you're playing a game that runs at a native 640x480 at 60 FPS. Our graphics card has a minimum required bandwidth | + | <WRAP center round alert> |
| + | It should go without saying, but unlike digital signals, analogue signals and the devices | ||
| + | </WRAP> | ||
| - | Same goes for any other modeline, like 256x224 it would do 512(2x)x224, 768(3x)x224 | + | This guide would not have been possible without the following people to name a few: |
| + | * jfroco' | ||
| + | * rtissera' | ||
| + | * Calamity for his knowledge, drivers, tools, GroovyMame, Switchres, etc. | ||
| + | * Substring' | ||
| + | * D0023R Doozer' | ||
| + | * dmanlcf' | ||
| + | * Rion and Atari for compiling this guide. | ||
| - | ===== Testing modelines | + | ===== Glossary |
| - | {{: | + | The field of analog signals and CRT-related standards is very complex and occasionally misleading. We won't dive into every aspect in this guide but we will explain some relevant terms here (sorted in alphabetical order) to avoid confusion. Feel free to come back to this section at any time throughout this guide: |
| - | configure switchres.ini to your monitor | + | * **Active converters** Little boxes that convert one signal to another. These use tiny computers with processors and RAM to process the image digitally and send it out the other side as appropriate. Generally undesirable, |
| + | * **BNC cables** These are standard aerial coaxial cords that can carry any analogue signal. For our purposes, they will be carrying an RGB video signal. There were not many consumer TVs that utilized this type of connection, but they were common with professional/ | ||
| + | * **Component video cables** The three red blue green cable connection. Not to be confused with the similarly spelled composite cable, as it uses three cables instead of one. Not to be confused with RGB signal, as this uses a YPbPr signal. Them being colored red blue and green is purely coincidental and not related to RGB at all.{{ hardware: | ||
| + | * **Composite signal** An // | ||
| + | * **Composite video cable** The yellow cable. That's enough, you know what I'm talking about already.{{ hardware: | ||
| + | * **DisplayPort** The modern digital video connection port, common on modern graphics cards. Compatible with both DP and HDMI signals. This port cannot be used to send a native analogue signals so it is not recommended for use with CRT, but this can be worked around if you have the right equipment as explained further on in the guide. | ||
| + | * **DVI-I port** This is the 29 pin port in your graphics card, capable of analogue signals. You will typically find this port alongside the VGA port. Newer cards no longer include this port. It is of extreme importance to not confuse this with the identical-looking DVI-**D** port, which is only capable of digital signals. The DVI-I port has additional pins above and below the flat tongue, whereas DVI-D doesn' | ||
| + | * **EDID** Extended Display Identification Data (EDID) is a //digital// metadata signal used by display devices to describe their capabilities to a video source (in this case, your Batocera computer). Modern digital displays all have this, and Batocera uses that to automatically switch to a compatible resolution. Certain VGA-compatible CRT monitors also use this, but not all of them. This standard was introduced in 1994, so monitors manufactured before then do **not** have EDID. | ||
| + | * **Horizontal scan rate** Usually expressed in kilohertz. This is the number of times per second that a horizontal line is drawn on a display, as opposed to vertical refresh rate which is the number of times per second that an entire screen of image data is displayed. | ||
| + | * **Passive adapter/ | ||
| + | * **RGB video signal** In this context, refers to the // | ||
| + | * **SCART** This is the 21 pin port that superseded the standard composite video output. Popular in Europe and Japan, but not many other places. Carries both analog video and audio signals. Natively uses an RGB video signal, but is backwards compatible with YPbPr, composite and S-video signals.{{ hardware: | ||
| + | * **S-video port** A slightly better version of composite video. This separated the color and luminance signals into two separate wires each, reducing color bleed and artifacts, but in practice the difference wasn't that significant. Common with DVD players, but not much else.{{ hardware: | ||
| + | * **S-video signal** An // | ||
| + | * **RF modulator** This is a device that can translate composite, component or RGB analogue signals into a radio frequency. This is required for CRT displays that only have an RF input. VCRs usually had one of these built-in to them, and make for a fine substitute.{{ hardware: | ||
| + | * **Three-pole A/V composite cable** A more modern analogue signal cable which violates standards by running a video signal through a 3.5mm headphone jack splitting into RCA cables. This is specifically designed to be used in the Raspberry Pi in its composite video modes, and will not be compatible with other devices/ | ||
| + | * **Transcoder** A device that can convert an RGB signal into an inferior signal like component/ | ||
| + | * **Vertical refresh rate** The number you're probably more familiar with, typically measured in just hertz. This is the number of full frames drawn per second. Typically this is 60 Hz for all modern displays, but older CRTs were split between 60 Hz and 50 Hz depending on where you lived. | ||
| + | * **VGA port** This is the 15 pin port ubiquitous with old computer video output and classroom projectors. It is important to note the distinction between a VGA signal and the DSUB connector used to carry that signal, as not all DSUB connectors actually send a VGA signal. Refer to this console-related [[http:// | ||
| + | * **VGA signal** A unique hybrid // | ||
| + | * **YPbPr video signal** A lower-bandwidth form of RGB, which has both the green and luminance channels on one wire. Used by component video cables, but can also be sent through a SCART connection. | ||
| - | Connect to Batocera via SSH | + | ===== Prerequisites ===== |
| - | Have a keyboard connected | + | To achieve |
| - | Exit Emulation Station | + | * A network connection (wired is preferred, as it needs no configuration) |
| - | < | + | * For x86_64: |
| - | /etc/init.d/S31emulationstation stop | + | * A graphics card or integrated graphics with RGB analogue output |
| - | </code> | + | * **AMD**/**ATI** graphics cards with **VGA** or **DVI-I** ports (preferred, **Radeon HD 3000** series and up to **Radeon R5**/**R7**/**R9 300**), these cards are: |
| + | * **Radeon RX** up to the **300** series (excluding the **R9 390**) (**R9 380X** is the newest and most powerful AMD card supporting analogue) | ||
| + | * **Workstation** up to the **FirePro W5000** | ||
| + | * **Nvidia** graphics cards with **VGA** or **DVI-I** ports (major flaws and limited to Super Resolutions, | ||
| + | * **GTX** up to the **900** series cards (**980** is the recommended card to use) <WRAP center round tip> | ||
| + | Cards older than the **GTX 600** series may not be supported by the official Nvidia drivers, though performance with 5th gen systems and below is adequate with the nouveau drivers. | ||
| + | </WRAP> | ||
| + | * **Titan** cards up to the **Titan X** (but excluding **Titan X Pascal**) (**Titan X** is the most powerful card supporting analogue) | ||
| + | * **Quadro** cards up to the **Quadro K5200** | ||
| + | * **Nvidia** graphics card with **DisplayPort** (no native analog signal, requires disabling low-level driver limitations which are potentially dangerous, requires additional ratnest of cables): | ||
| + | * If opting to go this route, an active converter or the CableDeconn DP to VGA adapter will be required. In general, this is not recommended as it is not a native analogue signal. | ||
| + | * A transcoder will still be required. | ||
| + | * **AMD** APUs with **VGA** or **DVI-I** ports on the motherboard (hit or miss, highly dependent on hardware limitations, | ||
| + | * **Intel** integrated graphics with **VGA** or **DVI-I** ports on the motherboard (has some flaws and limitations, | ||
| + | * If using a TV/PVM/BVM with **SCART**/ | ||
| + | * If using a computer monitor with **VGA** input, simply a **VGA** cable | ||
| + | * If using a TV with **component**/ | ||
| + | * 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 [[: | ||
| + | * A way to edit files over the network (for Windows, WinScp and Notepad++ work fine) | ||
| - | or | + | <WRAP center round tip> |
| + | It is highly recommended using an external editor like [[http:// | ||
| + | </ | ||
| - | Exit to terminal | + | If any of that was confusing here's a professional-grade flowchart explaining what is required for each type of display (on PC): |
| - | '' | + | |
| - | From putty type for this to test modeline 640x480@60 with configured monitor profile | + | {{ hardware:tree-diagram-explaining-this.png |Two billion hours in mspaint.exe}} |
| - | < | + | |
| - | DISPLAY=:0 switchres 640 480 60 -i switchres.ini | + | |
| - | </ | + | |
| - | You can change between 2 types of grids with Tab. | + | |
| - | Exit pressing Escape from keyboard to try a new modeline | + | ===== Component Transcoders ===== |
| - | Go back to Es with command | + | Some appropriate VGA-to-component adapters: |
| - | < | + | |
| - | / | + | |
| - | </ | + | |
| - | or restart with | + | |
| - | < | + | |
| - | reboot | + | |
| - | </ | + | |
| - | Modelines | + | |
| - | < | + | |
| - | [[https:// | + | RGB VGA to YPbPr Component transcoder/converter by linuxbot3000 |
| - | For example the Arcade game Dottori Kun ([[http://adb.arcadeitalia.net/dettaglio_mame.php? | + | * [[https://www.ebay.com/itm/ |
| - | < | + | * [[http:// |
| - | DISPLAY=:0 switchres 128 192 61.035156 | + | {{hardware:rgb-to-pybyr-transcoder.jpg?240}} {{hardware: |
| - | </ | + | |
| - | ===== AMD Troubleshooting Tearfree and Freezes ===== | + | GreenAntz RGB to component transcoder |
| + | {{hardware: | ||
| + | * [[http:// | ||
| + | * [[https:// | ||
| - | If you get uneven frame-pacing and microstutters in Mame and/or Retroarch we need to disable the option **TearFree** in the driver configuration file located at | + | Retrotink RGB2COMP (Scart |
| - | ''/ | + | |
| - | | + | {{hardware: |
| - | < | + | |
| - | Section " | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | EndSection | + | |
| - | </ | + | |
| - | | + | RGBS VGA SCART to YPBPR Component Transcoder |
| - | < | + | |
| - | Section " | + | {{hardware: |
| - | | + | {{hardware: |
| - | | + | |
| - | | + | |
| - | | + | |
| - | EndSection | + | |
| - | </ | + | |
| - | Don't forget to '' | + | <WRAP center round info> |
| + | Color coding is a little different on this | ||
| + | * Green -> Pb | ||
| + | * Red -> Y | ||
| + | * Blue -> Pr | ||
| + | </ | ||
| - | **Games freeze or EmulationStation freeze.** | + | RGBS / SCART to YCBCR / YPBPR / S-Video converter adapter |
| - | This has been reported by some users and myself included. | + | {{hardware: |
| - | It's not know yet what is the underlying reason. It could be a driver or kernel issue. | + | Convert VGA to Scart cable to YCBCR & S-Video |
| + | * [[https:// | ||
| + | Can also be found by searching AliExpress for "SCART RGBS to YUV YCBCR Video Converter" | ||
| - | We need to add **Option " | + | ===== Composite/S-Video Transcoders ===== |
| - | '' | + | |
| - | * 20-amdgpu.conf (GCN 3, GCN 4, GCN 5, RDNA & RDNA 2) or download an already fixed [[https://drive.google.com/file/d/ | + | If you need composite/S-video/RF, use these transcoders: |
| + | * [[https://www.ebay.com/itm/174151197805|RGB VGA to NTSC S-video and composite transcoder/ | ||
| + | {{hardware: | ||
| - | < | + | RGB to Composite & S-Video Ver2.0 |
| - | Section " | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | EndSection | + | |
| - | </ | + | |
| - | * 20-radeon.conf (TeraScale and older, GCN 1 & GCN 2) or download an already fixed [[https:// | + | {{hardware: |
| - | < | + | * [[https:// |
| - | Section " | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | EndSection | + | |
| - | </code> | + | |
| - | Don't forget | + | ===== DisplayPort |
| - | * Short explanation | + | If you only have a DP connection, use the CableDeconn DP to VGA adapter before sending the signal to the transcoder |
| + | * [[http:// | ||
| + | * [[https:// | ||
| + | {{: | ||
| - | // | + | <WRAP center round info> |
| + | If you are in a situation where you must use an active adapter, the CableDeconn DP to VGA adapter | ||
| + | </WRAP> | ||
| - | // | + | ===== USB-C to VGA DAC ===== |
| - | //Frame-pacing uneven distribution of frames// | + | If you only have a USB-C connection, use the StartTech.com USB type C to VGA, 3m, CDP2VGA3MBNL (Note: this 3m cable has the RTD2166 chip. Shorter versions of the same brand use a different chip that may not be compatible) before sending the signal to the transcoder of your choice: |
| + | * [[https://www.startech.com/ | ||
| + | * [[https:// | ||
| + | {{: | ||
| + | <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' | ||
| + | </ | ||
| + | |||
| + | ===== Connecting the PC to a CRT display ===== | ||
| + | |||
| + | The first step is to safely connect your Batocera computer to the CRT display itself. If using a VGA connection with a EDID CRT monitor, it is as simple as connecting the display, turning it on and then turning the Batocera machine on. Keep reading this section for all other displays. If your CRT monitor does not send an EDID (the standard was introduced in 1994, so monitors manufactured before then **do not have EDID**), then you should still follow the following instructions just to be safe. | ||
| + | |||
| + | <WRAP center round important> | ||
| + | During the boot process and resizing of the partition it will boot up in a non-supported resolution. Keep the CRT TV off for the moment or on another AV channel so it doesn' | ||
| + | |||
| + | Also keep in mind that during the BIOS boot process the same rule applies. Have the CRT TV off or on another input when first booting up.</ | ||
| + | |||
| + | **To solve this we have 4 options:** | ||
| + | * Do the aforementioned, | ||
| + | * Have a look at gambaman' | ||
| + | * Use buttersoft' | ||
| + | * Flash you AMD/ATI card with [[http:// | ||
| + | |||
| + | 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. | ||
- user/rion.1631702885.txt.gz
- Last modified: 5 years ago
- by atari