linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] matroxfb and mga XF4 driver coexistence...
@ 2001-04-12 13:01 Petr Vandrovec
  2001-04-12 13:04 ` Rafael E. Herrera
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Vandrovec @ 2001-04-12 13:01 UTC (permalink / raw)
  To: Chris Meadors; +Cc: alan, torvalds, linux-kernel, linux-fbdev

On 11 Apr 01 at 14:55, Chris Meadors wrote:
> 
> I would like to see this fixed as much as anyone (even complained to the
> XFree people from SuSE last ALS).  But I don't think the fix should be in
> the kernel.  XF4 needs to be fixed.  The problem doesn't just effect the
> maxtroxfb, but also the vgacon video mode selection.

But only users using matroxfb complains to me and/or to linux-kernel ;-)
You know, it worked last week, but it does not work anymore today. And
only thing I changed was kernel. So it must be in kernel...
 
> If I put anything other than "normal" or "extended" in the "vga=" line of
> my lilo.conf the machine starts okay, but upon exiting X bad stuff

It is first time I see that other drivers than mga one has troubles.
 
> I don't use the matroxfb driver so this patch wouldn't help me, and is
> also why I say XFree 4.0 needs to be fixed.

Buy matrox and use matroxfb. It will fix problem for you, then...
                                                Petr Vandrovec
                                                vandrove@vc.cvut.cz
                                                

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] matroxfb and mga XF4 driver coexistence...
  2001-04-12 13:01 [PATCH] matroxfb and mga XF4 driver coexistence Petr Vandrovec
@ 2001-04-12 13:04 ` Rafael E. Herrera
  2001-04-12 13:28   ` Chris Meadors
  0 siblings, 1 reply; 7+ messages in thread
From: Rafael E. Herrera @ 2001-04-12 13:04 UTC (permalink / raw)
  To: Petr Vandrovec; +Cc: Chris Meadors, linux-kernel, linux-fbdev

Petr Vandrovec wrote:
> 
> On 11 Apr 01 at 14:55, Chris Meadors wrote:
> >
> > I would like to see this fixed as much as anyone (even complained to the
> > XFree people from SuSE last ALS).  But I don't think the fix should be in
> > the kernel.  XF4 needs to be fixed.  The problem doesn't just effect the
> > maxtroxfb, but also the vgacon video mode selection.
> 
> But only users using matroxfb complains to me and/or to linux-kernel ;-)
> You know, it worked last week, but it does not work anymore today. And
> only thing I changed was kernel. So it must be in kernel...
> 
> > If I put anything other than "normal" or "extended" in the "vga=" line of
> > my lilo.conf the machine starts okay, but upon exiting X bad stuff
> 
> It is first time I see that other drivers than mga one has troubles.

I think he's referrig to the matrox cards. I have mentioned this
happening to me in this list. I've a G450, if I use anything other than
'normal', going in and out of X makes my text console go blank. I don't
use the frame buffer, by the way.
 
> > I don't use the matroxfb driver so this patch wouldn't help me, and is
> > also why I say XFree 4.0 needs to be fixed.
> 
> Buy matrox and use matroxfb. It will fix problem for you, then...

If the problem occurs whithout the frame buffer on, the problem seems to
be on the X server.
-- 
     Rafael

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] matroxfb and mga XF4 driver coexistence...
  2001-04-12 13:04 ` Rafael E. Herrera
@ 2001-04-12 13:28   ` Chris Meadors
  2001-04-12 18:53     ` [lkml]Re: " thunder7
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Meadors @ 2001-04-12 13:28 UTC (permalink / raw)
  To: Rafael E. Herrera; +Cc: Petr Vandrovec, linux-kernel, linux-fbdev

On Thu, 12 Apr 2001, Rafael E. Herrera wrote:

> > But only users using matroxfb complains to me and/or to linux-kernel ;-)
> > You know, it worked last week, but it does not work anymore today. And
> > only thing I changed was kernel. So it must be in kernel...

I thought I had seen at least one other complaint on l-k about seeing the
problem in text mode.

