[Not recommended to install currently, but you're welcome to test and report your findings/problems to the Ubuntu Apple Users forum]
MacBookPro 6,2 and Ubuntu 10.04 (Lucid Lynx)
This page aims to describe the steps needed, to fully enable all/most features of the 15.3 (mbp 6,2) and probably other 6-th Generation MacBookPro (release date: April 2010) when using Ubuntu 10.04, Lucid Lynx.
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
(works out-of-the-box)
(works, with remarks)
(needs manual install)
(won't currently work (completely))
(not yet documented)
Basic Installation Instructions
Common things about installing and maintaining Ubuntu on Intel-based Macs: Intel CPU-based Macintosh Generic Installation Instructions
Package Support for Intel Macs
You need some modules from the MactelSupportTeam/PPA :
sudo add-apt-repository ppa:mactel-support && apt-get update
The mactel PPA modules needed on ubuntu on mac are applesmc-dkms.
sudo apt-get install applesmc-dkms
Sensors (temps & fans)
Temperature, fanspeed, environmental light and keyboard backlight can be controlled over the sysfs exported interface at /sys/devices/platform/applesmc.768/.
Suspend & Hibernate
Both, Suspend and Hibernate is not very well tested up to now. Suspend works at least most of time with the Nvidia 195 series drivers (no screen corruption). Sometimes the laptop won't enter suspend and remains active.
Reboot
Rebooting and Shutdown seems to work fine.
Video & Effects (Compiz)
You should use the restricted driver: The open source driver nouveau seems to currently causes random system freezes. Also with the powermizer functionality of the Nvidia driver you can get the laptop pretty cool at about 50 degrees Celsius instead of 65-70 degrees. Battery life is also better at about 4 hours currently (instead of 2:30).
Install from: System -> Administration -> Hardware Drivers. Select the NVidia graphics driver that says recommended and Activate. Reboot to apply the change. I installed version 195 which is available as recommended, it works great.
Edit your /etc/X11/xorg.conf to permanently operate the Nvidia graphics adapter in the lowest possible setting:
gksu gedit /etc/X11/xorg.conf
Add the following lines to the Device section of the nvidia device:
Option "Coolbits" "1" Option "RegistryDwords" "PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefaultAC=0x3"
LCD Brightness Control
Currently brightness control is unavailable but looked into it. On a cold start, the brightness is around 50% - after a suspend/resume cycle it's at 100% - so there is at least some level of control.
HFS+ (only read)
Confirmed working out of the box.
CD/DVD Writing
Both writing and reading work fine.
Bluetooth
MacBookPro6,2 notebooks use an Apple branded Broadcom [http://www.broadcom.com/products/Bluetooth/Bluetooth-RF-Silicon-and-Software-Solutions/BCM2046|BCM2046] solution that seem to be fully suppored by the generic bluetooth USB (btusb) driver. Currently (Mai 2010) the product and device ids are not yet added to the generic USB driver and thus a workaround similar to [http://ubuntuforums.org/showthread.php?t=1469437|this] forum post is required.
Confirmed working:
- Detection of devices
- PANU (e.g. use a phone as Network Access Point)
Not yet confirmed working:
- Sending files to devices (OBEX push)
- Bluetooth Mouse
- Bluetooth Keyboard
Keyboard Functions
What works:
- F3 and F4 can be correctly associated with any command in the system preferences.
- 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)
Not yet working:
- F1 and F2 are correctly detected as monitor backlight dimming control keys, but backligh-control is not yet accessible.
- F5 and F6 are correctly detected as keyboard backlight dimming control keys, but control of the keyboard backlight itself requires an additional daemon (e.g. pommed) that doesn't work yet.
Keyboard backlight without pommed
Consider this if you want a way to control the backlight from the command line or with the mouse.
You can choose a value from 0 to 255 to tune the keyboard backlight by writing to /sys/class/leds/smc::kbd_backlight/brightness. For example this command switches the light completely on:
echo 255 | sudo tee -a /sys/class/leds/smc::kbd_backlight/brightness
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
which should give different values under different light conditions.
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
Copy this script into the file and save it:
#!/bin/bash # A little script to set the keyboard backlight # Note: clicking "Cancel" in the dialog sets the backlight to 0. # Note: needs to be called as root (with gksu or sudo) because # of writing to /sys. Use "sudo visudo" to edit the /etc/sudoers file # if you want to allow non-admin users to change this value, possibly # without having to enter a password. Read "man sudoers" and, e.g., use # ALL ALL = NOPASSWD:/usr/local/bin/keyboard-backlight # to allow all users to execute this command on all hosts without # a password. # 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
Use this command to make the file executable:
sudo chmod +x /usr/local/bin/keyboard-backlight
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. You can enable two-finger scrolling from the preference->mouse->touchpad applet. It also may help you to uncheck the "Enable mouse clicks with touchpad" checkbox under the Touchpad tab. Furthermore tweaking the drag and drop time to be less, helped significantly. The click-and-drag also works.
Wireless (AirPort)
The Broadcom driver was not installed by default on Lucid. You'll need the STA one, goto "System->Administration->Hardware Drivers" and enable it. If you prefer the command line, execute on the Terminal:
sudo apt-get install bcmwl-kernel-source
Then reboot the system and you're OK; at least on non WPA/WPA2 networks. There it seems to be currently unuseable due to authentication problems and constantly reoccurring re- and disconnects.
iSight
Confirmed working out of the box. Tested using cheese (sudo apt-get install cheese). Obs: It's necessary to use isight-firmware-tools. In case you don't wan to do this, you need boot OSX first to load the isight firmware, and reboot into Ubuntu. This will trigger OSX to load the firmware which should last until you poweroff the machine.
Sound
Sound works partially: Front speakers stay currently muted (may depend on how you left them in OSX). In case microphone or headphones are not working out of the box, follow this hint: From the terminal, type:
gksudo gedit /etc/modprobe.d/alsa-base.conf
Add the following line to the end of the file. Save the file. Reboot.
options snd-hda-intel model=mbp55
It is possible to unmute the front speakers by running alsamixer from the Terminal, or or using gnome-alsamixer:
sudo apt-get install gnome-alsamixer
Unfortunately the front speakers stay muted.
To enable the optical output, check the IEC958 option, and you'll see a red light coming from your headphone jack.
Microphone
Also working, see above.
External Monitor
You may experience some trouble with the external VGA and the new drivers: if the detected resolution of externally connected monitors doesn't go beyond 640x480, you will need to inactivate EDID. Add:
Option "NoEDID" "True"
to /etc/X11/xorg.conf
Apple Remote Control
Not yet tested for the MacBookPro6,2.
Text from Jaunty, MacBookPro5,5: It Works with Remarks. Volume control works. Forward and back works (even on Mozilla Firefox) Menu has no action Pause/Play not tested.
Install gnome-lirc-properties:
sudo apt-get install gnome-lirc-properties
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. Though my remote is model No A1294, gnome-lirc-properties detects its signals (however, he Enter button is detected as an additional Play button). Although this seems to work, on my mbp 5,4 the remote does not actually control any applications, like the Totem Movie Player - more testing is required.
Firewire
Not yet tested.
|