From: okamoto@granite.cias.osakafu-u.ac.jp
To: 9fans@cse.psu.edu
Subject: Re: [9fans] GeForece4 MX (Inno3D Tornedo)
Date: Tue, 15 Apr 2003 18:59:04 +0900 [thread overview]
Message-ID: <ee0a291e865e2f470f4e538089d909aa@granite.cias.osakafu-u.ac.jp> (raw)
In-Reply-To: <f66f68c6688c5fadb45fe1000ab9fd18@granite.cias.osakafu-u.ac.jp>
> I meant half font size in horizontal, and normal size in vertical.
> It looks like window is compressed to 1/2 size horizontally,
> and then, I see two windows side by side horizonttally.
This was solved by a small change to the snarf() function in
/sys/src/cmd/aux/vga/nvidia.c by adding three lines as follows:
static void
snarf(Vga* vga, Ctlr* ctlr)
{
Nvidia *nv;
Pcidev *p;
ulong m, *mmio, tmp;
int i;
if(vga->private == nil){
..............
/*
* Unlock
*/
vgaxo(Crtx, 0x1F, 0x57);
if (nv->pextdev[0x00000000] & 0x00000040){
nv->crystalfreq = RefFreq;
vga->m[1] = 14;
} else {
nv->crystalfreq = 13500000;
vga->m[1] = 13;
}
> if(nv->pci->did == 0x171)
> if(nv->pextdev[0x00000000] & (1 << 22))
> nv->crystalfreq = 27000000;
if (nv->arch == 4) {
tmp = nv->pfb[0x00000000];
if (tmp & 0x0100) {
vga->vmz = ((tmp >> 12) & 0x0F) * 1024 + 1024 * 2;
} else {
tmp &= 0x03;
if (tmp)
vga->vmz = (1024*1024*2) << tmp;
else
vga->vmz = 1024*1024*32;
}
}
.................
}
Kenji
next prev parent reply other threads:[~2003-04-15 9:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-15 7:25 okamoto
2003-04-15 8:34 ` okamoto
2003-04-15 9:59 ` okamoto [this message]
2003-04-15 15:23 ` Russ Cox
2003-04-16 0:50 ` okamoto
2003-04-16 1:36 ` okamoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ee0a291e865e2f470f4e538089d909aa@granite.cias.osakafu-u.ac.jp \
--to=okamoto@granite.cias.osakafu-u.ac.jp \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).