> I think he's referrig to the matrox cards. I have mentioned this
> happening to me in this list. I've a G450, if I use anything other than
> 'normal', going in and out of X makes my text console go blank. I don't
> use the frame buffer, by the way.

Yes, sorry I didn't make this clear.  I have a Matrox G400.

> If the problem occurs whithout the frame buffer on, the problem seems to
> be on the X server.

Exactly.  That is what I'm saying.  I've seen the problem with the
returning to VESA text modes from XFree 4.0 anytime I use the hallib, with
2.2 and 2.4 kernels.  If I compile an X server without the hallib it's
fine (G450 users don't have that option, and I like my dual head).

If X changes the mode upon starting it should put it back when it is done.

-Chris
-- 
Two penguins were walking on an iceberg.  The first penguin said to the
second, "you look like you are wearing a tuxedo."  The second penguin
said, "I might be..."                         --David Lynch, Twin Peaks


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lkml]Re: [PATCH] matroxfb and mga XF4 driver coexistence...
  2001-04-12 13:28   ` Chris Meadors
@ 2001-04-12 18:53     ` thunder7
  2001-04-12 19:53       ` Chris Meadors
  0 siblings, 1 reply; 7+ messages in thread
From: thunder7 @ 2001-04-12 18:53 UTC (permalink / raw)
  To: linux-kernel

On Thu, Apr 12, 2001 at 09:28:44AM -0400, Chris Meadors wrote:
> On Thu, 12 Apr 2001, Rafael E. Herrera wrote:
> > If the problem occurs whithout the frame buffer on, the problem seems to
> > be on the X server.
> 
> Exactly.  That is what I'm saying.  I've seen the problem with the
> returning to VESA text modes from XFree 4.0 anytime I use the hallib, with
> 2.2 and 2.4 kernels.  If I compile an X server without the hallib it's
> fine (G450 users don't have that option, and I like my dual head).
> 
> If X changes the mode upon starting it should put it back when it is done.
> 
Of course, but if we can fix the problem by making the kernel smaller,
what possible motive could you have for opposing it other than 'but it
doesn't solve _my_ problems!' ?

Good luck,
Jurriaan
-- 
HORROR FILM WISDOM:
7. If you're running from the monster, you will most likely trip or
fall. If you are female you can bet on it.
GNU/Linux 2.4.3-ac4 SMP/ReiserFS 2x1743 bogomips load av: 0.03 0.01 0.02

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lkml]Re: [PATCH] matroxfb and mga XF4 driver coexistence...
  2001-04-12 18:53     ` [lkml]Re: " thunder7
@ 2001-04-12 19:53       ` Chris Meadors
  0 siblings, 0 replies; 7+ messages in thread
From: Chris Meadors @ 2001-04-12 19:53 UTC (permalink / raw)
  To: thunder7; +Cc: linux-kernel

On Thu, 12 Apr 2001, thunder7@xs4all.nl wrote:

> Of course, but if we can fix the problem by making the kernel smaller,
> what possible motive could you have for opposing it other than 'but it
> doesn't solve _my_ problems!' ?

Agreed.  The only thing I was thinking, was if the kernel is doing the
right thing now, it shouldn't be forced to work around a bug in XFree.
By not "fixing" the kernel, the XFree team would be forced to do the right
thing.

As for me, I'm going to see about getting the matroxfb working, so if the
patch goes in I'll be able to use a nice 132 character wide terminal
again.  And I'm getting addicted to dual head in X, might be fun on the
console too.

-Chris
-- 
Two penguins were walking on an iceberg.  The first penguin said to the
second, "you look like you are wearing a tuxedo."  The second penguin
said, "I might be..."                         --David Lynch, Twin Peaks


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] matroxfb and mga XF4 driver coexistence...
  2001-04-11 18:11 Petr Vandrovec
@ 2001-04-11 18:55 ` Chris Meadors
  0 siblings, 0 replies; 7+ messages in thread
