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

Hello,

On Nov 11, 2006, at 16:54, Marco Trillo wrote:

> Hi,
>
> On 11/11/06, Michael Lorenz <macallan@netbsd.org> wrote:
>> > Oooops... sorry. I forgot to look into videomode.c.
>> >
>> > Hmm... taking a look at the available modes, none of the eMac
>> > 'supported' ones (which are rather odd) are included.
>> >
>> > I will try to add the "1024x768x89" mode from the X11 'ModeLine'.
>>
>> I was going to suggest that ;)
>>
>> > It appears that the 'modelines.c' is automatically generated from a
>> > database called 'modelines', whose content format appear to be the
>> > same as that of XFree86.
>>
>> Indeed, looks awfully familiar.
>>
>> If you get it to work please send me the diff against modelines ( or
>> your modified modelines file ) so I can commit it.
>>
>
> I`ve added the X11 modeline to the 'modelines' file and rebuilt the
> 'videomode.c' file and the kernel.
>
> And it works! After radeonfb initializes, the monitor sets up in 1024
> x 768 mode at 89Hz.

Good :)

> But there is still a problem: although the monitor is set up
> correctly, the driver thinks it's still running at 640 x 480
> resolution mode, and so it creates a 640 x 480 display:
>
> radeonfb0: display 0: virtual resolution 640x480 at 32 bpp
> radeonfb0: port 0: physical 1024x768 89Hz
> radeonfb0: port 1: physical 1024x768 89Hz

I'll see if I can reproduce this on my iBook.

> The patch for the modeline:

I'll commit it.

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

iQEVAwUBRVZHw8pnzkX8Yg2nAQIe2Qf7B/0eC77d1zvvVPBdJvTP9B0C20cai6CA
ld8b2uzOvvAoXqpof3wUEpyI1KxxX5CWl5P4uVHNcPv9R7Q1nR+PoDgsZjv1x1W1
0AkYF4TkmG3zcASKzCsKo/D6zkGaDFVsHWhxIhERe08CW54GlDKylL5A8DrDF9ix
GDmyfJ87QMEXiwB7JDh6rhcyHjZ6YTzHaeacCnyeepgwtRZ4Uon5htyHji1wN15K
btyOF4y+ws2NlfJmLeByhiJLOyw1hmrDdxF7XLIq7Nppzzj1Yo603+xTlSjU+MLT
xGFyhV5dMlO+bADgvHO0vaKRi22Joifc2LIKKGhWAHwJPJdbGSvypA==
=BEdD
-----END PGP SIGNATURE-----