public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Antonino A. Daplas" <adaplas@gmail.com>
To: gl@dsa-ac.de
Cc: Matthew Garrett <mgarrett@chiark.greenend.org.uk>,
	linux-kernel@vger.kernel.org
Subject: Re: who sets boot_params[].screen_info.orig_video_isVGA?
Date: Tue, 06 Sep 2005 09:19:43 +0800	[thread overview]
Message-ID: <431CEEAF.5090701@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.63.0509051736420.11341@pcgl.dsa-ac.de>

gl@dsa-ac.de wrote:
> Thanks for the reply, Matthew.
> 
> On Mon, 5 Sep 2005, Matthew Garrett wrote:
> 
>> gl@dsa-ac.de <gl@dsa-ac.de> wrote:
>>> I am trying to get intelfb running on a system with a 855GM onboard
>>> chip,
>>> and the driver exits at intelfbdrv.c::intelfb_pci_register() (2.6.13,
>>> line
>>> 814:
>>>
>>>      if (FIXED_MODE(dinfo) && ORIG_VIDEO_ISVGA != VIDEO_TYPE_VLFB) {
>>>          ERR_MSG("Video mode must be programmed at boot time.\n");
>>>          cleanup(dinfo);
>>>          return -ENODEV;
>>>      }
>>
>> This ought to be done by the bootloader if you pass a vga=foo argument.
>> The framebuffer driver doesn't know how to switch resolutions (primarily
>> because Intel won't tell anyone how to do it, so the only method is a
>> real-mode BIOS call to the VESA BIOS)
> 
> Do I get it right, that, say, if I tell grub to load a kernel and
> specify "vga=xxx" on the kernel command line, grub will interpret it,
> issue some VESA BIOS calls and fill in the screen_info struct? If so,
> the card often supports several modes (VGA, SVGA, VESA, different
> resolutions, colour depths, etc.), right? So, which one will be chosen?
> Does it depend on the specific value I give to "vga="? How do I force
> VIDEO_TYPE_VLFB (VESA VGA in graphic mode) mopde then?
> 
> BTW, I didn't find any code in grub that sets up screen_info, or it's
> very well hidden:-)

One good method is to use the "vesa" driver of Xorg/Xfree86.  Check
/var/log/X*.log and it should have a nice list of vesa mode id's that
are supported.

Then add 0x200 to any of them and use it in your vga= parameter.

Tony 

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

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-05 15:01 who sets boot_params[].screen_info.orig_video_isVGA? gl
2005-09-05 15:29 ` Matthew Garrett
2005-09-05 15:45   ` gl
2005-09-05 15:58     ` Matthew Garrett
2005-09-06  1:19     ` Antonino A. Daplas [this message]
2005-09-06  7:32       ` gl
2005-09-06  8:33         ` Antonino A. Daplas
2005-09-06  9:20           ` input/touchscreen (was Re: who sets boot_params[].screen_info.orig_video_isVGA?) gl
2005-09-06  9:33             ` gl
2005-09-06 10:41               ` gl

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=431CEEAF.5090701@gmail.com \
    --to=adaplas@gmail.com \
    --cc=gl@dsa-ac.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mgarrett@chiark.greenend.org.uk \
    /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