Black Border around Splash Image

Bug #567226 reported by Urda
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: grub2

After upgrading from 9.10 to 10.04 my splash image, which is the same resolution as my GRUB bootup resolution, now has a black border around it and has been shrank on startup. I have tried loading larger images that match higher resolutions, and I get the same effect. I grabbed a picture with my phone to help show the issue at hand, http://twitpic.com/1h1d4r . This image was a larger resolution at the time of the picture, but before 10.04 it would fill the entire screen. So even if the image is equal or greater than GRUB's resolution, it is being framed for some reason. This never occurred in my 9.10 install.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: grub-pc 1.98-1ubuntu5
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic x86_64
Architecture: amd64
Date: Tue Apr 20 08:53:23 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: grub2

Revision history for this message
Urda (urda) wrote :
Revision history for this message
Urda (urda) wrote :
Revision history for this message
a_user (a-user-sci) wrote :

same problem here. using the propritary nvidia drivers. as far as i read all that do not use the nouveau driver have this issue.

Revision history for this message
Urda (urda) wrote :

This is running on an X61 Tablet, with an Intel Chipset and Intel Video Hardware + Drivers. I am attaching the results of `lspci | grep VGA`

Revision history for this message
Urda (urda) wrote :

I am also uploading an updated picture of my start-up screen. I increased the brightness and contrast a bit to make the black border GRUB is adding when compared against the splash image and plastic frame.

Revision history for this message
Urda (urda) wrote :

/!\ This issue is still present after I did a clean install of the released 10.04 x64 /!\

Revision history for this message
Peter Belew (peterbe) wrote :

I believe this is a Firefox problem, and a problem with some other browsers using the same graphics libraries (see below).

I'm running on a Dell netbok with -

 Ubuntu version and kernel version
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
Linux mini 2.6.32-24-generic #42-Ubuntu SMP Fri Aug 20 14:24:04 UTC 2010 i686 GNU/Linux
model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
model name : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
cpu MHz : 1333.000
cpu MHz : 1600.000

This problem happens with inline images and background images.

 It does not happen with Epiphany 2.30.2.

It does not happen with Chromium 5.0.375.217

It does happen sometimes with Conkeror.

It does not happen with NetSurf.

It does happen with SeaMonkey 2.0.6.

Revision history for this message
Peter Belew (peterbe) wrote :

Sorry, I failed to see the bug report was against Grub2, not browser! I'll check for a more appropriate bug report!

Revision history for this message
Brian K. White (bkw777) wrote :

Happens to me too.
Oneiric, Sony Vaio P, 1600x768 image.

I can tell from the details of the image that it is NOT being scaled, it is being cropped.

It would be impossible to detect such a small amount of scaling by eye with that many pixels on that small of a screen, but there are detailed features near the edges of the image which I can just count them and remove any doubt.

I think grub2 gfxterm draws a border over the image but I can't find any setting to contro it.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Brian K. White (bkw777) wrote :

Looks like it might be caused by DEFAULT_BORDER_WIDTH in grub-core/term/gfxterm.c

http://bzr.savannah.gnu.org/lh/grub/branches/release_1_99/annotate/head:/grub-core/term/gfxterm.c

But I still don't see any way to change it other than editing that #define and recompiling.
Trying that now...

Revision history for this message
Brian K. White (bkw777) wrote :

It works.

wget ftp://ftp.gnu.org/gnu/grub/grub-1.99.tar.gz
tar xvzf grub-1.99.tar.gz
cd grub-1.99
vi grub-core/term/gfxterm.c

change this line:
  #define DEFAULT_BORDER_WIDTH 10
to this:
  #define DEFAULT_BORDER_WIDTH 0

./configure
make

sudo mv /boot/grub/gfxterm.mod /boot/grub/gfxterm_orig.mod
sudo cp gfxterm.mod /boot/grub/gfxterm.mod

reboot
enjoy no more black border in gfxterm

Revision history for this message
Brian K. White (bkw777) wrote :

gfxterm.mod from grub 1.99 compiled on Precise i386 per above directions.

I would rename the old gfxterm.mod to gfxterm_old.mod so that if it doesn't work on your machine for some reason, you can manually say
  rmmod gfxterm
  insmod gfxterm_old
in the grub recovery shell. You can also always just use a live usb thumb drive if all else fails of course.

Revision history for this message
Brian K. White (bkw777) wrote :

Correction (not harmful) to the build/install directions. After compile the new gfxterm.mod is found in the grub-core directory not in the grub-1.99 top level directory. So the cp command to install is:

sudo cp grub-core/gfxterm.mod /boot/grub/gfxterm.mod

Revision history for this message
Brian K. White (bkw777) wrote :

This admittedly minor annoyance still exists in quantal.
The fix is trivial.

Can we please get line 37 in grub2-1.99/grub-core/term/gfxterm.c

changed from
  #define DEFAULT_BORDER_WIDTH 10
to
  #define DEFAULT_BORDER_WIDTH 0

That's it.

Please?
It's been a long time already.

Brian K. White (bkw777)
tags: added: maverick natty oneiric quantal
tags: removed: amd64 apport-bug
Brian K. White (bkw777)
tags: added: precise
Revision history for this message
Joe Mooring (jmooring) wrote :

Bump. Would be nice to get this changed. Problem still exists in saucy.

Brian K. White (bkw777)
tags: added: raring saucy
Revision history for this message
Urda (urda) wrote :

Reupload image from dead link in bug.

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
Launchpad Janitor (janitor) wrote :

[Expired for grub2 (Ubuntu) because there has been no activity for 60 days.]

Changed in grub2 (Ubuntu):
status: Incomplete → Expired
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.