Re: How's about tga doing composite sync or sync on green?

Harald Koenig (koenig@tat.physik.uni-tuebingen.de)
Mon, 10 Feb 1997 11:06:58 +0100 (MET)


> I think the subject says it all. I wonder if there is a way to get the tga
> to produce a sync suitable for a sun 4 bnc or a digital 3 bnc monitor (without
> all the hassel of building some external breadbox converter dealie with 5V
> power and all that) Thanks a bunch

I don't know if the headware really support it. please get the XFree86 3.2 sources,
apply the following patch, compile a new server binary and use option "sync_on_green"...

--- xc/programs/Xserver/hw/xfree86/accel/tga/tga.c~ Sat Oct 19 17:15:22 1996
+++ xc/programs/Xserver/hw/xfree86/accel/tga/tga.c Mon Feb 10 11:01:45 1997
@@ -130,6 +130,7 @@
extern Bool xf86Exiting, xf86Resetting, xf86ProbeFailed;
ScreenPtr savepScreen = NULL;
Bool tgaDAC8Bit = FALSE;
+Bool tgaDACSyncOnGreen = FALSE;
Bool tgaBt485PixMux = FALSE;
Bool tgaReloadCursor, tgaBlockCursor;
Bool tgaPowerSaver = FALSE;
@@ -330,6 +331,7 @@

OFLG_SET(OPTION_DAC_8_BIT, &validOptions);
OFLG_SET(OPTION_DAC_6_BIT, &validOptions);
+ OFLG_SET(OPTION_SYNC_ON_GREEN, &validOptions);
OFLG_SET(OPTION_POWER_SAVER, &validOptions);

xf86VerifyOptions(&validOptions, &tgaInfoRec);
@@ -429,6 +431,9 @@

if (OFLG_ISSET(OPTION_DAC_6_BIT, &tgaInfoRec.options))
tgaDAC8Bit = FALSE;
+
+ if (OFLG_ISSET(OPTION_SYNC_ON_GREEN, &tgaInfoRec.options))
+ tgaDACSyncOnGreen = TRUE;

if (OFLG_ISSET(OPTION_POWER_SAVER, &tgaInfoRec.options))
tgaPowerSaver = TRUE;
--- xc/programs/Xserver/hw/xfree86/accel/tga/tga.h~ Thu Oct 17 17:18:14 1996
+++ xc/programs/Xserver/hw/xfree86/accel/tga/tga.h Mon Feb 10 11:02:13 1997
@@ -101,6 +101,7 @@
extern int tgaValidTokens[];

extern Bool tgaDAC8Bit;
+extern Bool tgaDACSyncOnGreen;

/* Function Prototypes */

--- xc/programs/Xserver/hw/xfree86/accel/tga/tgainit.c~ Fri Oct 18 17:02:11 1996
+++ xc/programs/Xserver/hw/xfree86/accel/tga/tgainit.c Mon Feb 10 11:00:04 1997
@@ -202,7 +202,7 @@
#endif
{
/* Specific BT485 setup, for UDB(Multia) 8plane TGA */
- BT485_WRITE(0xA0 | (tgaDAC8Bit ? 2 : 0), BT485_CMD_0);
+ BT485_WRITE(0xA0 | (tgaDAC8Bit ? 2 : 0) | (tgaDACSyncOnGreen ? 0x08 : 0x00, BT485_CMD_0);
BT485_WRITE(0x01, BT485_ADDR_PAL_WRITE);
BT485_WRITE(0x14, BT485_CMD_3); /* 64x64 cursor */
BT485_WRITE(0x40, BT485_CMD_1); /* 8bpp */

Harald

--
All SCSI disks will from now on                     ___       _____
be required to send an email notice                0--,|    /OOOOOOO\
24 hours prior to complete hardware failure!      <_/  /  /OOOOOOOOOOO\
                                                    \  \/OOOOOOOOOOOOOOO\
                                                      \ OOOOOOOOOOOOOOOOO|//
Harald Koenig,                                         \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik                              //  /     \\  \
koenig@tat.physik.uni-tuebingen.de                     ^^^^^       ^^^^^