linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@gmail.com>
To: Jon Smirl <jonsmirl@gmail.com>
Cc: Linux Fbdev development list
	<linux-fbdev-devel@lists.sourceforge.net>,
	Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 3/9] VT binding: Make VT binding a Kconfig option
Date: Tue, 20 Jun 2006 09:09:27 +0800	[thread overview]
Message-ID: <44974AC7.4060708@gmail.com> (raw)
In-Reply-To: <9e4733910606191718n74d0bf40na7b0cc3902d80172@mail.gmail.com>

Jon Smirl wrote:
> I gave this patch a try and it seems to work. I say seems because I
> could not get the nvidiafb driver to set a usable mode after it was
> bound/unbound.

What do you mean by this?  You mean that you cannot restore vgacon?
If that's the case, then yes, that is perfectly understandable as
nvidiafb does not restore VGA to text mode.

> That's not a problem with the patch, the patch is not
> addressing that issue. I tried vbetool but it kept GPFing.

I use nvidiafb, and vbetool works for me. It probably depends on the
hardware. Some nvidia cards have faulty BIOS'es and this has been reported
several times, at least when using nvidia cards with vesafb-tng.

> This is a
> patch to help developers so maybe someone will fix nvidiafb to be more
> friendly.
> 
> Is there any way to lessen this problem?

The best and simplest way is to make nvidiafb behave like i810fb and rivafb
where they completely restore the VGA hardware to text mode. Hopefully
adding this is not as difficult as it sounds. (I'll see if I can work on
this within this week).

>  Would it help if fbcon worked
> with text modes,

fbcon does work with text mode. One developer converted viafb to work
this way.  Each driver must be converted separately though.
 
 or would it be better for each driver to set in a
> default mode that it understands when it gets control? The fbdev
> driver should not set a mode when it loads, but that doesn't mean
> fbcon can't set one when it is activated. Similarly VGAcon would set
> the mode (and load its fonts) when it regains control.

The problem with vgacon setting its own mode is that it does not know
anything about the hardware. So VGA text mode will need to rely on
a secondary program to set the mode (whether it's vbetool, another
fb driver, or X does not matter).

A standalone vga text driver is next to impossible to do.

> 
> It would also be interesting to make VGAcon a modular driver. You
> could build in fbcon and then work on VGAcon.
> 

This is very doable.  Add a module_init() for vgacon where it calls
take_over_console(). And make sure the system driver points to
dummycon.

Tony

  reply	other threads:[~2006-06-20  1:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-18 15:24 [PATCH 3/9] VT binding: Make VT binding a Kconfig option Antonino A. Daplas
2006-06-20  0:18 ` Jon Smirl
2006-06-20  1:09   ` Antonino A. Daplas [this message]
2006-06-20  2:16     ` Jon Smirl
2006-06-20  8:32       ` Antonino A. Daplas
2006-06-20 14:04         ` Jon Smirl
2006-06-20 14:31           ` Antonino A. Daplas
2006-06-20 14:49             ` Jon Smirl

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=44974AC7.4060708@gmail.com \
    --to=adaplas@gmail.com \
    --cc=jonsmirl@gmail.com \
    --cc=linux-fbdev-devel@lists.sourceforge.net \
    --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 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).