internal monitor name in xrandr

CSJ changsijay at gmail.com
Fri Jul 2 04:16:37 PDT 2010


Hi,

I've maned xrandr and also saw the --primary is to set some output as
primary,
No idea about how to get which is primary :(

2010/7/2 Maarten Maathuis <madman2003 at gmail.com>

> On Fri, Jul 2, 2010 at 12:19 PM, CSJ <changsijay at gmail.com> wrote:
> > Hi,
> >
> > I am writing a script to output to external monitor automatically when it
> is
> > connected.
> > But now I have no idea about what name will be used for internal monitor
> in
> > xrandr.
> > some are "LVDS" and some are "DP1"
>
> In recent versions of xrandr/xorg/etc there exists the concept of a
> primary output, maybe that is what you seek.
>
> >
> > I want to parsing the xrandr output and remove the internal one. (xrandr
> |
> > grep -v " connected" | grep -v $INTERNAL_NAME)
> > then others will be external monitor.
> >
> > So, does any methods to does which name will be used for internal
> monitor.
> > in many kinds of notebooks?
> >
> > One more question,
> > I've tried meego live USB, it can auto output when I plug a external
> > monitor,
> > How does it achieve this function?
> > Does any event will be issued when I plug a external monitor?
> >
> > Thanks
> >
> > _______________________________________________
> > xorg at lists.freedesktop.org: X.Org support
> > Archives: http://lists.freedesktop.org/archives/xorg
> > Info: http://lists.freedesktop.org/mailman/listinfo/xorg
> > Your subscription address: madman2003 at gmail.com
> >
>
>
>
> --
> Life spent, a precious moment, in the wink of an eye we live and we die.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20100702/87987e13/attachment.html>


More information about the xorg mailing list