MacBook Pro 7,1 and Ubuntu 11.04 (Natty Narwhal)

This page aims to describe the steps needed, to fully enable all features of the MacBookPro 7,1 (release date: mid 2010) when using Ubuntu 11.04, codename 'Natty Narwhal'.



In Ubuntu you can find out, what model you have by typing at the terminal:

sudo dmidecode -s system-product-name

If you have a different model, please go here and find the right wiki.

Overview

Anything not mentioned here probably already works out of the box. If not, please refer to the Ubuntu Apple Users forum.

Feature Support

status Sound Suspend & Hibernate Wireless (Air Port)

works out-of-the-box

works, with remarks

needs manual install

won't work

not yet documented



Basic Installation Instructions

Common things about installing and maintaining Ubuntu on Intel-based Macs: Intel CPU-based Macintosh Generic Installation Instructions

Most 7,1 models come with 4GB of RAM, which the default kernel on the 32-bit edition of Ubuntu cannot fully utilize. Both the CD and DVD installers of Ubuntu will automatically download and install the PAE enabled kernel if they detect more than 3 Gb of available memory, however the PAE kernel packages are not present on the CD. If you do not have an Ethernet cable connected when installing, Ubuntu will recognize less than 3GB of RAM. However, you can use the following command to install the PAE kernel afterwards:

sudo apt-get install linux-generic-pae linux-headers-generic-pae

Package Support for Intel Macs

You need some modules from the MactelSupportTeam/PPA:

sudo add-apt-repository ppa:mactel-support && sudo apt-get update

The mactel PPA modules needed on Ubuntu on this MBP nvidia-bl-dkms (driver for the LCD panel backlight) and pommed (daemon to control them all).

Reboot

Run

gksudo gedit /etc/default/grub

and change the line

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=pci"

Now, on the terminal run

sudo update-grub

Finally, ask the computer to shutdown, then complete the shutdown by pressing the power button during five seconds when the shutdown process is stuck, wait few more seconds until the hard drive stop spinning and power it on again. Now it should work normally.

Suspend & Hibernate

Suspend: works

Hibernate: error on ata2, but works.







Wireless (AirPort)

Install via System Settings > Additional Drivers (You will need an active internet connection to get the drivers).

After restart your laptop and Airport should be working.







Screen

Set brightness using F1 and F2

Installing nvidia-bl-dkms enables the control of the screen back-light with the keyboard keys F1 and F2. With current latest nvidia drivers (270.41.06-0ubuntu1) you need you need to edit the xorg.conf file:

sudo gedit /etc/X11/xorg.conf

Find the Device Section for the Nvidia driver and add this line to the end of the section:

Option "RegistryDwords" "EnableBrightnessControl=1"

The block should now look like this:

Section "Device" Identifier "Default Device" Driver "nvidia" Option "NoLogo" "True" Option "RegistryDwords" "EnableBrightnessControl=1" EndSection

Reboot and enjoy!

External Monitor

Nouveau drivers (which ship with Ubuntu by default) do not support external monitor Bug #681555. For external monitor to work, the nVidia binary driver needs to be installed (System > Administration > Additional Drivers).

With the latest nVidia drivers installed, the Mini Display Port and adapters work out of the box.

Works out of the box.

Touchpad (appletouch)

Works out of the box.

Bluetooth

Works out of the box.

If you would save battery life by disabling blue-tooth on start-up edit /etc/rc.local

sudo gedit /etc/rc.local

and add

rfkill block bluetooth

before the line

exit 0

Then reboot. You can still enable blue-tooth from the applet.





Webcam

The Webcam, which is called iSight, works out of the box. You can test it using cheese or any other of your choice.







Sound

Works out of the box, but a bit low volume. Use:

alsamixer

And set "front speaker" to 100%, now volume should be fine.

Microphone

The microphone works out of the box, but is a bit low. Go to System-->Preferences-->Sound-->Input to move the slider to 100%. You can snap your finger or speak in front of your laptop to see the capture bar moving and adjust it if needed.

Function Keys

CategoryMac