Subject: Re: 'restorefont' for NetBSD 1.4.2 (i386)
To: Jenkins, Graham K [IBM GSA] <Graham.K.Jenkins@team.telstra.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 06/12/2000 12:10:27
On Mon, Jun 12, 2000 at 10:08:36AM +1000, Jenkins, Graham K [IBM GSA] wrote:
> 
> What is this program supposed to do ?
> NetBSD is not linux, and doesn't have thinks like svgalib.
> 
> 'restorefont' is used to save console fonts to a file before
> starting X, and then to restore them from that file after exit
> from X:
>   restorefont -w /tmp/cons
>   startx
>   restorefont -r /tmp/cons
> 
> This is necessary when using some video cards (e.g. Cirrus 5428!)
> because XFree86 corrupts card memory content (see README.cirrus).

This is a bug in XFree86 then. It should be able to do the equivalent
of restorefont (it knows how to talk to the card).

> 
> Of course one should be able to do this with:
>   startx
>   cd /usr/share/pcvt/fonts
>   wsfontload -h 8 -e ibm vt220h.808  (or similar)
> 
> But it doesn't work - and it can only be executed 4 or 5 times - after
> which it says 'no room on device'.

You should definitively send a PR for this.


> 
> Or one might be able to use 'loadfont' with a kernel compiled for 'pcvt';
> but I have just read that 'pcvt' is to be discontinued!

Did you try it ? Does it work ?
If so the wscons peoples should be able to fix wscons quickly.

> 
> Manuel, I look forward to receiving your suggestions ..

I'm affraid I won't help you much here ... Xfree/wscons is really not my
area, I don't know the internals.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--