Howto determine screen geometry?

Aaron Plattner aplattner at
Mon May 23 12:42:54 PDT 2011

On Sun, May 22, 2011 at 09:20:31AM -0700, Stef Bon wrote:
>   On 05/22/2011 04:23 PM, Mikhail Gusarov wrote:
> > Twas brillig at 16:19:49 22.05.2011 UTC+02 when stef at did gyre and gimble:
> >
> >   SB>  Isn't it possible to just get that information from the Xserver??
> >
> > xrandr + awk
> >
> Does not work, since randr and Xinerama do not combine.

Use the Xinerama extension:

xdpyinfo -ext XINERAMA

You can query similar information from a program using the functions in

There's documentation in man pages for libXinerama:
("man Xinerama" if you have the man page installed)

Hope that helps!
-- Aaron

More information about the xorg-devel mailing list