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 16:32:53 +0800	[thread overview]
Message-ID: <4497B2B5.4040001@gmail.com> (raw)
In-Reply-To: <9e4733910606191916i1994d4d1i2ea661e015431750@mail.gmail.com>

Jon Smirl wrote:
> On 6/19/06, Antonino A. Daplas <adaplas@gmail.com> wrote:
>> 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.
> 
> modprobe fbcon
> modprobe nvidiafb
> 
> Display is messed up.
> 
> I used to fix this by switching to X and back but the nvidia X driver
> won't build on the mm kernel. I can try again and write a script to
> echo a mode into sysfs after the modprobe.
> 
> When fbcon first gets a new fbdev driver registered with it, should it
> pick one of the modes is supports and set it automatically?

All fbdev drivers have a startup mode that should always be valid. All
fbcon does is enable that mode.

You can load nvidiafb like this instead:

modprobe nvidiafb mode_option=1024x768@60

> 
>>  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).
> 
> How does vbetool save state?

vbetool basically calls an int10 function that saves the state.  This
function is unique per video BIOS, ie you cannot use the state file in
another machine even if the graphics chipset is the same.

> Could VGAcon do whatever vbetool is doing?
 
No it can't.  Once the card is in graphics mode, vgacon cannot go to
text mode on its own.  It has to know how to write to other VGA
registers which are unique per hardware.

Tony

  reply	other threads:[~2006-06-20  8:33 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
2006-06-20  2:16     ` Jon Smirl
2006-06-20  8:32       ` Antonino A. Daplas [this message]
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=4497B2B5.4040001@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).