The attached Ansible playbook helps setting up Fedora Linux on a 2009 Macbook Pro with dual Nvidia graphics.
Only applies when for the specific Macbook Pro with dual Nvidia graphics
lspci | grep VGA
02:00.0 VGA compatible controller: NVIDIA Corporation G96CM [GeForce 9600M GT] (rev a1)
03:00.0 VGA compatible controller: NVIDIA Corporation C79 [GeForce 9400M] (rev b1)
Problems solved:
- Monitor shows wrong virtual display
- High energy consumption
Solutions applied:
- Disable GeForce 9600M GT permanently at boot time
- Replace energy management with TLP
The Ansible playbook sets up a systemd service which turns off the GeForce 9600M GT during boot. TLP is being installed and power-profiles-daemon is being removed
- Connect the device with an ethernet cable
- Install Fedora 35 (37 does not install on old Macs, 36 might - I am not sure)
- After installation you see only a blank screen. Reboot, temporarily (only for this boot) add the following parameters to grub:
nouveau.modeset=0 rd.driver.blacklist=nouveau video=vesa:off
- finish the installation
- Open a terminal
- Clone this gist into Downloads folder
git clone <this gist>
cd <this gist>
sudo dnf -y install ansible
sudo ansible-playbook macbookpro53-setup.yml
- Reboot without the grub paramters from step 3
- Enjoy, update Fedora 35 and then upgrade to the latest Fedora Linux