From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: jpeg image does not show in background
Date: Fri, 01 Oct 2010 22:15:15 +0200 [thread overview]
Message-ID: <4CA64153.2050103@gmail.com> (raw)
In-Reply-To: <AANLkTiku+5o2WQA696CrV_p=Ocp4x2YdHofGgg14WV84@mail.gmail.com>
On 10/01/2010 08:55 PM, Piscium wrote:
> On 1 October 2010 17:44, BandiPat <magicpage91@earthlink.net> 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
next prev parent reply other threads:[~2010-10-01 20:15 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-01 12:10 jpeg image does not show in background Piscium
2010-10-01 12:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-10-01 13:03 ` Piscium
2010-10-01 14:00 ` Piscium
2010-10-01 14:34 ` Piscium
2010-10-01 16:11 ` Piscium
2010-10-01 16:44 ` BandiPat
2010-10-01 18:55 ` Piscium
2010-10-01 20:15 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2010-10-02 9:17 ` Piscium
2010-10-02 9:31 ` Piscium
2010-10-02 22:17 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-10-01 18:12 ` Colin D Bennett
2010-10-01 18:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
-- strict thread matches above, loose matches on Subject: below --
2010-10-01 14:15 Tom Davies
2010-10-01 15:40 ` Piscium
2010-10-01 18:10 ` Colin D Bennett
2010-10-01 18:39 ` Piscium
2010-10-02 19:48 Tom Davies
2010-10-02 22:14 ` Vladimir 'φ-coder/phcoder' Serbinenko
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=4CA64153.2050103@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.