Subject: Re: Console drivers
To: Michael Lorenz <macallan@netbsd.org>
From: Marco Trillo <marcotrillo@gmail.com>
List: port-macppc
Date: 11/11/2006 22:54:17
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.
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
So it creates a small box of 640 x 480 pixels at the left edge of the
screen, and the rest of the 1024 x 768 space is not used (it appears
filled with a blue-ish color).
The patch for the modeline:
Index: modelines
===================================================================
RCS file: /cvsroot/src/sys/dev/videomode/modelines,v
retrieving revision 1.1
diff -u -r1.1 modelines
--- modelines 4 Mar 2006 02:34:27 -0000 1.1
+++ modelines 11 Nov 2006 21:44:41 -0000
@@ -64,6 +64,9 @@
# 1024x768 @ 85Hz (VESA) hsync: 68.7kHz
ModeLine "1024x768" 94.5 1024 1072 1168 1376 768 769 772 808
+hsync +vsync
+# 1024x768 @ 89Hz (non-standard) hsync: 72.0kHz
+ModeLine "1024x768" 100 1024 1108 1280 1408 768 768 780 796
+hsync +vsync
+
# 1152x864 @ 75Hz (VESA) hsync: 67.5kHz
ModeLine "1152x864" 108.0 1152 1216 1344 1600 864 865 868 900
+hsync +vsync
I can post here the full dmesg if it's needed.
------------------------
Thanks,
Marco