Subject: Re: XFree86 no worky on 3.1 on G3 iBook
To: Michael Lorenz <macallan@netbsd.org>
From: Zach Lowry <zach@zachlowry.net>
List: port-macppc
Date: 01/04/2007 11:01:33
On Jan 4, 2007, at 9:55 AM, Michael Lorenz wrote:

> Ok, so what exactly happens? According to that snippet from the log  
> it should try to do 1024x768 at 60Hz which should be right for your  
> iBook. What do you see on the display?

Just a black screen. Nothing more, nothing less. When I kill X  
remotely it goes back to the console.

> The relevant part in my log looks slightly different:
> (--) RADEON(0): Virtual size is 1024x768 (pitch 1024)
> (**) RADEON(0): *Mode "1024x768": 65.0 MHz (scaled from 0.0 MHz),  
> 48.4 kHz, 60.0 Hz
> (II) RADEON(0): Modeline "1024x768"   65.00  1024 1048 1184 1344   
> 768 771 777 806
> - - not sure is the sync options make a difference, might well be  
> the case though.

Maybe so, perhaps I can turn that off somehow. Any ideas?

> Does your panel provide DDC data? If it does you should see  
> something like this:
> (II) RADEON(0): Monitor1 EDID data ---------------------------
> (II) RADEON(0): Manufacturer: APP  Model: 9c1f  Serial#: 16843009
> (II) RADEON(0): Year: 2002  Week: 0
> (II) RADEON(0): EDID Version: 1.3
> (II) RADEON(0): Digital Display Input
> (II) RADEON(0): Max H-Image Size [cm]: horiz.: 25  vert.: 18
> (II) RADEON(0): Gamma: 2.20
> (II) RADEON(0): No DPMS capabilities specified; RGB/Color Display
> (II) RADEON(0): First detailed timing is preferred mode
> (II) RADEON(0): redX: 0.577 redY: 0.338   greenX: 0.310 greenY: 0.554
> (II) RADEON(0): blueX: 0.158 blueY: 0.124   whiteX: 0.313 whiteY:  
> 0.329
> (II) RADEON(0): Supported VESA Video Modes:
> (II) RADEON(0): 1024x768@60Hz
> (II) RADEON(0): Manufacturer's mask: 0
> (II) RADEON(0): Supported additional Video Mode:
> (II) RADEON(0): clock: 65.0 MHz   Image Size:  246 x 184 mm
> (II) RADEON(0): h_active: 1024  h_sync: 1048  h_sync_end 1184  
> h_blank_end 1344 h_border: 0
> (II) RADEON(0): v_active: 768  v_sync: 771  v_sync_end 777  
> v_blanking: 806 v_border: 0
> (II) RADEON(0):  IBM-IAXG01A
> (II) RADEON(0):  IBM-IAXG01A
> (II) RADEON(0): Monitor name: Color LCD
> (II) RADEON(0): End of Monitor1 EDID data --------------------

It does not, I don't see any such section in my log. I wonder if my X  
display is going to the external monitor port for some reason.

> I checked my XF86Config, found the following additional option in  
> the Devices section ( not sure if it's really necessary, I set it  
> up a long time ago )
>     Option 	"MonitorLayout" "LVDS"
> although the driver should detect that you're using a flat panel  
> with LVDS interface on its own.

I added that, no dice.

> Looks like the infamous radeon register size bug. In short - the  
> driver tries to mmap 512kB here which is appropriate for very new  
> radeons, older ones have smaller register ranges. NetBSD/macppc  
> allows to mmap only what really belongs to the graphics controller  
> so this call fails. I submitted a bug report against xorg 7.0 for  
> this, thought they fixed it in later versions.

Let me see if I can get a newer version of xorg from pkgsrc and build  
it. Thanks!

>
> have fun
> Michael
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
>
> iQEVAwUBRZ0jZMpnzkX8Yg2nAQKevwgAi6lpMU3mgOe2v2bGtVLg0RHQscdawD4+
> tD2EBH1nXRRaAPRFi07lz3odxvjIVNJ1sbQZMY9Hne6ilI8xWlsgebtpTSSm8msF
> ZWaCQCbd879oK5SVINIgWTRkucORYt7ZWdEBMkZc161+wrvUhpdNpYVTQhnCCuvi
> gqLwDTt2nMeluMpPm7aG461jzIX4GB2/Zim5V+s60RRs7hzyHarNdIhvBdh4oO9T
> Gut1o4AMUFqdpXcgsmPi/7nOOj5iNpbwukx+0aawooLqs+Vb/qBJB60U85FoHHsn
> 2OTHOdPsLV2TjEMTL5o0PD+sEb8EfqxbOrjhUB2Ix2pvzSd72rCaWA==
> =E9Lt
> -----END PGP SIGNATURE-----
>