From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K5OWE-0005j5-0f for mharc-grub-devel@gnu.org; Sun, 08 Jun 2008 13:17:26 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K5OWD-0005ij-9C for grub-devel@gnu.org; Sun, 08 Jun 2008 13:17:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K5OWB-0005i4-IE for grub-devel@gnu.org; Sun, 08 Jun 2008 13:17:24 -0400 Received: from [199.232.76.173] (port=42058 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K5OWB-0005i1-G4 for grub-devel@gnu.org; Sun, 08 Jun 2008 13:17:23 -0400 Received: from mta-out.inet.fi ([195.156.147.13]:51898 helo=jenni2.rokki.sonera.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K5OWB-00040k-4f for grub-devel@gnu.org; Sun, 08 Jun 2008 13:17:23 -0400 Received: from [127.0.0.1] (88.193.32.97) by jenni2.rokki.sonera.fi (8.5.014) id 483E832F007F8735 for grub-devel@gnu.org; Sun, 8 Jun 2008 20:17:19 +0300 Message-ID: <484C1429.4090803@nic.fi> Date: Sun, 08 Jun 2008 20:17:29 +0300 From: =?ISO-8859-1?Q?Vesa_J=E4=E4skel=E4inen?= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: The development of GRUB 2 References: In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: Can we get video card information in EFI environment ? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 17:17:25 -0000 Bean wrote: > BTW, you need to remove the udev start script from /etc/rcS.d, > otherwise the screen would scramble again. I believe the cause is > agppart. Fame buffer of EFI is a little strange, the line length is > not equal to width * 4, for example, my macbook: > > width: 1280 > depth: 32 > line length: 8192 This is quite normal and can change from card to card. So thats the reason you ask for line length from VBE/HW. > So there is some invisible space after the screen boundary. But in > bios emulation mode, the length is exactly width * 4. I think the > driver should take this into account, or reconfigure the video > hardware to use the new line length. (Anyone know how to do it ?) GRUB 2 VBE driver already should work nicely with this (assuming VBE is available). If you are planning to do EFI driver then you just use its API to do blitting. Writing driver for EFI should be rather easy if I remember correctly its interface. Can't write that driver myself unless someone wants to provide me environment to do the coding.