9fans archive / 2000 / 07 / 70 /    prev next

From: "Bruce G. Stewart" <bruce.g.stewart@wor...>
Subject: Re: [9fans] Fixing the Older Millennium-1 Cursor
Date: Wed, 5 Jul 2000 08:32:43 GMT

I missed the first part of this thread, so I don't know if the problem it
refers to has been solved. Here's the fix I put in for the cursor on a
Millennium I card (this particular card was V2.3.)

The change adjusts the end-vertical-blanking parameter to be 2 less than the
number of lines, visible and not, per scan. It has NOT been tested with
interlaced
modes; in fact, it has not been tested with anything other than -m p815
1600x1200x8.

You will want to save the file /386/bin/aux/vga somewhere in case you need to go
back.

Add the line numbered 357 here to the function init() in file
/sys/src/cmd/aux/vga/mga2164w.c:

353
354          offset = (mode->x*mode->z) >> ((pixbuswidth==32)? 6 : 7);
355          vga->crt[0x13] = offset;
356          vga->crt[0x14] = 0;
357          vga->crt[0x16] = mode->vt - 2; // bgs 30-Jun-00
358          vga->crt[0x17] = 0xE3;
359

Then build and reboot:

cd /sys/src/cmd/aux/vga
disk/kfscmd allow
mk install
disk/kfscmd halt
Ctrl-Alt-Delete


Stephen Wynne wrote:

> RAMDAC docs: http://www.ti.com/sc/docs/products/analog/tvp3025.html
> Where to get started: /src/9/pc/vgamga2164w.c
> What v3 does support: http://www.ti.com/sc/docs/products/analog/tvp3026.html