SantaRosa
Ubuntu on MacBookPro Sata Rosa
Preface
BRWith the release of the third revision to the MacBook Pro line, several hardware incompatibilities were introduced with Ubuntu. BRThe primary hardware changes from previous hardware revisions include:
In order to document these incompatibilities and the workarounds a thread was created: http://ubuntuforums.org/showthread.php?t=474144 BRThis Wiki page is based of this thread and the contributions made buy members in the forum. BRBRnote. If you are new to installing Ubuntu on you Intel Mac you may like to familiarise yourself with the installation process by visiting the generic Wiki page for the Macbook Pro or Macbook help page: BRhttps://wiki.ubuntu.com/MacBookPro BRhttps://help.ubuntu.com/community/MacBook BRBRIf you are dual booting this page presupposes that you will
install the EFI boot menu GUI: rEFIt (http://refit.sf.net)
- create a new partition to house your Ubuntu installation on you internal Hard Drive
Installation:
BRTo install ubuntu on your Macbook Pro Santa Rosa:
Text Installation
- Download the Alternate Install CD (32 or 64bit)
- Burn the install CD under OSX/Windows/linux
Download and install Bootcamp or rEFIt (http://refit.sf.net)
- Boot from the Ubuntu CD by holding the 'c' key during boot
- Follow the onscreen instructions
- install Ubuntu
GUI Installation
- Download the Live Install CD
- Burn the install CD under OSX/Windows/linux
Download and install bootcamp or rEFI (http://refit.sf.net)
- Boot from the Ubuntu CD by holding the 'c' key during boot
- Choose "Safe graphics mode" and press F6 to edit the boot parameters
- Remove "splash", "quiet" and "--" then add "all_generic_ide"
- Boot into the Live environment and install Ubuntu from Ubiquity
Getting Graphics to Work
BRYou will find after installation that you computer will not correctly boot. This is due primarily to the new unsupported graphics.
Change Graphics Drivers
- Reboot you Mac and choose the Linux icons from the rEFIt menu
- Press Esc when asked
BRA black screen will presented with text similar to: {{{Ubuntu kernal 2.6.20-15-generic Ubuntu kernal 2.6.20-15-generic (recovery mode) Ubuntu memtest etc...}}}
- Select the recovery mode option
- Edit the /etc/X11/xorg.conf file
nano /etc/X11/xorg.conf
- Search for "nv" and replace with "vesa"
- Exit nano and start an X session
/etc/init.d/gdm start
Installing the nVidia Drivers
BRIf you want to have 3D hardware acceleration (e.g. for a composite desktop like Compiz-Fusion/Beryl), you will need to install the closed source nVidia drivers. The drivers in the Ubuntu repositories (nvidia-glx or nvidia-new) do not support the MacBookPro SR. BRYou will need to install the latest drivers available from nVidia and patch it prior to installation.
Download the nVidia driver from http://us.download.nvidia.com/XFree86/Linux-x86/100.14.11/NVIDIA-Linux-x86-100.14.11-pkg1.run
Download the patch nvmacbook.diff from https://cbg.dyndns.org/store/config/nv_macbook.diff
- Patch the driver by executing the following:
{{{sh NVIDIA-Linux-x86-100.14.11-pkg1.run -x cd NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/ patch -p0 < ../../../nv_macbook.diff cd ../..}}}
- Stop your X session to install the driver
/etc/init.d/gdm stop
- If you haven't already, install build-essential package so you can build the driver
sudo apt-get install build-essential
- Run the nVidia install script
sudo ./nvidia-installer -aN
- Follow the onscreen instructions to install the driver.
BRGeneric instructions can be found here (thanks #pepe): https://cbg.dyndns.org/wiki/ReadingCorner/LinuxOnMacbookPro#graphics
Install Wireless
- Prepare to build the drivers
sudo apt-get install build-essential
- Download the madwifi drivers
{{{cd /usr/src/modules/ sudo svn checkout http://svn.madwifi.org/trunk madwifi}}} BR(the current trunk may not work, anyone remember what revision works?)
- Build and install the madifi drivers
{{{cd madwifi sudo make sudo make install sudo modprobe ath_pci}}}
Controlling Backlight and Keyboard Light
The system used to control backlight on Mac laptops is a proprietary Apple implementation which has been implemented under linux by pommed. To install pommed:
Download the pommed source which contains a patch for the MacBookPro SR
svn co svn://svn.debian.org/pommed
- Install the dependancies
sudo apt-get build-dep pommed
- Build pommed
{{{cd pommed sudo make}}} BRFollow instruction in INSTALL
gedit INSTALL
Getting Sound
- Install alsa dependancies
sudo apt-get install automake autotools autoconf note. please provide other dependancies
Move into your modules source directory and download the latest alsa source which includes a patch for the MacBook Pro SR
{{{cd /usr/src/modules/ rsync -avz --delete rsync://alsa.alsa-project.org/hg/alsa-driver alsa rsync -avz --delete rsync://alsa.alsa-project.org/hg/alsa-kernel alsa}}}
BRBuild and install the driver
{{{cd ../alsa-driver ./hgcompile make make install /etc/init.d/alsasound stop}}}
- [[BR]Verify all snd modules are unloaded
lsmod
- Then load the driver module
modprobe snd-hda-intel