On Mon, 23 Jul 2007 14:02:38 +0100
Hugo Mills <hugo@???> wrote:
> All -
>
> Does anyone know of a way of determining which external VGA/DVI
> ports on a machine have a monitor attached?
>
> I want to put it in the start-up for X to work out which of my two
> X configs I need to use, so I need something which is both scriptable
> (command-line only, text output), and doesn't require X to be running.
>
> Hugo
Maybe ddcprobe can do what you need (in that it fails predictably
on my headless (but with video card) box, and detects the monitor
correctly on the others).
-jonathan