9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] TNT
@ 2001-04-04 10:26 paurea
  2001-04-04 11:24 ` Axel Belinfante
  2001-04-04 22:47 ` Nicholas Waples
  0 siblings, 2 replies; 12+ messages in thread
From: paurea @ 2001-04-04 10:26 UTC (permalink / raw)
  To: 9fans

I have been trying to make the TNT driver work form my card, but I can't
even get it being used. The message it says is something like

dbctl: "nvidia" driver not found.

I have:
Copied the vganvidia.c supplied to /sys/src/9/pc

Added vganvidia.$O\ to pcdisk

Compiled 9pcdisk.gz

Copied it to an installation disk.


Copied the nvidia.c supplied to /sys/src/cmd/vga

Added nvidia.$O\ to the mkfile of vga

Added extern Ctlr nvidia; and

extern Ctlr nvidiahwgc; to vgadb.h

and extern Ctlr nvidia; to vga.h

Compiled it. Installed it.
An added an entry in vgadb for my
card:

ctlr 0xC0072 "Diamond Viper 550"
     ctlr nvidia
     ctlr nvidiahwgc
     link=vga

Any idea?. Please be detailed, any change means changing the card...

TIA.
--
                 Saludos,
                         Gorka

"Curiosity sKilled the cat"
--
    /"\
    \ /    ascii ribbon campaign - against html mail
     X                           - against ms attachments
    / \



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [9fans] TNT
@ 2001-04-04 14:10 jmk
  2001-04-04 23:41 ` Nicholas Waples
  0 siblings, 1 reply; 12+ messages in thread
From: jmk @ 2001-04-04 14:10 UTC (permalink / raw)
  To: 9fans

On Wed Apr  4 07:26:26 EDT 2001, Axel.Belinfante@cs.utwente.nl wrote:
> I'm confused about the meaning of the '+cur' and '=cur' that follow
> the vga* lines in the confguration files.

'+cur' means this driver includes a hardware cursor section;
'=cur' means this driver is only for a hardware cursor.

You may also want to make the following changes to vganvidia.c to make
the cursor behave 'properly' at the screen edges.

196a197
> 	scr->offset = curs->offset;
211c212
< 	*cursorpos = (p.x & 0xFFFF) | (p.y << 16);
---
> 	*cursorpos = ((p.y+scr->offset.y)<<16)|((p.x+scr->offset.x) & 0xFFFF);


The only other problem I see is that when you move the cursor around
continuously there's sometimes a flash of an uninitialised (mostly white)
cursor. Maybe it's just my card:

	0xC00A2="NVIDIA TNT2 Model 64 BIOS V2.05.13 "	# NVIDIA TNT Model 64

All in all, a nice contribution, thank you.

--jim


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [9fans] TNT
@ 2001-04-04 15:58 jmk
  0 siblings, 0 replies; 12+ messages in thread
From: jmk @ 2001-04-04 15:58 UTC (permalink / raw)
  To: 9fans

On Wed Apr  4 10:42:27 EDT 2001, nickw@pobox.com wrote:
>  Well the xfree86 drivers disable the cursor when changing the position,
> so maybe it should do the same (just like in nvidiacurload - lowest bit in
> crt 0x31).

I tried that but it doesn't seem to help. It doesn't happen often under
normal use but it's just enough to make you blink now and then.

--jim



^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [9fans] TNT
@ 2001-04-05 10:36 paurea
  2001-04-05 11:47 ` Axel Belinfante
  0 siblings, 1 reply; 12+ messages in thread
From: paurea @ 2001-04-05 10:36 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 395 bytes --]

It works, it works!!!. It was the missing entry
in data.c after all.

It works fine for me in 1280x1024. In other
modes the "virtual screen" is greater than
the physical. Anyway, thanks a lot Nick, now
I can use Plan9 at home!!.

Anyone has tried it for Ultra TNT??. What
would it take to add 16 bits support??.
Just in case I have some spare time...


				Saludos,
						Gorka


[-- Attachment #2: Type: message/rfc822, Size: 3632 bytes --]

From: Axel Belinfante <Axel.Belinfante@cs.utwente.nl>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] TNT
Date: Wed, 04 Apr 2001 13:24:49 +0200
Message-ID: <200104041124.NAA22399@polya.cs.utwente.nl>

> I have been trying to make the TNT driver work form my card, but I can't
> even get it being used. The message it says is something like
>
> dbctl: "nvidia" driver not found.

I have encountered the same problem as you have.
I think you also have to edit /sys/src/cmd/vga/data.c
to add lines similar as the others.
(I have made a new boot/install disk, but not yet tried to use it)

> Added vganvidia.$O\ to pcdisk
Shouldn't you add something like 'vganvidia +cur' to pcdisk (.$O)?
I'm confused about the meaning of the '+cur' and '=cur' that follow
the vga* lines in the confguration files.

> Added extern Ctlr nvidia; and
> extern Ctlr nvidiahwgc; to vgadb.h

Hmm... I did only add the extern Ctrlr statements to vga.h
Did not find vgadb.h

About /lib/vgadb: do we need the link=vga line for the nvidia
controller? I noticed some controller(s?) in the file without
such a line.

Axel.

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [9fans] TNT
@ 2001-04-05 15:05 paurea
  0 siblings, 0 replies; 12+ messages in thread
From: paurea @ 2001-04-05 15:05 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 186 bytes --]

Probably it was protected (the little window) against write. I
have experienced it to fail silently. I seems to work but it
doesn't really write.

							Saludos,
									Gorka


[-- Attachment #2: Type: message/rfc822, Size: 3581 bytes --]

From: Axel Belinfante <Axel.Belinfante@cs.utwente.nl>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] TNT
Date: Thu, 05 Apr 2001 13:47:11 +0200
Message-ID: <200104051147.NAA26186@polya.cs.utwente.nl>

> It was the missing entry in data.c after all.
Glad to hear that!

> Anyone has tried it for Ultra TNT??. What
> would it take to add 16 bits support??.
> Just in case I have some spare time...

I only have a simple V3400TNT card that I hope to try (finally?)
tonight at home. When it works I will post the bios string.

(Yesterday I did something wrong when putting the boot disk on floppy
 using 'cat ndisk > /dev/fd0disk': the disk still contained the old
 contents; today I did the same and now the cat worked. yesterday
 I did have the floppy mounted, but unmounted before the unsuccessful
 cat, I'm almost sure. Still, could that explain the difference?)

Axel.

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [9fans] TNT
@ 2001-05-11 14:21 Russ Cox
  0 siblings, 0 replies; 12+ messages in thread
From: Russ Cox @ 2001-05-11 14:21 UTC (permalink / raw)
  To: 9fans

Because it comes up so often, I added the TNT
explanation message to the wiki

http://plan9.bell-labs.com/wiki/plan9/39/index.html

Russ


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-05-11 14:21 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-04 10:26 [9fans] TNT paurea
2001-04-04 11:24 ` Axel Belinfante
2001-04-04 16:27   ` paurea
2001-04-04 22:47 ` Nicholas Waples
2001-04-04 16:30   ` paurea
2001-04-04 14:10 jmk
2001-04-04 23:41 ` Nicholas Waples
2001-04-04 15:58 jmk
2001-04-05 10:36 paurea
2001-04-05 11:47 ` Axel Belinfante
2001-04-05 15:05 paurea
2001-05-11 14:21 Russ Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).