Technical article 105600

How to determine what type of video adapter is installed.

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4

Written · Last revised

Problem

I need to determine what video card is installed in my system.

Solution

The following script will scan the video BIOS and print all
strings likely to identify the card and the BIOS version.  You
must have full root privileges to run this script.
==================================VideoHelp=================================
#!/bin/sh
#
#       @(#)VideoHelp.sh        8.2     5/5/97  16:32:43
#
#       VideoHelp - create a dump of video BIOS.
#               scan for strings likely to identify the card.
#
#       This must be executed with root privileges to allow access
#               to /dev/mem
#
#       This should work on OpenServer or UnixWare, just about
#               any SCO OS version.
#
#
AllThere=""

FOLD="/usr/bin/fold -s -w 72" VROMDUMP="dd if=/dev/mem skip=768 count=32 bs=1024"

if [ ! -x ${FOLD} ]; then {
        FOLD="/usr/bin/xargs /bin/echo"
} fi
for i in /bin/strings /usr/bin/egrep /bin/sort /usr/bin/xargs /bin/echo
do
        if [ ! -x $i ]; then {
                echo "VideoHelp: $i: not found."
                AllThere="No"
        } fi
done
if [ -z "$AllThere" ]; then {
        TmpFile=/tmp/vrom.$$
        ${VROMDUMP} > ${TmpFile} 2> /dev/null
        /bin/strings ${TmpFile} | /bin/sort -u | \
            /usr/bin/egrep -i \
            "ver|bios|date|rev|\(c\)|copyright|[12][09][06789][0-9]" | ${FOLD}
        rm -f ${TmpFile}
} fi
==================================End VideoHelp=================================

From the Xinuos technical article database, record 105600. Reproduced with permission. The original is at www.sco.com/ta/105600, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.