Subject: Re: Fwd: XFree86 on an iMac
To: leo <leonardo.disanto@gmail.com>
From: Michael <macallan18@earthlink.net>
List: port-macppc
Date: 08/21/2005 16:19:53
--Signature_Sun__21_Aug_2005_16_19_53_-0400_WnNLQg_.I6vDI7BL
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> this was host.def   :)

I'm fluent in typo ;)

> With this configuration i got a monolitic Xserver but there was no
> debug information inside, so i modified the Makefile in
> programs/Xserver to add the -g switch.
> From there, with "make XFree86", I got (making by hand some
> dependencies here and there) a gigantic 51854329 bytes binary. i'm
> sure there was an easier and cleanier way :)

#define DefaultCCOptions -g -whatever=20
in host.def should do the trick

> well, after playing for a couple of hours with X and gdb i got to the
> point where the screen goes black...  is inside the function
> ATIModeSet at line 951 of
>=20
> xc/programs/Xserver/hw/xfree86/drivers/ati/atimode.c
>=20
> the exact code line is
>=20
> outr(CRTC_GEN_CNTL, pATIHW->crtc_gen_cntl & ~(CRTC_EXT_DISP_EN |
> CRTC_EN));
>=20
> where
>=20
> pATIHW->crtc_gen_cntl =3D  1258291712
>=20
> I have the entire pATIHW  struct just before this instruction but is
> quite big so i will not spam the list unless requested

Thanks for tracking this, I'll have a look what it does here and let you
know if I find something interesting.
Hmm, if I read this line correctly its purpose is to turn off both
possible displays for whatever reason, probably to avoid ugliness when
switching to some other resolution. Now it remains to be seen why it
doesn't turn them on again.
I'd suggest you just comment that line out as a temporary measure and
see what happens after that.

have fun
Michael

--Signature_Sun__21_Aug_2005_16_19_53_-0400_WnNLQg_.I6vDI7BL
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQwjh6spnzkX8Yg2nAQIKxwf/YIkeLII4SqI70NicNnOjsOFo70eUAKVJ
s5mpn3Y7QA+pIyKdWUKJm97Lk4cKBVCfzRq+jzLTOx5Ttl4y5e4YXSzZZ0FWPsqh
EZvS2SCAy7B1nbC7VyJaOuYp2xrxJavmIVI5VR/nOI5YrJYVLW3m01EMQT1vWJEn
rbHH4nJ5fTZ1DfUuIuUkrEr7oGBLt2yMKg0n/U4el/Z3j4AklAhsHgKzS8sUGMtT
QzheZ76NTmPDp/YTyPz0x37SKJ/iR3scznSeH7XJurhS/qcL1jbgIKXvwcyTJNQ7
x4k20ymghs6lddktx1Wxx3HdII/ITro1eyMvDMHyuEyWwTktAl2epw==
=/Kp0
-----END PGP SIGNATURE-----

--Signature_Sun__21_Aug_2005_16_19_53_-0400_WnNLQg_.I6vDI7BL--