Subject: Re: TGA2 with sync on green on fixed frequency monitor
To: None <jkunz@unixag-kl.fh-kl.de>
From: R. C. Dowdeswell <elric@mabelode.imrryr.org>
List: port-alpha
Date: 08/21/2000 09:35:01
On 965669914 seconds since the Beginning of the UNIX epoch
jkunz@unixag-kl.fh-kl.de wrote:
>
>Hi.
>
>I am the proud owner of an Alphastation 200 4/166. A very nice and fast
>machine. (Compared to my VAXen. ;-)  ) There is a TGA2 in it, what
>works well with 1.5_ALPHA. I want to use an old HP fixed frequency
>monitor that needs sync on green. The monitor can sync to the signals
>from the Alphastation (1280x1024@72Hz) but I need an external RGB H/V
>sync to RGB sync on green adapter, that I need for an other machine...
>Is there a way to configure the TGA2 to sync on green? I discovered the
>"tga_sync_green" environment variable, but it has no effect. I played
>with the jumpers on the card, without any change. 
>And: Is there a way to configure the SRM console to use 1280x1024@72Hz
>instead of the standard VGA 720x400@70Hz?

Sorry that it took me a while to get back to you on this, I had a time
finding the documentation.  Anyway, try applying the following patch in
src/sys/dev/ic and you can then build a kernel that [should] set the
TGA2 to sync-on-green.

I'll think about what the best way to get this to be a bit more
configurable is in a bit.  :-)

 == Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/  ==
 == The Unofficial NetBSD Web Pages        http://www.Imrryr.ORG/NetBSD/  ==
 == The NetBSD Project                            http://www.NetBSD.ORG/  ==

Index: bt485.c
===================================================================
RCS file: /cvsroot/syssrc/sys/dev/ic/bt485.c,v
retrieving revision 1.2
diff -u -u -r1.2 bt485.c
--- bt485.c	2000/04/02 18:55:01	1.2
+++ bt485.c	2000/08/21 16:32:14
@@ -205,6 +205,10 @@
 	 * resolution.
 	 */
 	regval |= 0x02;
+	/*
+	 * Set the RAMDAC to sync on green.
+	 */
+	regval |= 0x08;
 	data->ramdac_wr(data->cookie, BT485_REG_COMMAND_0, regval);
 
 	/* Set the RAMDAC to 8BPP (no interestion options). */