* Framebuffer console not working with matroxfb on 2.6
@ 2004-09-15 6:09 Michal 'hramrach' Suchanek
2004-09-15 13:11 ` Antonino A. Daplas
0 siblings, 1 reply; 9+ messages in thread
From: Michal 'hramrach' Suchanek @ 2004-09-15 6:09 UTC (permalink / raw)
To: vandrove; +Cc: linux-fbdev-devel
Hello
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.
Thanks
Michal Suchanek
-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Framebuffer console not working with matroxfb on 2.6
@ 2004-09-15 11:06 Petr Vandrovec
2004-09-16 10:58 ` Michal 'hramrach' Suchanek
0 siblings, 1 reply; 9+ messages in thread
From: Petr Vandrovec @ 2004-09-15 11:06 UTC (permalink / raw)
To: Michal 'hramrach' Suchanek; +Cc: linux-fbdev-devel
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.
Petr
-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Framebuffer console not working with matroxfb on 2.6
2004-09-15 6:09 Michal 'hramrach' Suchanek
@ 2004-09-15 13:11 ` Antonino A. Daplas
2004-09-16 11:42 ` Michal 'hramrach' Suchanek
0 siblings, 1 reply; 9+ messages in thread
From: Antonino A. Daplas @ 2004-09-15 13:11 UTC (permalink / raw)
To: Michal 'hramrach' Suchanek, vandrove; +Cc: linux-fbdev-devel
On Wednesday 15 September 2004 14:09, Michal 'hramrach' Suchanek wrote:
> Hello
>
> 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.
In matroxfb_accel.c:matroxfb_imageblit(), try changing this line:
if (image->depth == 0)
to
if (image->depth == 1)
Tony
>
> Thanks
>
> Michal Suchanek
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
> Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
> Camcorder. More prizes in the weekly Lunch Hour Challenge.
> Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
> _______________________________________________
> Linux-fbdev-devel mailing list
> Linux-fbdev-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-fbdev-devel
-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Framebuffer console not working with matroxfb on 2.6
2004-09-15 11:06 Framebuffer console not working with matroxfb on 2.6 Petr Vandrovec
@ 2004-09-16 10:58 ` Michal 'hramrach' Suchanek
0 siblings, 0 replies; 9+ messages in thread
From: Michal 'hramrach' Suchanek @ 2004-09-16 10:58 UTC (permalink / raw)
To: Petr Vandrovec; +Cc: linux-fbdev-devel
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.
Thanks
Michal Suchanek
-------------------------------------------------------
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] 9+ messages in thread
* Re: Framebuffer console not working with matroxfb on 2.6
2004-09-15 13:11 ` Antonino A. Daplas
@ 2004-09-16 11:42 ` Michal 'hramrach' Suchanek
2004-09-16 13:03 ` Antonino A. Daplas
0 siblings, 1 reply; 9+ messages in thread
From: Michal 'hramrach' Suchanek @ 2004-09-16 11:42 UTC (permalink / raw)
To: adaplas; +Cc: linux-fbdev-devel, vandrove
On Wed, Sep 15, 2004 at 09:11:49PM +0800, Antonino A. Daplas wrote:
>
> In matroxfb_accel.c:matroxfb_imageblit(), try changing this line:
>
> if (image->depth == 0)
>
> to
>
> if (image->depth == 1)
>
May I ask what this change is suposed to do?
As already explained the driver works if compiled into kernel as opposed
to loading it as a module. This change seems too small to fix module
loading :)
Thanks
Michal Suchanek
-------------------------------------------------------
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] 9+ messages in thread
* 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; 9+ 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] 9+ messages in thread
* Re: Framebuffer console not working with matroxfb on 2.6
2004-09-16 11:42 ` Michal 'hramrach' Suchanek
@ 2004-09-16 13:03 ` Antonino A. Daplas
0 siblings, 0 replies; 9+ messages in thread
From: Antonino A. Daplas @ 2004-09-16 13:03 UTC (permalink / raw)
To: Michal 'hramrach' Suchanek, adaplas; +Cc: linux-fbdev-devel, vandrove
On Thursday 16 September 2004 19:42, Michal 'hramrach' Suchanek wrote:
> On Wed, Sep 15, 2004 at 09:11:49PM +0800, Antonino A. Daplas wrote:
> > In matroxfb_accel.c:matroxfb_imageblit(), try changing this line:
> >
> > if (image->depth == 0)
> >
> > to
> >
> > if (image->depth == 1)
>
> May I ask what this change is suposed to do?
Because image->depth will never be equal to 0. (The use of image->depth == 0
is long gone). Anyway, this will not explain why you don't have a console,
so my mistake. However, matroxfb will always default to
unaccelerated imageblit with this test. (Is matroxfb_imageblit broken?) To
use matroxfb's accelerated imageblit routine the test must be changed to
if (image->depth == 1)
Try changing it and compare the time with 'time cat /usr/src/linux/MAINTAINERS'
with and without that minor change.
(Petr, this is probably the reason why copyarea is always fast with your
driver. Most of the time, I find that imageblit > copyarea if y-pan is
disabled, copyarea > imageblit if y-pan is enabled, and imageblit > copyarea
if acceleration is disabled, whether y-pan is enabled or not.)
> As already explained the driver works if compiled into kernel as opposed
> to loading it as a module. This change seems too small to fix module
> loading :)
>
This particular problem (xxxfb == module and fb console != module resulting
to no console) is not specific to matroxfb. This bug/regression should be
fixed in 2.6.9-rc2 or 2.6.9-rc1-mm5.
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] 9+ messages in thread
* 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, 0 replies; 9+ 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] 9+ messages in thread
* Re: Framebuffer console not working with matroxfb on 2.6
@ 2004-09-17 11:32 Petr Vandrovec
0 siblings, 0 replies; 9+ messages in thread
From: Petr Vandrovec @ 2004-09-17 11:32 UTC (permalink / raw)
To: Michal 'hramrach' Suchanek; +Cc: linux-fbdev-devel
On 17 Sep 04 at 10: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.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
No big surprise as it is for 2.6.9-rc2, as name says... You can pick up
older versions if you want...
> 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.
It will work with patch above.
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] 9+ messages in thread
end of thread, other threads:[~2004-09-17 11:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-15 11:06 Framebuffer console not working with matroxfb on 2.6 Petr Vandrovec
2004-09-16 10:58 ` Michal 'hramrach' Suchanek
-- strict thread matches above, loose matches on Subject: below --
2004-09-17 11:32 Petr Vandrovec
2004-09-16 12:04 Petr Vandrovec
2004-09-17 8:51 ` Michal 'hramrach' Suchanek
2004-09-15 6:09 Michal 'hramrach' Suchanek
2004-09-15 13:11 ` Antonino A. Daplas
2004-09-16 11:42 ` Michal 'hramrach' Suchanek
2004-09-16 13:03 ` 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).