Penryn

Revision 12 as of 2008-06-25 06:27:54

Clear message

Ubuntu on a Penryn MacBookPro

If you are searching for installation instructions or information on MacBookPro1,1 or MacBookPro2,1, check the [http://wiki.ubuntu.com/MacBookPro main MacBookPro wiki article].

For other hardware items not mentioned here, or if you have a MacBookPro3,1, check the [http://wiki.ubuntu.com/MacBookPro/SantaRosa Santa Rosa MacBookPro wiki article].

Preface

This Wiki article has been written to help those with 4th generation "Penryn" MacBookPro laptops (originally released February 2008.) There are a number of significant differences between the hardware configurations of these and the older versions which need to be accounted for when setting up Ubuntu.

Hardware Changes

There are 3 main differences between the Penryn MacBookPro and its older siblings.

  • The Laptop has an updated version of the Broadcom Wireless Card. To get it working, a Windows XP driver is required from the MacbookPro installation disk, as well as ndiswrapper to get the driver working under Linux. The original HowTo detailing the installation process was written by amonsul and is available in [http://ubuntuforums.org/showthread.php?t=735846 this Ubuntu Forum thread].

  • The Trackpad on the newer laptops now offers multi-touch support. As yet Ubuntu does not support the new Trackpads very well. However, there is a project underway, called touchd, to implement multi-touch functionality. More information is available from the [http://touchd.sourceforge.net/ touchd Sourceforge page]. The is also a new kernel driver, bcm5974, to use instead of appletouch. More in [http://ubuntuforums.org/showthread.php?t=840040 this thread].

  • Finally, the Fn key does not work upon installation of Hardy. This has yet to be fixed in the Ubuntu kernel but a solid workaround has been developed by _alex_, as outlined in [http://ubuntuforums.org/showpost.php?p=4984452&postcount=18 this Ubuntu Forums thread].

Installing the Broadcom Wireless Driver

1. Install ndiswrapper with Synaptic Package Manager

2. Find the file, BroadcomXPInstaller.exe, on the Mac installation CD, and copy it to a folder on your computer.

3. Unzip the Broadcom drivers

unrar e BroadcomXPInstaller.exe

4. Install the wireless driver:

sudo ndiswrapper -i bcmwl5.inf
sudo ndiswrapper -l
sudo ndiswrapper -m
sudo modprobe ndiswrapper

5. Open Boot-time modules file

sudo gedit /etc/modules

6. Add ndiswrapper to the bottom of the file so it loads on boot

If you are running Ubuntu version 8.04 (Hardy Heron), please also perform the following 4 steps.

7. Create file /etc/init.d/ndiswrapper

sudo gedit /etc/init.d/ndiswrapper

8. Add the following text to the file

### BEGIN INIT INFO
# Provides: ndiswrapper
# Required-Start:
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: enable to load ndiswrapper
# Description: enable to load ndiswrapper
### END INIT INFO
rmmod ohci_hcd
rmmod ssb
rmmod ndiswrapper
modprobe ndiswrapper
modprobe ssb
modprobe ohci_hcd

9. Set file access permissions

sudo chmod 755 /etc/init.d/ndiswrapper

10. Create a symbolic link from /etc/init.d/ndiswrapper to /etc/rc2.d/S99ndiswrapper

sudo ln -s /etc/init.d/ndiswrapper /etc/rc2.d/S99ndiswrapper

Reboot your computer and your wireless should now be working.

Apple Hotkeys Fix (Pommed)

The following steps are for enabling the Apple hotkeys (volume control, brightness, and FN keys)

As of 21-June-2008, the Ubuntu Repositories have not been updated to contain the latest version of pommed - the hotkeys handler. For the correct installation of pommed:

1. Open Synaptic Package Manager.

2. Go to "Settings", and then "Repositories".

3. Click on the "Third-party software" tab, then click "add".

4. Add:

deb http://ftp.de.debian.org/debian lenny main

5. Reload update information.

6. Search for pommed in Synaptic, and select the package for installation.

7. Install pommed with the "Apply" button.

8. Go back to Settings > Repositories

9. Uncheck the Debian repository.

10. Reload update information.

WARNING: DO NOT UPDATE ANY OF YOUR OTHER PACKAGES UNTIL YOU HAVE DISABLED THE DEBIAN REPOSITORY AGAIN! Serious system malfunction may result. Wait until disabling the Debian repository, and reload the update list again.

Enabling Sound/Microphone

1. Open the modprobe.d options file for editing

sudo gedit /etc/modprobe.d/options

2. Add the following line to the bottom of the file

options snd_hda_intel model=mbp3

3. Reboot your computer

4. Recommended: leave microphone muted in the volume control to prevent feedback when closing the lid. Don't forget to un-mute the speakers/microphone before testing.