Ignore laptop LCD when external display present

Ross Burton ross at burtonini.com
Sat Mar 10 07:56:59 PST 2007


On Sat, 2007-03-10 at 09:47 -0600, Ian Pilcher wrote:
> Ross Burton wrote:
> > I have a small script that I've bound to Fn-F8 which does this:
> > 
> > if xrandr -q | grep -q  "VGA connected"; then
> >   xrandr --output LVDS --off --output VGA --mode 1680x1050
> > else
> >   xrandr --output VGA --off --output LVDS --mode 1024x768
> > fi
> 
> What version of xrandr are you using?  xrandr -q doesn't print anything
> like "VGA connected" on my system when the external LCD is plugged in.
> It also doesn't seem to recognize the "--output" switch at all.

I'm using the all new RandR 1.2, with the Intel driver.  I didn't notice
that you were using radeon (damn this cold, I can't think straight).

Ross
-- 
Ross Burton                                 mail: ross at burtonini.com
                                          jabber: ross at burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF






More information about the xorg mailing list