9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] nvidia driver fix
@ 2002-07-18 12:48 Nicholas Waples
  0 siblings, 0 replies; 3+ messages in thread
From: Nicholas Waples @ 2002-07-18 12:48 UTC (permalink / raw)
  To: 9fans


 Just updated my system from the net and my Geforce 2 MX no longer worked.
The following changes fixed it.


% diff nvidia.c nvidia.c.orig
41c41
< 	0x19, 0x1A, 0x25, 0x28, 0x2D, 0x30, 0x31, -1
---
> 	0x19, 0x1A, 0x21, 0x25, 0x28, 0x2D, 0x30, 0x31, 0x53, 0x54, -1
255a256,258
> 		vga->crt[0x21] = 0xFA;
> 		vga->crt[0x53] = 0;
> 		vga->crt[0x54] = 0;
499,501d501
< 		vgaxo(Crtx, 0x21, 0xFA);
< 		vgaxo(Crtx, 0x53, 0);
< 		vgaxo(Crtx, 0x54, 0);



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

* Re: [9fans] nvidia driver fix
  2002-07-18 14:01 jmk
@ 2002-07-18 21:38 ` Nicholas Waples
  0 siblings, 0 replies; 3+ messages in thread
From: Nicholas Waples @ 2002-07-18 21:38 UTC (permalink / raw)
  To: 9fans



On Thu, 18 Jul 2002 jmk@plan9.bell-labs.com wrote:

> i'm not disputing there is a problem with the addition of the lcd
> code, but your fix is confusing. unless you are using a flat panel,
> the path through the orig code and your fixed code should be the same,
> with the exception that the orig code reads crt registers 0x21, 0x53
> and 0x54. there's only the xfree86 code to go on here, and that doesn't
> read those registers and only sets them if it's a flat panel; that
> might be the right answer.

 Thats confusing because thats what I thought I did (set the registers
only if its a lcd). Unless Im working off a different version of the
source file.

> in what way didn't it work?

 It didnt like those registers being set.

> On Thu Jul 18 08:50:48 EDT 2002, nickw@pobox.com wrote:
> >
> >  Just updated my system from the net and my Geforce 2 MX no longer worked.
> > The following changes fixed it.
> >
> >
> > % diff nvidia.c nvidia.c.orig
> > 41c41
> > < 	0x19, 0x1A, 0x25, 0x28, 0x2D, 0x30, 0x31, -1
> > ---
> > > 	0x19, 0x1A, 0x21, 0x25, 0x28, 0x2D, 0x30, 0x31, 0x53, 0x54, -1
> > 255a256,258
> > > 		vga->crt[0x21] = 0xFA;
> > > 		vga->crt[0x53] = 0;
> > > 		vga->crt[0x54] = 0;
> > 499,501d501
> > < 		vgaxo(Crtx, 0x21, 0xFA);
> > < 		vgaxo(Crtx, 0x53, 0);
> > < 		vgaxo(Crtx, 0x54, 0);
> >
>





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

* Re: [9fans] nvidia driver fix
@ 2002-07-18 14:01 jmk
  2002-07-18 21:38 ` Nicholas Waples
  0 siblings, 1 reply; 3+ messages in thread
From: jmk @ 2002-07-18 14:01 UTC (permalink / raw)
  To: 9fans

i'm not disputing there is a problem with the addition of the lcd
code, but your fix is confusing. unless you are using a flat panel,
the path through the orig code and your fixed code should be the same,
with the exception that the orig code reads crt registers 0x21, 0x53
and 0x54. there's only the xfree86 code to go on here, and that doesn't
read those registers and only sets them if it's a flat panel; that
might be the right answer.

in what way didn't it work?

On Thu Jul 18 08:50:48 EDT 2002, nickw@pobox.com wrote:
> 
>  Just updated my system from the net and my Geforce 2 MX no longer worked.
> The following changes fixed it.
> 
> 
> % diff nvidia.c nvidia.c.orig
> 41c41
> < 	0x19, 0x1A, 0x25, 0x28, 0x2D, 0x30, 0x31, -1
> ---
> > 	0x19, 0x1A, 0x21, 0x25, 0x28, 0x2D, 0x30, 0x31, 0x53, 0x54, -1
> 255a256,258
> > 		vga->crt[0x21] = 0xFA;
> > 		vga->crt[0x53] = 0;
> > 		vga->crt[0x54] = 0;
> 499,501d501
> < 		vgaxo(Crtx, 0x21, 0xFA);
> < 		vgaxo(Crtx, 0x53, 0);
> < 		vgaxo(Crtx, 0x54, 0);
> 


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

end of thread, other threads:[~2002-07-18 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-18 12:48 [9fans] nvidia driver fix Nicholas Waples
2002-07-18 14:01 jmk
2002-07-18 21:38 ` Nicholas Waples

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).