Framebuffer console not working with matroxfb on 2.6
Quoted 9 lines · Michal 'hramrach' Suchanek
Quoted 8 lines · Petr Vandrovec
Quoted 6 lines · Michal 'hramrach' Suchanek
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.
Quoted 8 lines
Quoted 2 lines
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
Quoted 7 lines
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
--- fb.modes
# "1024x768" 94.50 1024 1072 1168 1376 768 769 772 808 +hsync +vsync
mode "1024x768-85"
geometry 1024 768 1024 768 8
timings 10582 208 48 36 1 96 3
accel true
laced false
vsync high
hsync high
endmode
mode "640x480-60"
# D: 25.176 MHz, H: 31.469 kHz, V: 59.942 Hz
geometry 640 480 640 26214 8
# left right upper lower hslen vslen
timings 39721 40 24 32 11 96 2
accel true
#rgba 8/0,8/0,8/0,0/0endmode
--- partial .config
#
# 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 setCONFIG_FB_VESA=yCONFIG_VIDEO_SELECT=y
# CONFIG_FB_HGA is not set
# CONFIG_FB_RIVA is not setCONFIG_FB_MATROX=y
# CONFIG_FB_MATROX_MILLENIUM is not set
# CONFIG_FB_MATROX_MYSTIQUE is not set
# CONFIG_FB_MATROX_G450 is not setCONFIG_FB_MATROX_G100A=yCONFIG_FB_MATROX_G100=yCONFIG_FB_MATROX_I2C=mCONFIG_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 setCONFIG_DUMMY_CONSOLE=yCONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
#
# Logo configuration
#CONFIG_LOGO=yCONFIG_LOGO_LINUX_MONO=yCONFIG_LOGO_LINUX_VGA16=yCONFIG_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
Quoted 4 lines · Michal 'hramrach' Suchanek
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 -- [email protected]
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
Quoted 8 lines · Michal 'hramrach' Suchanek
Quoted 7 lines
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.
Quoted 9 lines
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
Quoted 9 lines · Geert Uytterhoeven
Quoted 4 lines · Michal 'hramrach' Suchanek
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 with1024x768@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
Quoted 10 lines · Antonino A. Daplas
Quoted 8 lines · Geert Uytterhoeven
Quoted 4 lines · Michal 'hramrach' Suchanek
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 with1024x768@100', I got 87 Hz interlaced...
Quoted 7 lines
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 -- [email protected]
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
Quoted 5 lines · Geert Uytterhoeven
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:
Quoted 7 lines
}, { /* 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
Quoted 3 lines
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