Apple Macbook Pro Retina 15-inch (early 2013)

These instructions cover the Macbook Pro with Retina Display, 15" model. This model has both an Intel and an NVIDIA graphics card. It has the model code 10,1.

You must use rEFInd with this setup.

lspci and lsusb
The output from the command:

The output from the command:

Driver settings
First, while using Mac OSX, download GfxCardStatus version 2.2.1 (not 2.1 or 2.3+, it need to be 2.2.1) and select integrated graphics. This step is very important as it will allow you disable the NVIDIA card, allowing the Intel one to work. This is the only way to get the Intel card to work until vga_switcheroo fixes this.

You have can either use the open source graphic drivers (Intel 915 or Nouveau) OR the NVIDIA proprietary graphic drivers.

Intel and Nouveau graphic drivers
If you are going open source, it is strongly advised that you configure both drivers, even if you only plan on using one. This is because installing both into the kernel allows you to use vga_switcheroo. This will, at the very least, allow you to turn the one you are not using off to save power.

If you had previously used the proprietary NVIDIA driver you will need to uninstall it complete in order for everything to work as intended.

Follow the setup for both Intel and Nouveau on the wiki, compiling both directly into the kernel. Also, set up vga_switcheroo.

You can use Hprofile to swap between Intel and Nouveau configurations seamlessly. Note however that it does not appear possible (at the moment) to switch from NVIDIA to Intel without rebooting into OSX using the latest 3.14 kernel.

TO DO: add hprofile settings.

Intel graphics card use cases
Use the Intel graphics card when you are going for long durations without AC power. You'll have to boot into OSX and use gfxCardStatus to force Intel graphics, then use vga_switcheroo to power off the NVIDIA card.

Unfortunately, the Intel card does not support multiple displays. If you don't need multiple displays (you don't have a docking station) the Intel card is recommended as it provides better battery life.

Proprietary NVIDIA graphic drivers
Setup here is a lot simpler, but the driver support is really sketchy. If you use this, you can't control the built in display's backlight; stopping the x server will result in a black screen requiring a reboot. You will also not be able to suspend/resume your system until after the reboot.

Use kernel 3.9 with nvidia-drivers-319.17. Later kernel versions or graphics card versions don't seem to work. You must add "nomodeset" to your kernel command line.

Basically, just follow the normal instructions for setting up NVIDIA graphics NVIDIA/nvidia-drivers, and make sure all the open source drivers are disabled. The commands and  can be used to generate the.

NVIDIA graphics card use cases
Use the NVIDIA card if you need to use multiple displays. The ZaphodHeads feature can be used, or you can simply use.