grub-pc_1.96+20090725-1ubuntu1_i386.deb does not display background_image

Bug #410653 reported by rafik24
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: grub2

grub-pc_1.96+20090725-1ubuntu1_i386.deb on Karmic does not display background_image,
this is a regretion from grub-pc_1.96+20090611-1ubuntu4_i386

 The only fix is to downgrade to grub-pc_1.96+20090611-1ubuntu4_i386

Description: Ubuntu karmic (development branch)
Release: 9.10

Symptom:

 When issuing the command background_image /boot/grub/somepic.png in the grub command the return is

error: No video mode found

 videotest ==> error: No suitable mode found

 tried using set gfxmode=640x480 and set videomode=640x480 wont help.

 Regards,

Rafik

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

I can confirm this happens on grub-pc 1.97~beta4-1ubuntu4 as well.
This time background_image returns the error: "error: No video mode activated".

This bug has been previously reported on Debian, but marked as fixed: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522128 Clearly it hasn't been fixed yet - or at least not in Ubuntu.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Felix Zielcke (fzielcke) wrote : Re: [Bug 410653] Re: grub-pc_1.96+20090725-1ubuntu1_i386.deb does not display background_image

Am Samstag, den 07.11.2009, 10:17 +0000 schrieb Fibonacci:
> I can confirm this happens on grub-pc 1.97~beta4-1ubuntu4 as well.
> This time background_image returns the error: "error: No video mode activated".
>
> This bug has been previously reported on Debian, but marked as fixed:
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=522128 Clearly it
> hasn't been fixed yet - or at least not in Ubuntu.
>

Please run sudo dpkg-reconfigure grub-pc and make sure that GRUB 2 gets
installed to the correct device, i.e. after the debconf prompts you see
the output of grub-install.
If it then still fails type the commands from grub.cfg in the
commandline. Then you hopefully get a more useful error.
Also check if vbeinfo works and lists your mode you selected for
GRUB_GFXMODE after insmod vbe.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

This is the output of dpkg-reconfigure:

Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0) /dev/sda
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows XP Home Edition on /dev/sda1
done

I ran the first two sections of my grub.cfg file on the GRUB console without getting any error message. Here they are:

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
  have_grubenv=true
  load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
  saved_entry=${prev_saved_entry}
  save_env saved_entry
  prev_saved_entry=
  save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 092586b6-f367-48c1-a979-0014ea02ed0e
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
if [ ${recordfail} = 1 ]; then
  set timeout=-1
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set 092586b6-f367-48c1-a979-0014ea02ed0e
insmod png
if background_image /boot/grub/moreblue-orbit-splash.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=white/black
  set menu_color_highlight=black/white
fi
### END /etc/grub.d/05_debian_theme ###

And vbeinfo prints a long list, at the end of which is the message: "Configured VBE mode (vbe_mode) = 0x101"

Revision history for this message
Felix Zielcke (fzielcke) wrote :

Am Samstag, den 07.11.2009, 11:44 +0000 schrieb Fibonacci:
>
> I ran the first two sections of my grub.cfg file on the GRUB console
> without getting any error message. Here they are:
[...]
>
> And vbeinfo prints a long list, at the end of which is the message:
> "Configured VBE mode (vbe_mode) = 0x101"

So it does work now if you type the commands yourself but not from
grub.cfg?
That would be strange if no command until the background_image failed.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

No, it doesn't work with my commands, I get no background image either.
It's just that "background_image /some/image.png" does return an error, while "if background_image /some/image.png" doesn't.

Revision history for this message
Felix Zielcke (fzielcke) wrote :

Am Samstag, den 07.11.2009, 15:30 +0000 schrieb Fibonacci:
> No, it doesn't work with my commands, I get no background image either.
> It's just that "background_image /some/image.png" does return an error, while "if background_image /some/image.png" doesn't.
>

uhm right, it's better to run them without if.
So please run:
  loadfont /usr/share/grub/unicode.pf2
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal_output gfxterm

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

> loadfont /usr/share/grub/unicode.pf2
> set gfxmode=640x480
> insmod gfxterm
> insmod vbe
> terminal_output gfxterm
At this point I get "error: No suitable mode found."

background_image still fails with the same error as before.

Revision history for this message
Felix Zielcke (fzielcke) wrote :

