grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 10_linux: Default gfxpayload=keep only when booting using efi
@ 2014-10-17  4:27 Mike Gilbert
  0 siblings, 0 replies; only message in thread
From: Mike Gilbert @ 2014-10-17  4:27 UTC (permalink / raw)
  To: grub-devel

vesafb seems to be unreliable when using BIOS compat mode.
---
On Gentoo Linux, we are getting frequent reports of a "black screen" after
the Linux kernel has been loaded. Hopefully this will resolve it.

 ChangeLog               | 5 +++++
 util/grub.d/10_linux.in | 4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 190d19d..dff8342 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-17  Mike Gilbert  <floppym@gentoo.org>
+
+	* util/grub.d/10_linux.in: Default gfxpayload=keep only when booting
+	using efi. vesafb seems to be unreliable when using BIOS compat mode.
+
 2014-10-14  Andrei Borzenkov  <arvidjaar@gmail.com>
 
 	* grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index d2e2a8f..a54b888 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -104,7 +104,9 @@ linux_entry ()
       echo "	load_video" | sed "s/^/$submenu_indentation/"
       if grep -qx "CONFIG_FB_EFI=y" "${config}" 2> /dev/null \
 	  && grep -qx "CONFIG_VT_HW_CONSOLE_BINDING=y" "${config}" 2> /dev/null; then
-	  echo "	set gfxpayload=keep" | sed "s/^/$submenu_indentation/"
+	  echo '	if [ "x$grub_platform" = xefi ]; then' | sed "s/^/$submenu_indentation/"
+	  echo "		set gfxpayload=keep" | sed "s/^/$submenu_indentation/"
+	  echo '	fi' | sed "s/^/$submenu_indentation/"
       fi
   else
       if [ "x$GRUB_GFXPAYLOAD_LINUX" != xtext ]; then
-- 
2.1.2



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-17  4:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17  4:27 [PATCH] 10_linux: Default gfxpayload=keep only when booting using efi Mike Gilbert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).