SUMMARY-Re: How to determine type of fb?

From: Robert N. Thompson (rnt@math.ias.edu)
Date: Mon Aug 17 1992 - 16:20:13 CDT


Thank you Sun Managers, for your quick and helpful answers!
First, the original question:

=>
=>I need to be able to determine the default frame buffer on any of our Sun4c hosts
=>eg: (bwtwo, cgthree, cgsix, etc.) while in a startup shell script so that the
=>proper environment variable can be set for the application. Maybe because it's
=>Friday but, I cannot find a (simple) method to accomplish this. Could someone provide
=>me with some ideas on how to do this?? Many thanks in advance.
=>
 
Two responses stand out as meeting our needs the best, (KISSysadmin) though many of you
supplied very good programs to accomplish the same.

Solution #1 - is the command "constype" which is
included with X11R4/5 source and (even) OpenWindows3. If you are still running
sunview or do not have X11, then you will need either Solution #2 or one
the programs sent to me.

Solution #2 - is a nifty shell script from Casper Dik <casper@fwi.uva.nl>

    #!/bin/sh
    # Probe all frame buffers.
    for dev in /dev/cg* /dev/gt* /dev/gpone* /dev/bw*
    do
            if ( < $dev ) 2>/dev/null
            then

                # This is the device.
                break;
            fi
    done
    echo $dev

Again, many thanks to all of the following Sun Managers;

kfp@quasar.saic.com
casper@fwi.uva.nl
iapsd!seri!glenn@uunet.UU.NET
exuksm@exu.ericsson.se
datri@lovecraft.convex.com
trinkle@cs.purdue.edu
dworkin@merlin.rootgroup.com
miker@sbcoc.com
pls@pegasus.rice.edu
shipley@tfs.COM
Gerhard.Holzer@rcvie.co.at
gdmr@dcs.ed.ac.uk
dave@sarah.lerc.nasa.gov
ept@eptsun1.ctd.ornl.gov
matt@wbst845e.xerox.com

Bob Thompson
Systems Administration
Institute for Advanced Study
South Olden Lane
Princeton, NJ 08540
 
email: rnt@math.ias.edu
phone: (609)-734-8331
fax: (609)-924-8399



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:47 CDT