Subject: Re: Console drivers
To: Marco Trillo <marcotrillo@gmail.com>
From: Michael Lorenz <macallan@netbsd.org>
List: port-macppc
Date: 11/11/2006 14:31:37
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Nov 11, 2006, at 04:50, Marco Trillo wrote:

> Hi,
>
> On 11/11/06, Michael Lorenz <macallan@netbsd.org> wrote:
>> On Nov 10, 2006, at 17:03, Marco Trillo wrote:
>> > On 11/10/06, Marco Trillo <marcotrillo@gmail.com> wrote:
>> >> then the screen went black and the eMac froze  (I suppose, since 
>> the
>> >
>> > Well, after doing more tests, actually it did not froze (just the
>> > screen went black), but I did not give it enough time to initialize
>> > the keyboard :-)
>> >
>> >> after the boot command (in case it has any relation with this, this
>> >> time the boot  command was not the first command entered on the OF
>> >> prompt).
>> >
>> > Hmm... it has relation: when I type the "boot cd:,ofwboot.xcf" 
>> command
>> > as the first command in the OF session, the framebuffer inits with
>> > green-on-white letters but then it goes black. But when I first type
>> > other OF commands, the framebuffer does not start and the screen 
>> goes
>> > black just after typing the boot command.
>>
>> This is odd.
>> The initial green-on-white stuff doesn't come from radeonfb - it
>> doesn't kick in until this:
>> radeonfb0 at pci0 dev 16 function 0: ATI Technologies Radeon 9200 5962
>> Then it should switch to some halfway sane resolution in 32bit colour
>> and continue ( I didn't write this driver - it doesn't work very well
>> in 8bit and 32bit is fast enough so it runs in 32bit )
>> Apparently whatever it picks isn't something your display likes and I
>> see no output regarding monitor identification via DDC2.
>> So, initial diagnosis - monitor going black when radeonfb attaches is
>> no freeze, just out of sync. If the eMac is anything like the G3 iMacs
>> then the monitor is picky about its horizontal frequency - did you 
>> have
>> to use HorizSync to something fixed or a very narrow range in
>> XF86Config?
>
> Yes, it apparently requires a fixed "horizontal sync" frequency of
> 72kHz and can't do anything out of that.
>
> These are the possible combinations for the eMac:
> 640x480@138Hz
> 800x600@112Hz
> 1024x768@89.0Hz
> 1152x864@80.0Hz
> 1280x960@72.0Hz
>
> I will try with the "1024x768x89" mode.

Ah well, what we really need is a generic way to tell wsdisplay drivers 
what video mode to use. Sure, we could easily get that out of 
OpenFirmware but I'd rather not have stuff* at pci? depend on 
OpenFirmware.

> BTW, I also tried this ISO on a PowerMac G4 'Sawtooth' with ATI Rage
> 128 Pro and booted fine with the new 'ofb' driver with color support:
>
> ofb0 at pci0 dev 16 function 0: ATI Technologies Rage Fury MAXX AGP 4x 
> (TMDS)
> ofb0: 1280 x 1024, 8bpp
>
Good, so at least something works :)
This will also give you virtual consoles - in case you care about that.

have fun
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iQEVAwUBRVYlGcpnzkX8Yg2nAQJ9wQf/SYYtP2nuufmK5q5No/2yC6uAvngm283R
FYl9bwgqAcQKvDYfpMLAf3QXQt/yjHB5db2m8JGxwBiWNW9BJQ0D2SFkZau9ivis
ITTLfH80sQWR5qpb182L+o1F0kVLqxO2ujgg0oxHu8st3W458ZVyZYeOHOw7J1WI
7UWjgZc664tkhpvDgrTUv1hDFSEbwxPtohl117b59sZyCHl3ypqzAXVzBD6ELpnq
rZczgEYcy4F90HwtlO903gmH4EKfCbmR8zKYNGJX3DerpFETdgsz5Y7q6E1QuuX6
GBZui8OXlhEf1ZImWbxi2lT55TnAoLFDh0uyvt9FT0Y9ApmdeJi7Gg==
=5Gov
-----END PGP SIGNATURE-----