From owner-freebsd-multimedia Mon Sep 29 18:51:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA24314 for multimedia-outgoing; Mon, 29 Sep 1997 18:51:27 -0700 (PDT) Received: from netwolf.NetMasters.Com (netwolf.netmasters.com [199.201.245.5]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id SAA24305 for ; Mon, 29 Sep 1997 18:51:23 -0700 (PDT) Received: from netwolf.NetMasters.Com (localhost.NetMasters.Com [127.0.0.1]) by netwolf.NetMasters.Com (8.8.7/8.7.3) with ESMTP id VAA19806; Mon, 29 Sep 1997 21:51:14 -0400 (EDT) Message-Id: <199709300151.VAA19806@netwolf.NetMasters.Com> X-Mailer: exmh version 1.6.9 8/22/96 To: Randall Hopper cc: Kenneth Merry , multimedia@FreeBSD.ORG, Amancio Hasty From: "Michael G Petry" Subject: Re: Matrox Millenium with 8M and BT848 In-reply-to: Your message of "Mon, 29 Sep 1997 20:08:41 EDT." <19970929200841.34122@ct.picker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 29 Sep 1997 21:51:14 -0400 Sender: owner-freebsd-multimedia@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I gather the video block on the Millenium @ 1280 looks fine (solid, > rectangular, correct colors); it just not in the window frame. It's off to > the left. And only does this in 1280x1024, not 1024x768. Yep. That's it. > A few questions that'll help nail down the problem. > > 1) With the "+ 256" you added, is the video inside the window frame no > matter how high or low the TV window is on your screen (e.g. try > "-geometry +100+0" and "-geometry +100+800" -- do both these look OK?)? Both look ok. I can move the windo around the window and it tracks just fine. > 2) Please add this line after the line you patched: > > printf( "geometry = X %4d, Y %4d, Bpp %d\n", g.x, g.y, Bpp ); > > and try "-geometry +0+700". Does it print something very close to "X 1, > Y 780, Bpp 4" (the location of the video window relative to the root > window)? petry@netwolf[94]$ ./fxtv -geometry +0+700 geometry = X 5, Y 781, Bpp 4 > > For calibration, does -geometry +0+0 give you an Fxtv window in the > upper-left corner of the desktop and print out something very close to > "X 1, Y 80, Bpp 4"? petry@netwolf[95]$ ./fxtv -geometry +0+0 geometry = X 5, Y 81, Bpp 4 > 3) See if this makes any difference: > > --- xutil.c.ORIG Mon Sep 29 18:21:43 1997 > +++ xutil.c Mon Sep 29 18:21:51 1997 > @@ -735 +735 @@ > - XUTILGetVisualBpp( display, vi, &Bpp, NULL ); > + XUTILGetVisualBpp( display, vi, NULL, &Bpp ); No difference. > DGA pitch is right, or you wouldn't see a solid rectangular video block. > Could be that XTranslateCoordinates doesn't work correctly on Milleniums > for 1280x1024x24bpp. > > BTW, please try this on XFree 3.3.1. XFree86 Version 3.3.1 / X Window System (protocol Version 11, revision 0, vendor release 6300) Release Date: August 4 1997 . . (--) SVGA: PCI: Matrox MGA 2064W rev 1, Memory @ 0xe0800000, 0xe0000000 (--) SVGA: Linear framebuffer at 0xE0000000 (--) SVGA: MMIO registers at 0xE0800000 > > Hey Amancio. You've got a Millenium, right? Do you see this too (or can > you run at 1280x1024x24bpp)? It feels like there may be a 1024 byte offset from the beginning of the linear frame buffer. When I first go the board and ran in 1600x1200 mode the video was shifted both horizontally and vertically (I guess pitch was wrong). I'll try it agai and let you know if it gives anything interesting.