Re: 2.1.71 failes to believe my VGA is usable as console

Miquel van Smoorenburg (miquels@cistron.nl)
5 Dec 1997 18:08:27 +0100


In article <19971205153853.11101@Elf.mj.gts.cz>,
Pavel Machek <pavel@Elf.mj.gts.cz> wrote:
>Hi!
>
>con_is_present() returns false at first possibility, there's nothing
>on the screen even if I put 1 minute delay between writew and
>readw. Any ideas?

Hmm, that's strange I tried it on several adapters (PCI and ISA), and
they all worked fine. What kind of adapter do you have? Obviously, this:

p = (unsigned short *)(((ORIG_VIDEO_MODE == 7) ? 0xb0000 : 0xb8000) +
+ VGA_OFFSET);

somehow goes wrong. It shouldn't, because otherwise the rest of console.c
wouldn't work, so something _is_ wrong.

Could you try something like this:

char buf[128];

sprintf(buf, "VGA at %p\n", p);
vt_console_print(NULL, buf, strlen(buf));

In con_is_present() ?

I'll have another look at it tomorrow...

Mike.

-- 
 Miquel van Smoorenburg |  Studying to be a technomage   <*>
    miquels@cistron.nl  | "May you live in interesting times"