Skip to content

Instantly share code, notes, and snippets.

@glumn
Last active October 27, 2018 09:12
Show Gist options
  • Select an option

  • Save glumn/97f1e60958ea84a1b53ac1c6dec51daa to your computer and use it in GitHub Desktop.

Select an option

Save glumn/97f1e60958ea84a1b53ac1c6dec51daa to your computer and use it in GitHub Desktop.
macbook8,2 igd boot linux
menuentry 'Debian GNU/Linux, with Linux 3.1.1' {
insmod gzio
insmod part_gpt
insmod ext2
set gfxpayload=keep
# Switch gmux to IGD
outb 0x728 1
outb 0x710 2
outb 0x740 2
# Power down ATI
outb 0x750 0
set root='(hd0,gpt5)'
echo 'Loading Linux 3.1.1...' linux /vmlinuz-3.1.1+i915+lvds+bl root=/dev/mapper/system-root ro \ i915.lvds_channels=2 i915.modeset=1 i915.lvds_use_ssc=0 i915.i915_enable_rc6=1 \ acpi_backlight=vendor elevator=noop
echo 'Loading initial ramdisk ...' initrd /initrd.img-3.1.1+i915+lvds+bl
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment