help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VGA console


From: Marcus Brinkmann
Subject: Re: VGA console
Date: Wed, 18 Sep 2002 13:19:50 +0200
User-agent: Mutt/1.4i

On Wed, Sep 18, 2002 at 12:36:51PM +0200, marco@linuxrulez.nl wrote:
> I've tried the VGA console yesterday. I had some problems with the font.
> Half of the lines of the font is shown (even or uneven lines, I'm not sure
> which ones). The content is shown, switching virtual consoles also works.

This is a very interesting bug!  Thanks for trying it out.
 
> I've started the console client like this:
> 
> console -D . -d vga -d pc_speaker -d pc_kbd /dev/vts

I assume you don't have a default font file in
/lib/hurd/fonts/vga-system.bdf.
 
> Some relevant information about my Hurd box:
> 
> Videocard: Diamond Viper 770 (TNT2 Chipset)
> Monitor: Old 14" monitor. It can handle a maximum resolution of 800x600.
> (and not very high refresh rates, I can't give exact values because I have
> no manual).
> 
> I hope this is enough information :)

Not quite, but I know what else I want :)

The very first is, which version of the VGA console did you try?  This is
very important, as I didn't update the tar file on alpha.gnu.org for a
while (and won't anymore).

First, we need to find out what went wrong: Reading the font from the card,
writing it back to the card, or generating the font data structure.  There
is a simple test you should do first:  Get the UCS font package by Markus
Kuhn and start the console with -d vga --font 8x13.bdf as well as -d vga
--font 9x15.bdf.  This will not use the VGA card memory font, and I know
that the font format is correctly parsed and processed by my code (as I am
using those fonts), so if that works we know that the problem is in reading
out the font of your card (or generating the data structure).  If this
doesn't work (you see every second line etc), then we know that writing the
font into the card memory already fails, and you don't need to proceed.  In
this latter case, I need to bother you with providing me some details about
your VGA register settings, but let's hope it works out ok.

Now, let's assume the bdf file test went ok.  Then I need you to run the
console with "console .... 2> /tmp/vga-card.bdf" after modifying
vga-dynafont.c:dynafont_new() this way:

Change:

  if (!font)
    font = create_system_font ();

into

  if (!font)
    {
      font = create_system_font ();
      bdf_write (stderr, font);
    }

This should dump the vga card font as read out by the console into the file
/tmp/vga-card.bdf.  Send me that file (or better, send me the header of the
file and the first couple of character bitmaps to avoid copyright issues.
I will then take a look at it and decide what to do next.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]