Professional Documents
Culture Documents
https://help.ubuntu.com/community/MacBookPro5-5/Precise
Search
MacBookPro5-5/Precise
The Macbook Pro 5,5 is highly compatible with Ubuntu 12.04 Precise Pangolin. You'll need to apply some of the adjustments listed below. For further discusions, see: Ubuntu Apple Users forum
Contents
1. MacBookPro 5,5 and Ubuntu 12.04 LTS 2. Overview 3. Basic Installation Instructions 4. Package Support for Intel Macs 5. The system memory issue and 32/64bits kernel version 6. Sensors (temps & fans) This page aims to describe the steps needed, to fully 7. Suspend & Hibernate enable all features of the 13.3 (mbp 5,5) and 15 inch 8. Reboot 9. Video & Effects (Compiz) (mbp 5,4) 5-th Generation MacBookPro (release date: 10. LCD Brightness Control June 2009) when using Ubuntu 12.04 (Precise 11. Fan Control Pangolin). 12. HFS+ 13. CD/DVD Writing You can find out, what model you have by 14. Bluetooth typing at the terminal: 15. Keyboard Functions 1. Keyboard backlight without sudo dmidecode -s system-product-name pommed 16. Touchpad (bcm5974) If you have a different model, please go 17. Wireless (AirPort) here and find the right wiki. 18. iSight 19. Sound 20. Microphone 21. External Monitor 22. Apple Remote Control Anything not mentioned here probably already works 23. Firewire
Overview
out of the box. If not, please refer to the Ubuntu Apple Users forum. Feature
Support status
1 of 8
10/22/2012 07:31 PM
https://help.ubuntu.com/community/MacBookPro5-5/Precise
(works out-of-the-box)
The mactel PPA modules needed are pommed (daemon to control them all). To install:
sudo apt-get install pommed
You don't need nvidia-bl-dkms (driver for the LCD panel backlight) package anymore, see below in LCD Brightness Control section. Note from another author: Pommed is now maintained in the ubuntu repositories. You don't need to add the mactel PPA anymore. Besides that, brightness- and soundcontrol should work out of the box without pommed.
There are situations where this will not install the necessary modules along with the kernel, and
2 of 8
10/22/2012 07:31 PM
https://help.ubuntu.com/community/MacBookPro5-5/Precise
lead to your system starting unable to start x11 or access devices such as wireless or sound. If this happens, boot to the previous kernel, and uninstall the PAE kernel. Note that PAE adds (extremely minor) overhead and that even with a PAE kernel, each individual process (or XEN virtual machine) will be limited to 4GB of memory. If you choose to install 64 bits version your Ubuntu will handle more than 3,1 Gb out of the box.
Reboot
Works out of the box. But if not, edit your /etc/default/grub and change the line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=pci"
Then perform a
sudo update-grub
3 of 8
10/22/2012 07:31 PM
https://help.ubuntu.com/community/MacBookPro5-5/Precise
works (taken from http://www.voria.org/forum/viewtopic.php?f=3&t=1091): If backlight control does not work for you, follow these instructions: Edit the file '/etc/X11/xorg.conf' and add this line into the Device section: Option "RegistryDwords" "EnableBrightnessControl=1" Reboot and check if backlight control works. If so, you're done. If not, edit the file '/etc/default/grub' and change the line: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_backlight=vendor" Update grub with this command: sudo update-grub Reboot and backlight control should work. If it still doesn't work, try installing the nvidia-bl-dkms package from mactel-support for Natty (from https://launchpad.net/~mactel-support/+archive/ppa), this was the only way for me to get the backlight control working on Precise. Results may vary as some people claim this driver does not work on Precise.
Fan Control
Don't tested yet.
HFS+
Read Only: Confirmed working out of the box. Read/Write: It is necessary to disable journal: 1. Login macos and open a terminal. 2. Identify the partition. 3. Run diskutil to disable journaling.
$ mount /dev/disk0s2 on / [...] $ sudo diskutil disableJournal force /dev/disk1s2 Journaling has been disabled for volume [...] on disk0s2
CD/DVD Writing
Works out of the box.
Bluetooth
Works out of the box.
4 of 8
10/22/2012 07:31 PM
https://help.ubuntu.com/community/MacBookPro5-5/Precise
Keyboard Functions
"Needs further documentation" Without pommed and with the nouveau driver installed (default) following functions work as expected: Brightnesscontrol (F1 and F2). Keyboard backlight (F5 and F6). Mediacontrol (F7 to F9). F10, F11, F12 correctly mute and tune audio volume. Eject key works. Without pommed and with the nvidia driver installed: Everything from above except the brightnesscontrol works. With pommed installed: F1 and F2 can be used to adjust display brightness F3 and F4 can be correctly associated with any command in the system preferences. F5 and F6 can be used to adjust keyboard backlight brightness F7, F8 and F9 are correctly associated with audio player's 'previous', 'play/pause', 'forward' commands. F10, F11, F12 correctly mute and tune audio volume (after having correctly configured audio, see below) Eject key works To swap the fn key functionality (e.g. use fn+F1 to dim the LCD etc..), edit /etc/pommed.conf and set the variable fnmode to 2
gksudo gedit /etc/pommed.conf
The file reporting the ambient light sensor is /sys/devices/platform/applesmc.768/light (the number 768 in the path might be different on your machine). To read the value do
cat /sys/devices/platform/applesmc.768/light
5 of 8
10/22/2012 07:31 PM
https://help.ubuntu.com/community/MacBookPro5-5/Precise
With the following method you can control the backlight through a GUI. Create a new file in /usr/local/bin:
gksu gedit /usr/local/bin/keyboard-backlight
# Read current value BACKLIGHT=$(cat /sys/class/leds/smc::kbd_backlight/brightness) BACKLIGHT=$(zenity \ --title "Keyboard backlight" \ --scale \ --text="Adjust the keyboard backlight" \ --value="$BACKLIGHT" \ --min-value="0" \ --max-value="255") echo $BACKLIGHT | tee -a /sys/class/leds/smc::kbd_backlight/brightness exit 0
You may want to create a launcher on the panel. In this case enter
gksu /usr/local/bin/keyboard-backlight
as the command line. Very smartly, the dialog will recognise the word "keyboard" and suggest a good launcher icon automatically. You could also use the ambient light value to extend the script to make the backlight depend on the ambient light.
Touchpad (bcm5974)
The touchpad works out of the box. Uncheck the "Enable mouse clicks with touchpad" checkbox under the Touchpad tab, and enable two-finger scrolling from the preference->mouse->touchpad applet. Then the touchpad will work just like in OSX. Clicking and holding with one finger and dragging with the other work like a dream.
6 of 8
10/22/2012 07:31 PM
https://help.ubuntu.com/community/MacBookPro5-5/Precise
Wireless (AirPort)
The Broadcom driver was not installed by default, you either need to connect your MacBookPro to the internet and allow the installer to download updates while installing. Or use System->Administration->Additional Drivers to install the STA drivers.
iSight
Sound
Works out of the box, with good sound.
Microphone
Works out of the box.
External Monitor
Works out of the box.
gnome-lirc-properties will give you an entry "Infrared Remote Control" in menu System > Administration. After launching this it will guide you through the configuration. Tested with remote model No A1294 (aluminum Apple remote): gnome-lirc-properties detects the signals (with some models the Enter button is detected as an additional Play button). Although this seems to work, the remote does not actually control any applications, like the Totem Movie Player more testing is required. Could be that the key-binding are incorrect.
Firewire
Works out of the box. CategoryMac
7 of 8 10/22/2012 07:31 PM
https://help.ubuntu.com/community/MacBookPro5-5/Precise
Please update this page, if you have figured out anything, that is not mentioned here!
The MactelSupportTeam is about to restructure and reorganize the documentation for Intel-based Macs. If you are interested in helping, please visit our team page for information. For all Mactel wikis, there is a starting place here. There is also a thread about planning the Mactel docummentation going on. MacBookPro5-5/Precise (last edited 2012-08-26 15:36:36 by lp-0o6v @ 68-55-142-46.pool.kielnet.net[46.142.55.68]:lp-0o6v)
8 of 8
10/22/2012 07:31 PM