Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* red and blue swapped on Alpha?
@ 1998-07-02 20:04 B. James Phillippe
  1998-07-06 16:59 ` Jim Paradis
  0 siblings, 1 reply; 16+ messages in thread
From: B. James Phillippe @ 1998-07-02 20:04 UTC (permalink / raw)
  To: RedHat AXP list

Hello,

	I'm running stock RedHat-5.1 on an Avanti Alphabox and I notice
that at the text console, the colors red and blue are swapped (everywhere).
Is this something anyone else has run into?  The video card is a ZLXp-E2.

thanks,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan


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

* Re: red and blue swapped on Alpha?
  1998-07-02 20:04 red and blue swapped on Alpha? B. James Phillippe
@ 1998-07-06 16:59 ` Jim Paradis
  1998-07-06 18:09   ` B. James Phillippe
  0 siblings, 1 reply; 16+ messages in thread
From: Jim Paradis @ 1998-07-06 16:59 UTC (permalink / raw)
  To: axp-list

> 	I'm running stock RedHat-5.1 on an Avanti Alphabox and I notice
> that at the text console, the colors red and blue are swapped (everywhere).
> Is this something anyone else has run into?  The video card is a ZLXp-E2.

I hate to ask, but is your video cable hooked up correctly?  If your
monitor has separate inputs for r/g/b, you might have the "r" and "b"
swapped (I've made that mistake myself; arrange r/g/b to match the
order on the back of the monitor with the plug-ends facing me, then
turn them around to plug 'em in and they're backwards).

-- 
Jim Paradis (paradis@linux01.hlo.dec.com)     "The early bird gets the worm.
Digital Equipment Corporation		       If you want something else for
(508)841-3243				       breakfast, get up later."
http://www.tiac.net/users/jrp/index.html


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

* Re: red and blue swapped on Alpha?
  1998-07-06 16:59 ` Jim Paradis
@ 1998-07-06 18:09   ` B. James Phillippe
  1998-07-06 22:03     ` Paul Tomblin
  0 siblings, 1 reply; 16+ messages in thread
From: B. James Phillippe @ 1998-07-06 18:09 UTC (permalink / raw)
  To: axp-list

On Mon, 6 Jul 1998, Jim Paradis wrote:

> > 	I'm running stock RedHat-5.1 on an Avanti Alphabox and I notice
> > that at the text console, the colors red and blue are swapped (everywhere).
> > Is this something anyone else has run into?  The video card is a ZLXp-E2.
> 
> I hate to ask, but is your video cable hooked up correctly?  If your
> monitor has separate inputs for r/g/b, you might have the "r" and "b"
> swapped (I've made that mistake myself; arrange r/g/b to match the
> order on the back of the monitor with the plug-ends facing me, then
> turn them around to plug 'em in and they're backwards).

No, that's a good question.  Thanks for getting back to me, btw.  However,
I'm pretty sure that I have it connected properly because it's a standard
DB15 on both ends and will only plug in one way.  The monitor is a standard
PC multi-freq. 14" POS Package Bell.  Note also, and this is most peculiar,
the colors are only swapped on the console; in X, colors come out as
they should...  Any other ideas?

(how I am able to run X with the XLZp-E2: Tom Rowley's most excellent
recent XF86-TGA patches).

thanks,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan


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

* Re: red and blue swapped on Alpha?
  1998-07-06 18:09   ` B. James Phillippe
@ 1998-07-06 22:03     ` Paul Tomblin
  1998-07-06 23:41       ` B. James Phillippe
  1998-07-07 12:28       ` Scott Serr
  0 siblings, 2 replies; 16+ messages in thread
From: Paul Tomblin @ 1998-07-06 22:03 UTC (permalink / raw)
  To: axp-list

Quoting B. James Phillippe (bryan@terran.org):
> PC multi-freq. 14" POS Package Bell.  Note also, and this is most peculiar,

Just for future reference, note that "POS" and "Packard Bell" are redundant.
Saying the second one pretty much guarantees the first one.  I speak as a
two-time victim of Packard Bell.

-- 
Paul Tomblin, ptomblin@xcski.com.
"An appointment is an engagement to see someone, while a morningstar is a
large lump of metal used for viciously crushing skulls.  It is important not
to confuse the two, isn't it, Mr. --?" - Terry Pratchett


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

* Re: red and blue swapped on Alpha?
  1998-07-06 22:03     ` Paul Tomblin
@ 1998-07-06 23:41       ` B. James Phillippe
  1998-07-07  1:20         ` Tim Rowley
  1998-07-07 12:28       ` Scott Serr
  1 sibling, 1 reply; 16+ messages in thread
From: B. James Phillippe @ 1998-07-06 23:41 UTC (permalink / raw)
  To: axp-list

On Mon, 6 Jul 1998, Paul Tomblin wrote:

> Quoting B. James Phillippe (bryan@terran.org):
> > PC multi-freq. 14" POS Package Bell.  Note also, and this is most peculiar,
> 
> Just for future reference, note that "POS" and "Packard Bell" are redundant.
> Saying the second one pretty much guarantees the first one.  I speak as a
> two-time victim of Packard Bell.

Yes, you're exactly right.  FYI, the POS can only run for a few hours at a
time before "popping" and sending a surge into the video card.

But, to retrack the original topic: anyone here using a ZLXp-E2 on
RedHat-5.1 Linux text console in 640x480 have their red and blue colors
swapped?

-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan


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

* Re: red and blue swapped on Alpha?
  1998-07-06 23:41       ` B. James Phillippe
@ 1998-07-07  1:20         ` Tim Rowley
  1998-07-07  2:34           ` B. James Phillippe
  0 siblings, 1 reply; 16+ messages in thread
From: Tim Rowley @ 1998-07-07  1:20 UTC (permalink / raw)
  To: axp-list

B. James Phillippe wrote:
> But, to retrack the original topic: anyone here using a ZLXp-E2 on
> RedHat-5.1 Linux text console in 640x480 have their red and blue colors
> swapped?

Perhaps... but all command-line tools I use output in shades of
gray.  Got anything good for displaying a palette in console
mode?

-tor


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

* Re: red and blue swapped on Alpha?
  1998-07-07  1:20         ` Tim Rowley
@ 1998-07-07  2:34           ` B. James Phillippe
  1998-07-07  5:56             ` Tim Rowley
  0 siblings, 1 reply; 16+ messages in thread
From: B. James Phillippe @ 1998-07-07  2:34 UTC (permalink / raw)
  To: axp-list

On Mon, 6 Jul 1998, Tim Rowley wrote:

> B. James Phillippe wrote:
> > But, to retrack the original topic: anyone here using a ZLXp-E2 on
> > RedHat-5.1 Linux text console in 640x480 have their red and blue colors
> > swapped?
> 
> Perhaps... but all command-line tools I use output in shades of
> gray.  Got anything good for displaying a palette in console
> mode?

Sure, this is what I use to test it (but DIR_COLORS and dialog have the
same problem):

