linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Alex Stewart <alex@foogod.com>
Cc: Linux Fbdev development list <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: fbcon VT (mode) switching issue
Date: Wed, 28 Apr 2004 10:44:02 +1000	[thread overview]
Message-ID: <1083113041.20092.17.camel@gaston> (raw)
In-Reply-To: <10040.159.37.7.44.1083099594.squirrel@www.foogod.com>


> This appears to be due to the fact that when changing VTs, set_par (which
> is where neofb changes the hardware video mode) isn't called until
> sometime after the fbcon code uses imageblit to transfer the console text
> to the screen.  The result is that the accelerated imageblit is done with
> the hardware still set to the old screen resolution/depth, and thus the
> neomagic chip writes the data to memory in a form appropriate for the old
> mode, not the new one that we're switching to.

That's weird, we should get a call to fbcon_blank() triggering an
FB_ACTIVATE_FORCE call before anything is drawn (on the switch from
KD_GRAPHICS to KD_TEXT more specifically).

> I've tried to figure out how this whole process works and what the best
> fix for this problem is, but to be honest, trying to follow some of the
> code paths in the framebuffer console system is rather like trying to
> follow Brer Rabbit through the briar patch..  I could use the help of
> somebody a bit more familiar with this part of things, I think.
> 
> I have determined that adding a call to set_par at the beginning of
> fbcon_switch does fix the problem.  Of course it also ends up calling
> set_par twice during the overall switching procedure (with noticeable
> flicker), and I'm not really sure this is the right place to put it
> anyway, so I wanted to get people's opinion as to what the right fix is..

That's not the right fix.

Ben.




-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click

  reply	other threads:[~2004-04-28  0:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-27 20:59 fbcon VT (mode) switching issue Alex Stewart
2004-04-28  0:44 ` Benjamin Herrenschmidt [this message]
2004-04-28  0:49 ` Antonino A. Daplas

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=1083113041.20092.17.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=alex@foogod.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    /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 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).