Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 1997 16:18:07 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        grog@lemis.com
Cc:        msmith@atrad.adelaide.edu.au, hackers@freebsd.org
Subject:   Re: reset screen hardware?
Message-ID:  <199708150648.QAA24933@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199708140837.RAA00646@papillon.lemis.com> from "grog@lemis.com" at "Aug 14, 97 05:37:34 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
grog@lemis.com stands accused of saying:
> Michael Smith writes:
> > Alfred Perlstein stands accused of saying:
> >> I'm not familiar with the protection mechanism in freebsd, if i wrote a
> >> program to reset the text screens by programming the ports what kind of
> >> skeleton code would it need?
> >
> > It wouldn't work.
> 
> Why not?  The X server does just that.  Sure, before it starts, it
> does a lot of checking, but that's relatively recent.  Just a few
> years ago, you had to tell the X server what your board was.  And if

In many cases, you still do.  Regardless, you are missing the point.

Alf wants to use the "standard" VGA registers to effect the return to
"normal" text mode.  This will not work.

> Alfred: Mike's right.  It's a pain, and also a can of worms.  But he's
> wrong when he says it can't be done.  If you want to do yourself and
> everybody else a service, investigate the probe and reset code in
> XFree86 and figure out how to cannibalize it to save the board state
> (it makes sense to have this done during boot at probe time) and
> create an ioctl to use this information to reset to text mode.

... and then write about thirty or so LKMs to cover the major video
chipsets in small enough chunks, and watch your code rot because nobody
in their right mind would use it.

No, Soren is right; the only way that this is going to happen is to use
the BIOS on the card.

> Greg

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708150648.QAA24933>