#!/bin/sh
# - colortest
echo "Showing ANSI colors..."
echo ^[[30mColor 30^[[0m
echo ^[[31mColor 31^[[0m
echo ^[[32mColor 32^[[0m
echo ^[[33mColor 33^[[0m
echo ^[[34mColor 34^[[0m
echo ^[[35mColor 35^[[0m
echo ^[[36mColor 36^[[0m
echo ^[[37mColor 37^[[0m
echo ^[[38mColor 38^[[0m
echo ^[[39mColor 39^[[0m
echo ^[[1\;30mColor 30^[[0m
echo ^[[1\;31mColor 31^[[0m
echo ^[[1\;32mColor 32^[[0m
echo ^[[1\;33mColor 33^[[0m
echo ^[[1\;34mColor 34^[[0m
echo ^[[1\;35mColor 35^[[0m
echo ^[[1\;36mColor 36^[[0m
echo ^[[1\;37mColor 37^[[0m
echo ^[[1\;38mColor 38^[[0m
echo ^[[1\;39mColor 39^[[0m

An excerpt from DIR_COLORS showing what's what:

# Attributes
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white

cheers,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan


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

* Re: red and blue swapped on Alpha?
  1998-07-07  2:34           ` B. James Phillippe
@ 1998-07-07  5:56             ` Tim Rowley
  1998-07-07  7:28               ` B. James Phillippe
  0 siblings, 1 reply; 16+ messages in thread
From: Tim Rowley @ 1998-07-07  5:56 UTC (permalink / raw)
  To: axp-list

B. James Phillippe wrote:
> > > But, to retrack the original topic: anyone here using a ZLXp-E2 on
> > > RedHat-5.1 Linux text console in 640x480 have their red and blue colors
> > > swapped?

Ok, it appears to be a bug in the tga console code for 24-plane
cards in 2.1.[<=106].  I'm guessing that it has been fixed in the
great console rewrite, but for now you can patch the old-style
tga driver as follows (also fixes the off-by-one cursor problem):

--- /tmp/linux/drivers/char/tga.c	Thu Apr  9 16:10:15 1998
+++ linux/drivers/char/tga.c	Tue Jul  7 01:41:06 1998
@@ -222,7 +222,7 @@
    } 
   } else {
     BT463_LOAD_ADDR(0x0000);
-    TGA_WRITE_REG((BT463_PALETTE<<2), TGA_RAMDAC_REG);
+    TGA_WRITE_REG((BT463_PALETTE<<2), TGA_RAMDAC_SETUP_REG);
 
     for (i = 0; i < 16; i++) {
       j = color_table[i];
@@ -293,7 +293,7 @@
 
     } else {
 
-      xt = col * TGA_F_WIDTH + 144;
+      xt = (col-1) * TGA_F_WIDTH + 144;
       yt = row * TGA_F_HEIGHT_PADDED + 35;
 
       TGA_WRITE_REG(0x05, TGA_VALID_REG); /* SCANNING and CURSOR */
@@ -684,7 +684,7 @@
 	   * fill the palette
 	   */
 	  BT463_LOAD_ADDR(0x0000);
-	  TGA_WRITE_REG((BT463_PALETTE<<2), TGA_RAMDAC_REG);
+	  TGA_WRITE_REG((BT463_PALETTE<<2), TGA_RAMDAC_SETUP_REG);
 
 	  for (i = 0; i < 16; i++) {
 	    j = color_table[i];
@@ -876,12 +876,12 @@
     }
   } else { /* 24-plane */
 
-    fgmask = (default_red[fgmask] << 16) |
-             (default_grn[fgmask] <<  8) |
-             (default_blu[fgmask] <<  0);
-    bgmask = (default_red[bgmask] << 16) |
-             (default_grn[bgmask] <<  8) |
-             (default_blu[bgmask] <<  0);
+    fgmask = (default_red[color_table[fgmask]] << 16) |
+             (default_grn[color_table[fgmask]] <<  8) |
+             (default_blu[color_table[fgmask]] <<  0);
+    bgmask = (default_red[color_table[bgmask]] << 16) |
+             (default_grn[color_table[bgmask]] <<  8) |
+             (default_blu[color_table[bgmask]] <<  0);
 
     for ( i = 0; i < TGA_F_HEIGHT_PADDED; i++ ) {
       if (i < TGA_F_HEIGHT) {


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

* Re: red and blue swapped on Alpha?
  1998-07-07  7:28               ` B. James Phillippe
@ 1998-07-07  6:04                 ` Jay.Estabrook
  1998-07-07 15:22                   ` Tim Rowley
  1998-07-07 15:49                 ` Tim Rowley
  1 sibling, 1 reply; 16+ messages in thread
From: Jay.Estabrook @ 1998-07-07  6:04 UTC (permalink / raw)
  To: axp-list


>>> "B. James Phillippe" said:
> 
> BTW, do you know of any way to change the solid block cursor to, say, a
> flashing block (or bar)?

The cursor for both the 8-plane and 24-plane TGAs is done using the hardware
cursor of the particular RAMDACs, and is limited to the capabilities of those
RAMDACs; blinking is NOT one of (either of) them, AFAIK... :-\

Also, this is why the cursor for the 8-plane TGA can be "seen through" (you
can see the character "behind" the cursor), and the 24-plane cursor cannot;
it's the RAMDAC capabilities/limitations (8-plane has Bt485, 24-plane Bt463).

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                         Alpha Motherboards - LINUX Project
Digital Equipment Corp.                 (508) 841-3241 or (DTN) 237-3241
334 South Street, Shrewsbury, MA 01545  Jay.Estabrook@digital.com
-------------------------------------------------------------------------------



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

* Re: red and blue swapped on Alpha?
  1998-07-07  5:56             ` Tim Rowley
@ 1998-07-07  7:28               ` B. James Phillippe
  1998-07-07  6:04                 ` Jay.Estabrook
  1998-07-07 15:49                 ` Tim Rowley
  0 siblings, 2 replies; 16+ messages in thread
From: B. James Phillippe @ 1998-07-07  7:28 UTC (permalink / raw)
  To: axp-list

On Tue, 7 Jul 1998, Tim Rowley wrote:

> B. James Phillippe wrote:
> > > > But, to retrack the original topic: anyone here using a ZLXp-E2 on
> > > > RedHat-5.1 Linux text console in 640x480 have their red and blue colors
> > > > swapped?
> 
> Ok, it appears to be a bug in the tga console code for 24-plane
> cards in 2.1.[<=106].  I'm guessing that it has been fixed in the
> great console rewrite, but for now you can patch the old-style
> tga driver as follows (also fixes the off-by-one cursor problem):

Excellent work, Tom.  The colors are now properly displayed under 2.0.3x
w/ZLXp-E2.  However, the off-by-one cursor problem I'm not sure about;
there did not appear to be a problem prior to the patch, and afterward,
there is definitely an "off-by-one" problem.  The cursor is offset one
character to the left, meaning it "masks" each character as it's typed.

BTW, do you know of any way to change the solid block cursor to, say, a
flashing block (or bar)?

thanks,
-bp
--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan


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

* Re: red and blue swapped on Alpha?
  1998-07-06 22:03     ` Paul Tomblin
  1998-07-06 23:41       ` B. James Phillippe
@ 1998-07-07 12:28       ` Scott Serr
  1998-07-07 15:20         ` Jim Paradis
  1 sibling, 1 reply; 16+ messages in thread
From: Scott Serr @ 1998-07-07 12:28 UTC (permalink / raw)
  To: axp-list


Does it give you warm fuzzies to know that Compaq acquired Packard Bell
about 2 years ago...  And now Digital.  :)


On Mon, 6 Jul 1998, Paul Tomblin wrote:

> Quoting B. James Phillippe (bryan@terran.org):
> > PC multi-freq. 14" POS Package Bell.  Note also, and this is most peculiar,
> 
> Just for future reference, note that "POS" and "Packard Bell" are redundant.
> Saying the second one pretty much guarantees the first one.  I speak as a
> two-time victim of Packard Bell.


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

* Re: red and blue swapped on Alpha?
  1998-07-07 12:28       ` Scott Serr
@ 1998-07-07 15:20         ` Jim Paradis
  1998-07-08  1:12           ` Bryan W. Headley
  0 siblings, 1 reply; 16+ messages in thread
From: Jim Paradis @ 1998-07-07 15:20 UTC (permalink / raw)
  To: axp-list

> Does it give you warm fuzzies to know that Compaq acquired Packard Bell
> about 2 years ago...  And now Digital.  :)

Wrong!  Packard-Bell is owned  by NEC, not Compaq.
--
Jim Paradis (paradis@linux01.hlo.dec.com)     "The early bird gets the worm.
Compaq Computer Corporation		       If you want something else for
(508)841-3243				       breakfast, get up later."
http://www.tiac.net/users/jrp/index.html


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

* Re: red and blue swapped on Alpha?
  1998-07-07  6:04                 ` Jay.Estabrook
@ 1998-07-07 15:22                   ` Tim Rowley
  0 siblings, 0 replies; 16+ messages in thread
From: Tim Rowley @ 1998-07-07 15:22 UTC (permalink / raw)
  To: axp-list

Jay.Estabrook@digital.com wrote:
> The cursor for both the 8-plane and 24-plane TGAs is done using the hardware
> cursor of the particular RAMDACs, and is limited to the capabilities of those
> RAMDACs; blinking is NOT one of (either of) them, AFAIK... :-\

Actually revision A of the Bt463 did have some sort of a blink
capability.  Apparently they didn't think much of it, as it was
removed in the current revision.

> Also, this is why the cursor for the 8-plane TGA can be "seen through" (you
> can see the character "behind" the cursor), and the 24-plane cursor cannot;
> it's the RAMDAC capabilities/limitations (8-plane has Bt485, 24-plane Bt463).

With a bit of work the cursor could be made more acceptable -- I
would prefer the xterm style inverted cursor.  Perhaps this has
already been done with the new fbconsole (which doesn't use the
hardware cursor of the TGA).

-tor


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

* Re: red and blue swapped on Alpha?
  1998-07-07  7:28               ` B. James Phillippe
  1998-07-07  6:04                 ` Jay.Estabrook
@ 1998-07-07 15:49                 ` Tim Rowley
  1 sibling, 0 replies; 16+ messages in thread
From: Tim Rowley @ 1998-07-07 15:49 UTC (permalink / raw)
  To: axp-list

B. James Phillippe wrote:
> Excellent work, Tom.  The colors are now properly displayed under 2.0.3x
                  ^^^- Tim

> w/ZLXp-E2.  However, the off-by-one cursor problem I'm not sure about;
> there did not appear to be a problem prior to the patch, and afterward,
> there is definitely an "off-by-one" problem.  The cursor is offset one
> character to the left, meaning it "masks" each character as it's typed.

Odd.  Without the patch the cursor appears one character to the
right of where it should, leaving a blank space between the
cursor and the last character typed.  Reading through the 21030
manual, it does appear that the original cursor placement should
be correct.  I wonder why my card is acting differently...

-tor


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

* RE: red and blue swapped on Alpha?
@ 1998-07-07 17:37 Tibbetts, Richard
  0 siblings, 0 replies; 16+ messages in thread
From: Tibbetts, Richard @ 1998-07-07 17:37 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

The "one space off" problem only seems to manifest itself if you're
booting from the ARC Console. It doesn't do it if you boot from the SRM.
I believe that it's more closely related to the TGA version of Milo(?). 
	I found this while I was setting mine up. I went through an
exhaustive set-up, tear-down, excersize, in which I was very involved
with both the SRM, and the ARC. So the long and short of this problem
is:

	If you're booting from the ARC, you will see the "one position
off" problem.
	If you're booting from the SRM, you won't !

	Thus... It's not related to the graphics card "directly". So
there's the challenge. What's causing it? could it be that there is a
problem with the TGA version of Milo? It's only used under ARC...

			Just my 2 cents...

> 	______________________________
> 	Ric Tibbetts
> 	Boeing SSG Distributed CATIA
> 	Central Administration
> 	CAS-CADE Central Administration
> 	Phone: 425/393-4442    Pager: 425/645-2012
> 	E-Mail:    richard.tibbetts@boeing.com
> 
> 	Eagles may soar, but weasels don't get sucked into jet engines.
> 	_______________________________
> 
> 
> 
> ----------
> From: 	Tim Rowley[SMTP:tor@cs.brown.edu]
> Reply To: 	axp-list@redhat.com
> Sent: 	Tuesday, July 07, 1998 8:49 AM
> To: 	axp-list@redhat.com
> Subject: 	Re: red and blue swapped on Alpha?
> 
> B. James Phillippe wrote:
> > Excellent work, Tom.  The colors are now properly displayed under
> 2.0.3x
>                   ^^^- Tim
> 
> > w/ZLXp-E2.  However, the off-by-one cursor problem I'm not sure
> about;
> > there did not appear to be a problem prior to the patch, and
> afterward,
> > there is definitely an "off-by-one" problem.  The cursor is offset
> one
> > character to the left, meaning it "masks" each character as it's
> typed.
> 
> Odd.  Without the patch the cursor appears one character to the
> right of where it should, leaving a blank space between the
> cursor and the last character typed.  Reading through the 21030
> manual, it does appear that the original cursor placement should
> be correct.  I wonder why my card is acting differently...
> 
> -tor
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


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

* Re: red and blue swapped on Alpha?
  1998-07-07 15:20         ` Jim Paradis
@ 1998-07-08  1:12           ` Bryan W. Headley
  0 siblings, 0 replies; 16+ messages in thread
From: Bryan W. Headley @ 1998-07-08  1:12 UTC (permalink / raw)
  To: axp-list

Jim Paradis wrote:

> > Does it give you warm fuzzies to know that Compaq acquired Packard Bell
> > about 2 years ago...  And now Digital.  :)
>
> Wrong!  Packard-Bell is owned  by NEC, not Compaq.
> --
> Jim Paradis (paradis@linux01.hlo.dec.com)     "The early bird gets the worm.
> Compaq Computer Corporation                    If you want something else for
> (508)841-3243                                  breakfast, get up later."
> http://www.tiac.net/users/jrp/index.html
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

 I thought NEC and Gateway merged, too. Not many original flyers left :-(

--
____               .:.                 ____
Bryan W. Headley - bheadley@interaccess.com




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

end of thread, other threads:[~1998-07-08  2:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-02 20:04 red and blue swapped on Alpha? B. James Phillippe
1998-07-06 16:59 ` Jim Paradis
1998-07-06 18:09   ` B. James Phillippe
1998-07-06 22:03     ` Paul Tomblin
1998-07-06 23:41       ` B. James Phillippe
1998-07-07  1:20         ` Tim Rowley
1998-07-07  2:34           ` B. James Phillippe
1998-07-07  5:56             ` Tim Rowley
1998-07-07  7:28               ` B. James Phillippe
1998-07-07  6:04                 ` Jay.Estabrook
1998-07-07 15:22                   ` Tim Rowley
1998-07-07 15:49                 ` Tim Rowley
1998-07-07 12:28       ` Scott Serr
1998-07-07 15:20         ` Jim Paradis
1998-07-08  1:12           ` Bryan W. Headley
  -- strict thread matches above, loose matches on Subject: below --
1998-07-07 17:37 Tibbetts, Richard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox