Re: [Hampshire] Probing for monitors

Top Page
Author: Hugo Mills
Date:  
To: Alan Pope, Hampshire LUG Discussion List
CC: 
Subject: Re: [Hampshire] Probing for monitors

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x56d15100.hantslug.org.uk.18689': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Tue Jul 24 14:13:34 2007 BST
gpg: using DSA key B2C27BC21C335860
gpg: Can't check signature: No public key
On Mon, Jul 23, 2007 at 02:42:30PM +0000, Alan Pope wrote:
> On Mon, Jul 23, 2007 at 02:02:38PM +0100, Hugo Mills wrote:
> >    All - 

> >
> >    Does anyone know of a way of determining which external VGA/DVI
> > ports on a machine have a monitor attached?

> >
>
> xrandr?
>
> Mine says:-
>
> VGA disconnected
> LVDS connected 1400x1050
>
> (amongst other things).
>
> And it's right, the VGA port is unplugged.


Sadly:

hrm@willow:~$ xrandr
Xlib: extension "RANDR" missing on display ":0.0".
RandR extension missing

I don't think the nVidia drivers support it. :(

Maybe it's time to start playing with Nouveau...

> >    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.

> >
>
> I realise that xrandr only runs under X, but it's possible to start X
> without an xorg.conf these days, in which you could run xrandr, then
> stop/kill X and restart with the "right" xorg.conf?
>
> Not clean of course, but still, it's an optino.


That's... icky (not to mention slow, as it'll have to initialise
the GPU twice). Might be the only way, though.

I've also looked at read-edid, but that's not happy on this box, as
it seems to be x86 only.

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 1C335860 from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
   --- Anyone who claims their cryptographic protocol is secure is ---   
         either a genius or a fool.  Given the genius/fool ratio         
                 for our species,  the odds aren't good.