Skip to content

Instantly share code, notes, and snippets.

@greyltc
Last active August 14, 2016 12:33
Show Gist options
  • Save greyltc/822ccc9c9078b18c54dd8c5d5b4c222b to your computer and use it in GitHub Desktop.
Save greyltc/822ccc9c9078b18c54dd8c5d5b4c222b to your computer and use it in GitHub Desktop.
graphics switching notes for macbook pro 5.1

Requirements:

  1. zcat /proc/config.gz | grep SWITCHEROO must return CONFIG_VGA_SWITCHEROO=y
  2. Kernel modesetting must be on from boot
    To do this, add nouveau to the MODULES array in /etc/mkinitcpio.conf:
    MODULES="... nouveau ..."
    then regenerate the initial ramdisk:
    mkinitcpio -p linux

Now,
to see the state of the sswitch:
cat /sys/kernel/debug/vgaswitcheroo/switch

to switch to the 9600M GT GPU:
echo DIS > /sys/kernel/debug/vgaswitcheroo/switch

to switch to the 9400M GPU:
echo IGD > /sys/kernel/debug/vgaswitcheroo/switch

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