From: Chris Meadors @ 2001-04-11 18:55 UTC (permalink / raw)
  To: Petr Vandrovec; +Cc: alan, torvalds, linux-kernel, linux-fbdev

On Wed, 11 Apr 2001, Petr Vandrovec wrote:

> Hi,
>    Alan, Linus, please apply this patch to matroxfb. It fixes complaints
> from people that screen is black after they exit from X back to console.
> Matrox driver does not know that it should return hardware state back to
> initial state after switch, but matroxfb relies on that (XF3 did that...).
> So now it reprograms hardware always from scratch...

I would like to see this fixed as much as anyone (even complained to the
XFree people from SuSE last ALS).  But I don't think the fix should be in
the kernel.  XF4 needs to be fixed.  The problem doesn't just effect the
maxtroxfb, but also the vgacon video mode selection.

If I put anything other than "normal" or "extended" in the "vga=" line of
my lilo.conf the machine starts okay, but upon exiting X bad stuff
happens.  The screen doesn't just go black.  Probally the majority of
Matrox owners have multisync monitors, but I'm stuck with an old monosync,
and it looses sync when trying to return to a VESA text mode.

I don't use the matroxfb driver so this patch wouldn't help me, and is
also why I say XFree 4.0 needs to be fixed.

-Chris
-- 
Two penguins were walking on an iceberg.  The first penguin said to the
second, "you look like you are wearing a tuxedo."  The second penguin
said, "I might be..."                         --David Lynch, Twin Peaks


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] matroxfb and mga XF4 driver coexistence...
@ 2001-04-11 18:11 Petr Vandrovec
  2001-04-11 18:55 ` Chris Meadors
  0 siblings, 1 reply; 7+ messages in thread
From: Petr Vandrovec @ 2001-04-11 18:11 UTC (permalink / raw)
  To: alan, torvalds; +Cc: linux-kernel, linux-fbdev

Hi,
   Alan, Linus, please apply this patch to matroxfb. It fixes complaints
from people that screen is black after they exit from X back to console.
Matrox driver does not know that it should return hardware state back to
initial state after switch, but matroxfb relies on that (XF3 did that...).
So now it reprograms hardware always from scratch...
					Thanks,
						Petr Vandrovec
						vandrove@vc.cvut.cz

diff -urdN linux/drivers/video/matrox/matroxfb_DAC1064.c linux/drivers/video/matrox/matroxfb_DAC1064.c
--- linux/drivers/video/matrox/matroxfb_DAC1064.c	Tue Apr 10 22:56:19 2001
+++ linux/drivers/video/matrox/matroxfb_DAC1064.c	Wed Apr 11 11:45:50 2001
@@ -418,7 +418,12 @@
 	outDAC1064(PMINFO DAC1064_XSYSPLLM, hw->DACclk[3]);
 	outDAC1064(PMINFO DAC1064_XSYSPLLN, hw->DACclk[4]);
 	outDAC1064(PMINFO DAC1064_XSYSPLLP, hw->DACclk[5]);
-	if (!oldhw || memcmp(hw->DACreg, oldhw->DACreg, sizeof(MGA1064_DAC_regs))) {
+	/*
+	 * We must ALWAYS reprogram hardware due to broken XF4 matrox drivers...
+	 *
+	 * if (!oldhw || memcmp(hw->DACreg, oldhw->DACreg, sizeof(MGA1064_DAC_regs))) 
+	 */
+	{
 		unsigned int i;
 
 		for (i = 0; i < sizeof(MGA1064_DAC_regs); i++) {

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-04-12 19:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-12 13:01 [PATCH] matroxfb and mga XF4 driver coexistence Petr Vandrovec
2001-04-12 13:04 ` Rafael E. Herrera
2001-04-12 13:28   ` Chris Meadors
2001-04-12 18:53     ` [lkml]Re: " thunder7
2001-04-12 19:53       ` Chris Meadors
  -- strict thread matches above, loose matches on Subject: below --
2001-04-11 18:11 Petr Vandrovec
2001-04-11 18:55 ` Chris Meadors

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).