From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1P1m0u-0004yD-AP for mharc-grub-devel@gnu.org; Fri, 01 Oct 2010 16:15:28 -0400 Received: from [140.186.70.92] (port=46035 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1m0s-0004xQ-0K for grub-devel@gnu.org; Fri, 01 Oct 2010 16:15:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1m0q-00075C-2r for grub-devel@gnu.org; Fri, 01 Oct 2010 16:15:25 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:40241) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1m0p-00074d-UT for grub-devel@gnu.org; Fri, 01 Oct 2010 16:15:24 -0400 Received: by fxm10 with SMTP id 10so3040975fxm.0 for ; Fri, 01 Oct 2010 13:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=7cQWLyu8FC2yUP+YGliJKNoF2KXt4NVROyzIcUeLQt0=; b=mFFaz4JrNL91FRjQvJb1V10uZ+OCqk0+ElUJryWc0qaLqHO8pdgnbJxlbizX8fqyNX 1+DKSaXXSDcz5M5zodBIXaWTDGcHOiTKqLf5N78liXlaqVGadWHawM/dARz+QGalbzJS reAEpj5V5kGibatDcTqGbgRJ1GaOhzcoHq+kg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=v4w7MkW1hUeUEOI9fTA9vJYuWFhNEM22ehdXH4ouBnwSjhefgIpxomOkPdSpgNF1qy MpudHYdbmQNAhWWGZvPipT/DDW1SrNf/clpdlDXbxLQMaqfJAL0+EmcKD5gnHnmQXAqn Rd7+qWZ4/YbvL4tPWOFVIcOfMn4cV1ayC9FHI= Received: by 10.103.108.9 with SMTP id k9mr2245654mum.121.1285964122277; Fri, 01 Oct 2010 13:15:22 -0700 (PDT) Received: from debian.bg45.phnet (156-70.203-62.cust.bluewin.ch [62.203.70.156]) by mx.google.com with ESMTPS id d15sm3803488faa.3.2010.10.01.13.15.16 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 01 Oct 2010 13:15:17 -0700 (PDT) Message-ID: <4CA64153.2050103@gmail.com> Date: Fri, 01 Oct 2010 22:15:15 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6 MIME-Version: 1.0 To: grub-devel@gnu.org References: <4CA5D0A0.70107@gmail.com> <4CA61001.20803@earthlink.net> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: jpeg image does not show in background X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2010 20:15:27 -0000 On 10/01/2010 08:55 PM, Piscium wrote: > On 1 October 2010 17:44, BandiPat wrote: > > >> I don't think it's the monitor's resolution that you should be concerned >> with, but your graphics cards framebuffer. Since the graphics card's engine >> hasn't been fully activated yet, you are relegated to the framebuffer only >> to display images. Normally this will be 1280x1024 or smaller. >> > Well, 1920X1080 displays well with png with a file of 3.2 Mbytes. > > >> Have you tried a 1280x1024 size jpeg for your background image? >> > Following your suggestion I hacked grub.cfg to display 1280x1024. Then > I got two other images of this resolution, one png, one jpeg. The png > displayed well, the jpeg didn't. > > At this point I thought that no jpeg could be displayed. To test this > hypothesis I started Gimp and created a basic jpeg, with some > scribbles with a red brush on a white background. The file was > obviously much smaller than the others I had tested, only 78 Kbytes. > This file displayed well. > > The conclusion appears to be that the jpeg module in grub2 is very > fussy about the files that it displays. Note there was nothing special > about the files I wanted to display. The "green_mountains" was taken > from a blog, and the two 1280x1024 images were taken from the Gnome > Art website. > It's not really "nothing particular". With pictures taken by my camera it works fine. > There is a file grub-core/video/readers/jpeg.c. It has plenty of debug > statements like: > "grub_error (GRUB_ERR_BAD_FILE_TYPE, "jpeg: huffman decode fails"); > > Is there some easy way to read the text of these messages? (I have no > JTAG and my hardware does not support virtualization). > > They aren't debug messages but error messages which are shown if you call background_image manually. Bluepill extensions are useless for debugging GRUB and sticking to the simplest qemu is the best option. Qemu works on any hardware. > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko