* Re: Framebuffer console not working with matroxfb on 2.6
@ 2004-09-16 12:04 Petr Vandrovec
2004-09-17 8:51 ` Michal 'hramrach' Suchanek
0 siblings, 1 reply; 8+ messages in thread
From: Petr Vandrovec @ 2004-09-16 12:04 UTC (permalink / raw)
To: Michal 'hramrach' Suchanek; +Cc: linux-fbdev-devel
On 16 Sep 04 at 12:58, Michal 'hramrach' Suchanek wrote:
> On Wed, Sep 15, 2004 at 01:06:14PM +0200, Petr Vandrovec wrote:
> > On 15 Sep 04 at 8:09, Michal 'hramrach' Suchanek wrote:
> > > 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Framebuffer console not working with matroxfb on 2.6
2004-09-16 12:04 Framebuffer console not working with matroxfb on 2.6 Petr Vandrovec
@ 2004-09-17 8:51 ` Michal 'hramrach' Suchanek
2004-09-17 9:53 ` Geert Uytterhoeven
2004-09-17 11:07 ` Antonino A. Daplas
0 siblings, 2 replies; 8+ messages in thread
From: Michal 'hramrach' Suchanek @ 2004-09-17 8:51 UTC (permalink / raw)
To: Petr Vandrovec; +Cc: linux-fbdev-devel
> 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/0
endmode
--- 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 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Framebuffer console not working with matroxfb on 2.6
2004-09-17 8:51 ` Michal 'hramrach' Suchanek
@ 2004-09-17 9:53 ` Geert Uytterhoeven
2004-09-17 11:21 ` Antonino A. Daplas
2004-09-17 11:07 ` Antonino A. Daplas
1 sibling, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2004-09-17 9:53 UTC (permalink / raw)
To: Linux Frame Buffer Device Development
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Framebuffer console not working with matroxfb on 2.6
2004-09-17 8:51 ` Michal 'hramrach' Suchanek
2004-09-17 9:53 ` Geert Uytterhoeven
@ 2004-09-17 11:07 ` Antonino A. Daplas
1 sibling, 0 replies; 8+ messages in thread
From: Antonino A. Daplas @ 2004-09-17 11:07 UTC (permalink / raw)
To: Michal 'hramrach' Suchanek, Petr Vandrovec; +Cc: linux-fbdev-devel
On Friday 17 September 2004 16:51, Michal 'hramrach' Suchanek wrote:
> > 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Framebuffer console not working with matroxfb on 2.6
2004-09-17 9:53 ` Geert Uytterhoeven
@ 2004-09-17 11:21 ` Antonino A. Daplas
2004-09-17 11:50 ` Geert Uytterhoeven
0 siblings, 1 reply; 8+ messages in thread
From: Antonino A. Daplas @ 2004-09-17 11:21 UTC (permalink / raw)
To: linux-fbdev-devel, Geert Uytterhoeven
On Friday 17 September 2004 17:53, Geert Uytterhoeven wrote:
> 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...
>
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Framebuffer console not working with matroxfb on 2.6
2004-09-17 11:21 ` Antonino A. Daplas
@ 2004-09-17 11:50 ` Geert Uytterhoeven
2004-09-17 13:38 ` Antonino A. Daplas
0 siblings, 1 reply; 8+ messages in thread
From: Geert Uytterhoeven @ 2004-09-17 11:50 UTC (permalink / raw)
To: Antonino Daplas; +Cc: Linux Frame Buffer Device Development
On Fri, 17 Sep 2004, Antonino A. Daplas wrote:
> On Friday 17 September 2004 17:53, Geert Uytterhoeven wrote:
> > 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...
>
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Framebuffer console not working with matroxfb on 2.6
2004-09-17 11:50 ` Geert Uytterhoeven
@ 2004-09-17 13:38 ` Antonino A. Daplas
2004-09-26 8:29 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 8+ messages in thread
From: Antonino A. Daplas @ 2004-09-17 13:38 UTC (permalink / raw)
To: Geert Uytterhoeven, Antonino Daplas; +Cc: Linux Frame Buffer Device Development
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: Framebuffer console not working with matroxfb on 2.6
2004-09-17 13:38 ` Antonino A. Daplas
@ 2004-09-26 8:29 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 8+ messages in thread
From: Benjamin Herrenschmidt @ 2004-09-26 8:29 UTC (permalink / raw)
To: Linux Fbdev development list; +Cc: Geert Uytterhoeven, Antonino Daplas
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-09-26 8:31 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-16 12:04 Framebuffer console not working with matroxfb on 2.6 Petr Vandrovec
2004-09-17 8:51 ` Michal 'hramrach' Suchanek
2004-09-17 9:53 ` Geert Uytterhoeven
2004-09-17 11:21 ` Antonino A. Daplas
2004-09-17 11:50 ` Geert Uytterhoeven
2004-09-17 13:38 ` Antonino A. Daplas
2004-09-26 8:29 ` Benjamin Herrenschmidt
2004-09-17 11:07 ` Antonino A. Daplas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).