Hacker News new | ask | show | jobs
by komadori 515 days ago
A DVI* signal is logically very similar to a VGA one, but with a different physical layer. The analogue colour signals are replaced with TMDS encoded digital ones, but the pixel clock and sync signal work more or less the same way.

I would guess that a simple VGA to DVI converter simply syncs to the VGA pixel clock, samples the analogue colours, and outputs the digitally encoded values with the same timings.

From a quick look, the oscillator in this machine's schematic runs at 16 MHz. I assume that the pixel clock is derived from this. The DVI specification has a minimum pixel clock of 25 MHz so you couldn't produce a valid DVI stream from this without buffering the pixels and retiming the output in summer way. Well, I suppose since the pixel clock isn't explicit on the VGA cable you could have an imaginary clock which is higher by doubling pixels horizontally.

Ultimately though, success probably varies depending on the converter and the display used. There are quite a lot of standard VESA modes and you can often get away with generating something close-ish to spec.

For more exotic video signals you can use devices like the RGBtoHDMI: https://github.com/hoglet67/RGBtoHDMI

It decodes the input signal into a framebuffer and uses the Raspberry Pi's video core to output the result.

* HDMI is, broadly speaking, a proprietary extension of DVI. You can feed DVI signals though an HDMI connector and it will display anyway.

1 comments

> HDMI is, broadly speaking, a proprietary extension of DVI

It is but it's becoming hard to find monitors with dvi connectors, so i asked about hdmi which should be more common.

How you get your ancient analog output to a display with only digital in is becoming a problem. I don't know shit about how good or bad your average solution is so I ask.

[I don't have anything like the toy we're talking about in this thread, but I have a 486 with a Trident 512kb vga card and Syndicate on it in a closet]

You can get a DVI to HDMI adapter which costs less than a coffee.

Adding an HDMI connector is more likely to get you into expensive licensing discussions than DVI is.