From: Petr Vandrovec <hidden> Date: 2004-09-16 12:02:37
On 16 Sep 04 at 12:58, Michal 'hramrach' Suchanek wrote:
On Wed, Sep 15, 2004 at 01:06:14PM +0200, Petr Vandrovec wrote:
quoted
On 15 Sep 04 at 8:09, Michal 'hramrach' Suchanek wrote:
quoted
I tried using the framebuffer console with matroxfb on a 2.6 kernel and
I see only reddish pattern on the screen. I do not get any letters.
However, I can run X with UseFBdev option and a directfb program.
I can also use the fbcons on an iMac with atifb.
Tested with 2.6.7, with 2.6.8.1 I still do not get usable fbcons.
THe hardware is G400 and G550.
Your .config ? You either did not build fbcon to the kernel or
you are using modular matroxfb. You cannot do that.
OK, compiling it into kernel works.
But I wonder how should I know. I re-read the documentation that comes
with the kernel and I did not find any word about this.
Also it worked with 2.4 kernels.
It is not matroxfb's bug, it is how fbcon works in 2.6.x, it uses
only drivers which existed at a time fbcon was loaded... Usually
people find it by trial & error, or they ask...
You can also grab
http://platan.vc.cvut.cz/ftp/pub/linux/matrox-latest/matroxfb-2.6.9-rc2.gz,
with it you should be able to use modular matroxfb.
Petr
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
From: Michal 'hramrach' Suchanek <hidden> Date: 2004-09-17 08:53:53
It is not matroxfb's bug, it is how fbcon works in 2.6.x, it uses
only drivers which existed at a time fbcon was loaded... Usually
people find it by trial & error, or they ask...
You can also grab
http://platan.vc.cvut.cz/ftp/pub/linux/matrox-latest/matroxfb-2.6.9-rc2.gz,
with it you should be able to use modular matroxfb.
It does not apply to my (2.6.8.1) kernel. But since it works when
compiled into kernel I can wait until it appears in the kernel.org
kernel or a new patch is available.
However, I still get a minor problem with the driver.
When I switch between the default 640x480-60 mode and 1024x768-85 mode
the 1024x768 gets interlaced, with completely different timings. I have
to use fbset to restore it to 1024x768-85.
Thanks
Michal Suchanek
#
# Graphics support
#
CONFIG_FB=y
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
CONFIG_FB_VESA=y
CONFIG_VIDEO_SELECT=y
# CONFIG_FB_HGA is not set
# CONFIG_FB_RIVA is not set
CONFIG_FB_MATROX=y
# CONFIG_FB_MATROX_MILLENIUM is not set
# CONFIG_FB_MATROX_MYSTIQUE is not set
# CONFIG_FB_MATROX_G450 is not set
CONFIG_FB_MATROX_G100A=y
CONFIG_FB_MATROX_G100=y
CONFIG_FB_MATROX_I2C=m
CONFIG_FB_MATROX_MAVEN=m
# CONFIG_FB_MATROX_MULTIHEAD is not set
# CONFIG_FB_RADEON_OLD is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_VIRTUAL is not set
#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_MDA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
#
# Logo configuration
#
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
On Fri, 17 Sep 2004, Michal 'hramrach' Suchanek wrote:
However, I still get a minor problem with the driver.
When I switch between the default 640x480-60 mode and 1024x768-85 mode
the 1024x768 gets interlaced, with completely different timings. I have
to use fbset to restore it to 1024x768-85.
I think this is a `feature' of the new mode selection code. When I tried
booting my Radeon with `1024x768@100', I got 87 Hz interlaced...
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
From: Antonino A. Daplas <hidden> Date: 2004-09-17 11:07:40
On Friday 17 September 2004 16:51, Michal 'hramrach' Suchanek wrote:
quoted
It is not matroxfb's bug, it is how fbcon works in 2.6.x, it uses
only drivers which existed at a time fbcon was loaded... Usually
people find it by trial & error, or they ask...
You can also grab
http://platan.vc.cvut.cz/ftp/pub/linux/matrox-latest/matroxfb-2.6.9-rc2.g
z, with it you should be able to use modular matroxfb.
It does not apply to my (2.6.8.1) kernel. But since it works when
compiled into kernel I can wait until it appears in the kernel.org
kernel or a new patch is available.
However, I still get a minor problem with the driver.
When I switch between the default 640x480-60 mode and 1024x768-85 mode
the 1024x768 gets interlaced, with completely different timings. I have
to use fbset to restore it to 1024x768-85.
This problem should be fixed in kernels >= 2.6.9-rc1.
Tony
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
From: Antonino A. Daplas <hidden> Date: 2004-09-17 11:21:28
On Friday 17 September 2004 17:53, Geert Uytterhoeven wrote:
On Fri, 17 Sep 2004, Michal 'hramrach' Suchanek wrote:
quoted
However, I still get a minor problem with the driver.
When I switch between the default 640x480-60 mode and 1024x768-85 mode
the 1024x768 gets interlaced, with completely different timings. I have
to use fbset to restore it to 1024x768-85.
I think this is a `feature' of the new mode selection code. When I tried
booting my Radeon with `1024x768@100', I got 87 Hz interlaced...
Michal's problem is more of a failure to preserve the per-display var, which
should be fixed with recent mm or rc kernels.
Yours is more of boot mode selection problem and most drivers use
fb_find_mode() for that. The default modedb does not have 1024x768@100
non-interlaced, so it passed the interlaced version to the driver, which it
happily accepted. Thus, you get the interlaced version.
Tony
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
On Friday 17 September 2004 17:53, Geert Uytterhoeven wrote:
quoted
On Fri, 17 Sep 2004, Michal 'hramrach' Suchanek wrote:
quoted
However, I still get a minor problem with the driver.
When I switch between the default 640x480-60 mode and 1024x768-85 mode
the 1024x768 gets interlaced, with completely different timings. I have
to use fbset to restore it to 1024x768-85.
I think this is a `feature' of the new mode selection code. When I tried
booting my Radeon with `1024x768@100', I got 87 Hz interlaced...
Michal's problem is more of a failure to preserve the per-display var, which
should be fixed with recent mm or rc kernels.
Yours is more of boot mode selection problem and most drivers use
fb_find_mode() for that. The default modedb does not have 1024x768@100
non-interlaced, so it passed the interlaced version to the driver, which it
happily accepted. Thus, you get the interlaced version.
Modedb does have that mode! Before I've been using it for years on my PPC box.
linux-2.6.8.1/drivers/video/modedb.c:
}, {
/* 1024x768 @ 100Hz, 80.21 kHz hsync */
NULL, 100, 1024, 768, 8658, 192, 32, 21, 3, 192, 10,
0, FB_VMODE_NONINTERLACED
}, {
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
From: Antonino A. Daplas <hidden> Date: 2004-09-17 13:38:24
On Friday 17 September 2004 19:50, Geert Uytterhoeven wrote:
Modedb does have that mode! Before I've been using it for years on my PPC
box.
linux-2.6.8.1/drivers/video/modedb.c:
}, {
/* 1024x768 @ 100Hz, 80.21 kHz hsync */
NULL, 100, 1024, 768, 8658, 192, 32, 21, 3, 192, 10,
0, FB_VMODE_NONINTERLACED
}, {
Gr{oetje,eeting}s,
Indeed it does. So why didn't radeonfb not use the mode? Is it a problem
with fb_find_mode() or radeonfb?
Tony
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
From: Benjamin Herrenschmidt <benh@kernel.crashing.org> Date: 2004-09-26 08:31:07
Indeed it does. So why didn't radeonfb not use the mode? Is it a problem
with fb_find_mode() or radeonfb?
I suspect my radeonfb is bad at using mode paremeters to the module,
does it work with fbdev afterward ?
I need to work on it, I did a pretty good job with digital panels but
I think I may have broken a few stuffs useful with analog, like boot mode
setting...
Ben.
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php