Am Samstag, den 07.11.2009, 16:12 +0000 schrieb Fibonacci:
> > loadfont /usr/share/grub/unicode.pf2
> > set gfxmode=640x480
> > insmod gfxterm
> > insmod vbe
> > terminal_output gfxterm
> At this point I get "error: No suitable mode found."

Check with set pager=1 ; vbeinfo which modes are listed.
Try an explicit bit depth like set gfxmode=640x480x16

> background_image still fails with the same error as before.
Makes sense if gfxterm fails to activate

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

List of compatible video modes:
0x100: 640 x 400 x 8 Packed
0x101: 640 x 480 x 8 Packed
0x103: 800 x 600 x 8 Packed
0x105: 1024 x 768 x 8 Packed
0x110: 640 x 400 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
0x111: 640 x 480 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
0x112: 640 x 480 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
0x113: 800 x 600 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
0x114: 800 x 600 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
0x115: 800 x 600 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
0x116: 1024 x 768 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
0x117: 1024 x 768 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
0x118: 1024 x 768 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
0x10d: 320 x 200 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
0x10e: 320 x 200 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
0x10f: 320 x 200 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
0x120: 320 x 200 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
0x193: 320 x 240 x 8 Packed
0x194: 320 x 240 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
0x195: 320 x 240 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
0x196: 320 x 240 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
... I stopped copying modes here. There were similar lines for 512×384, 640×350, 640×400, and 720×400, in 8, 16, and 32 bits.

Revision history for this message
Felix Zielcke (fzielcke) wrote :

Am Samstag, den 07.11.2009, 17:04 +0000 schrieb Fibonacci:
> List of compatible video modes:
> 0x100: 640 x 400 x 8 Packed
> 0x101: 640 x 480 x 8 Packed
> 0x103: 800 x 600 x 8 Packed
> 0x105: 1024 x 768 x 8 Packed
> 0x110: 640 x 400 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
> 0x111: 640 x 480 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
> 0x112: 640 x 480 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
> 0x113: 800 x 600 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
> 0x114: 800 x 600 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
> 0x115: 800 x 600 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
> 0x116: 1024 x 768 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
> 0x117: 1024 x 768 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
> 0x118: 1024 x 768 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
> 0x10d: 320 x 200 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
> 0x10e: 320 x 200 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
> 0x10f: 320 x 200 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
> 0x120: 320 x 200 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
> 0x193: 320 x 240 x 8 Packed
> 0x194: 320 x 240 x 16 Direct, mask: 5/5/5/0 pos: 10/5/0/0
> 0x195: 320 x 240 x 16 Direct, mask: 5/6/5/0 pos: 11/5/0/0
> 0x196: 320 x 240 x 32 Direct, mask: 8/8/8/0 pos: 16/8/0/0
> ... I stopped copying modes here. There were similar lines for 512×384, 640×350, 640×400, and 720×400, in 8, 16, and 32 bits.

You could try GRUB_GFXMODE="640x480x16;640x480x32;640x480x8"
and maybe also different resolutions.
I.e. seperate them with ;
And run update-grub.
Hm or maybe just use one resolution at a time.

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

You mean in the GRUB console?

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

Trying GRUB_GFXMODE="640x480x16;640x480x32;640x480x8" update-grub made no difference. Perhaps I'm doing something wrong?

Revision history for this message
Felix Zielcke (fzielcke) wrote :

Am Samstag, den 07.11.2009, 18:03 +0000 schrieb Fibonacci:
> Trying GRUB_GFXMODE="640x480x16;640x480x32;640x480x8" update-grub made
> no difference. Perhaps I'm doing something wrong?
>

Args seems like a semicolon only works if you escape it, so please try
with a comma, i.e. `,'

--
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

Still nothing.

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

I've tried setting GRUB_GFXMODE to the exact size of the splash image, yet I don't see any changes.

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

Also, startupmanager doesn't help anything at all.

Revision history for this message
Fibonacci (fibonacci-prower) wrote :

I don't know if this has something to do with this bug or not, but when the white Ubuntu logo appears on screen (XSplash? USplash? I don't know), it doesn't look round.
However, after logging in, aspect ratios are OK, and the Ubuntu logo (e.g. in the GNOME menu) does look round.

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in grub2 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This issue has sat incomplete for more than 60 days now. I'm going to close it as invalid. Please feel free re-open if this is still an issue for you. Thank you.

Changed in grub2 (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.