Newsgroups: comp.os.minix
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!email!vmars!hp
From: hp@vmars.tuwien.ac.at (Peter Holzer)
Subject: Re: mini-X textmode problems
Message-ID: <1991Jun12.085637.27801@email.tuwien.ac.at>
Sender: news@email.tuwien.ac.at
Nntp-Posting-Host: nowhere.vmars.tuwien.ac.at
Organization: Technical University Vienna, Dept. for Realtime Systems, AUSTRIA
References: <56038@nigel.ee.udel.edu>
Date: Wed, 12 Jun 1991 08:56:37 GMT
Lines: 32

Stefan.Schroer@cyber.urz.uni-wuppertal.dbp.de writes:

>BUT: If I terminate a graphics program, mini-X won't come
> back to the former textmode. I've tried to use the Video Parameter

Can you give us a little more details about this? Does it stay in
graphics mode, switch to the wrong text mode, ...

On my Paradise VGA (256k) switching to text mode behaved like this:
It switched to EGA (8x14) text mode and loaded some (apparently) random
values into the offset register. So the screen turns black or shows
junk. If I force the screen to scroll (e.g. by pressing return a few
times) the contents of the screen reappear.

>Table to write the CRTC and GC registers as done for graphics mode,
>but without any success.
>Is anyone out there, who knows how to write the video registers ?
>Who knows about 800x600 or 1024x768 modes ?

When I have time I am planning to add 800x600 (and possibly some
256-color mode) for the Paradise Card to Mini-X. I wrote a little
program that reads all VGA-registers in Turbo-C. So you can (in MS-DOS)
put your card into any mode by using the BIOS-Call, then run my program
to find out the register contents and then use these values in the
Minix device driver to get this mode from Minix. If there is interest I
will post it in the next days.

--
|    _  | Peter J. Holzer                       | Think of it   |
| |_|_) | Technical University Vienna           | as evolution  |
| | |   | Dept. for Real-Time Systems           | in action!    |
| __/   | hp@vmars.tuwien.ac.at                 |     Tony Rand |
