All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniël Mantione" <daniel@deadlock.et.tudelft.nl>
To: Claas Langbehn <claas@rootdir.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
	Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.0: atyfb broken
Date: Sun, 4 Jan 2004 01:27:30 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.44.0401040041160.10711-100000@deadlock.et.tudelft.nl> (raw)
In-Reply-To: <20040103233728.GA22427@rootdir.de>



On Sun, 4 Jan 2004, Claas Langbehn wrote:

> Hello!
>
>
> > > Does it work with 2.4.22 and earlier? Mobility support was changed a lot in
> > > 2.4.23.
>
> No, 2.4.22 does not work either. It has also screen-flickering.

Ok, that was expected; this most likely is because of the initialisation
code in 2.4.22; it is completely unsuitable for the Mobility M1 and programs
very bad values into the chip.

> 2.6.0 seems to be closest to a working solution.

Not at all. Your laptop has an LCD display. Unlike CRTs, LCD displays have
a fixed resolution; you LCD display has 1024x768 pixels. Because the
display is completely digital, the display needs its pixel data send at
a fixed rate, enforcing also the refresh rate, 60 Hz in your case.

(LCD monitors with VGA-connectors have special chips that adapt the
resolution and refresh rate of a VGA signal to the video mode desired by
the panel. Image quality suffers badly)

Because of this, a traditional video driver will fail on such a display.
I.e. Atyfb switches to 640x480 60 Hz, which is completely different from
what your display accepts, and it won't work.

Because of some VGA compatibility stuff normal 720x400 VGA text mode is
downscaled to 640x400 by your laptop. Therefore, it is not too different
from 640x480 and on some computers it displays something. I experienced
this on my Rage LT pro, the image was completely wrong, the bottom part of
the screen was a mirror of the upper part.

Therefore, it might happen that 2.6.0 does display something
(initialization is different from 2.4.x), but 2.6.0 will not display a
correct image in any case.

Years ago I started making the Atyfb support LCD displays. It was a very
difficult project; I got my own laptop working more than 2 years ago,
after that slowly all the other machines I knew of started working.
However, it was only until recently before Geert's laptop did work; that was a
really stupborn one. The LCD registers on the chips are very tricky to set
right; the clock code (which was completely wrong) was even more tricky
to get right.

My work was included in 2.4.23. Therefore that kernel
is the only one which has any chance of working. Apparently
there still is an LCD specific issue with your laptop, which needs to be
debugged.

What to do?

The best thing you can try is to connect a CRT. Its a handy tool (it
eats any video mode, including wrong ones) to check if the driver does
something wrong. Use it to inspect geometry and the horizontal & vertical
refresh rates. The CRT should dislay 1024x768 60 Hz in all resolutions
(unless you switch off the LCD display).

Compile Atyfb as module. Use fbset to switch video modes blindly. Check
the following modes: 640x400, 640x480, 1024x768.

If everything is ok, we'll start to do some register debugging.

Daniël


  reply	other threads:[~2004-01-04  0:27 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-30 21:26 2.6.0: atyfb broken Claas Langbehn
2003-12-31  4:06 ` Andrew Morton
2003-12-31  4:33   ` Benjamin Herrenschmidt
2004-01-05 23:33     ` James Simmons
2004-01-05 23:44       ` Benjamin Herrenschmidt
2004-03-29 15:45       ` Benjamin Herrenschmidt
2004-03-29 15:45     ` James Simmons
2004-01-01 18:55 ` Geert Uytterhoeven
2004-01-01 21:53   ` Claas Langbehn
2004-01-02 12:44     ` Geert Uytterhoeven
2004-01-02 15:36       ` Daniël Mantione
2004-01-03 23:37         ` Claas Langbehn
2004-01-04  0:27           ` Daniël Mantione [this message]
2004-01-04  0:52             ` Claas Langbehn
2004-01-04  9:40               ` Daniël Mantione
     [not found]               ` <Pine.LNX.4.44.0401041040480.28807-402000@deadlock.et.tudelft.nl>
     [not found]                 ` <20040104110941.GA983@rootdir.de>
     [not found]                   ` <20040104121019.GB1073@rootdir.de>
2004-01-04 16:35                     ` Claas Langbehn
2004-01-05 22:32 ` James Simmons
2004-01-06 18:16   ` Ralf Hildebrandt
2004-01-07  1:01     ` James Simmons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.44.0401040041160.10711-100000@deadlock.et.tudelft.nl \
    --to=daniel@deadlock.et.tudelft.nl \
    --cc=claas@rootdir.de \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.