Skip to content

Instantly share code, notes, and snippets.

@number5
Created June 19, 2013 00:05
Show Gist options
  • Save number5/5810638 to your computer and use it in GitHub Desktop.
Save number5/5810638 to your computer and use it in GitHub Desktop.
/etc/default/grub for Ubuntu 12.04 with 3.8.x raring-backport kernel and NVidia driver 319 (fixing the black screen after boot) UEFI with GPT on ASUS G75VW
LANG=C
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset acpi_osi=Linux nosplash video=vesa:off resume"
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
GRUB_TERMINAL=gfxterm
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=1920x1080,auto
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_VIDEO_BACKEND="efi_gop"
@number5
Copy link
Author

number5 commented Jun 19, 2013

The kernel line in grub.cfg will be looking like this after update-grub

linux   /boot/vmlinuz-3.8.0-25-generic root=UUID=a29d57ee-5b5b-4b22-b923-bd583c861590 ro   crashkernel=384M-2G:64M,2G-:128M nomodeset acpi_osi=Linux nosplash video=vesa:off resume

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment