SUMMARY: Dual headed detection

From: Alan Chalmers (
Date: Wed Jun 24 1998 - 18:50:19 CDT

Thanks to

Dieter Gobbers
Casper Dik
Brett Lymn
Carsten B. Knudsen
Birger Wathne
Ian Parkin Petrote
Steve Kay
Craig Bevins
Bismark Espinoza
Jochen Bern

------------------- Original question -------------------
>One of the code cutters in my curent project asked if there was a way to
>dectect if I machine had two heads attached. I suggested that he could
>check the command line options use to start the Xserver or check the
>Xservers (/etc/dt/config/Xservers) config file.
>Does anyone have a easier and better solution?

----------------------- SUMMARY -----------------------------------

xdpyinfo | grep 'screen #'|wc -l

Does the job nicely.

Alan Chalmers Email:
Project Manager Phone: +61-8-8303-3300
Consulting Services Fax : +61 8 8303 4403
Camtech SA Pty Ltd WWW :

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:42 CDT