||<>|| = MacBook 5,1 and Ubuntu 10.04 (Lucid) = {{attachment:MacBooksmall.png}}<
><
> This page aims to describe the steps needed, to fully enable all features of the '''1st Generation MacBook Unibody''' (release date: late 2008) when using '''Ubuntu 10.04, Lucid'''.<
> <
> {{attachment:IconsPage/terminal.png}} 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 [[https://wiki.ubuntu.com/MactelSupportTeam/CommunityHelpPages|here]] and find the right wiki. == Overview == Anything not mentioned here probably already works out of the box. If not, please refer to the [[http://ubuntuforums.org/forumdisplay.php?f=328|Ubuntu Apple Users forum]]. ||Feature|| Support status|| || Sound ||{{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} || || Suspend & Hibernate || {{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} || || Desktop Effects (Compiz) ||{{attachment:IconsPage/warning.png}} || || Keyboard functions (Brightness,volume,...) || {{attachment:IconsPage/warning.png}} || || Fans ||{{attachment:IconsPage/warning.png}} || || CD/DVD Writing || {{attachment:IconsPage/question.png}} || || Bluetooth || {{attachment:IconsPage/question.png}} || || External Monitor || {{attachment:IconsPage/warning.png}} || || Wireless (Air``Port) || {{attachment:IconsPage/warning.png}}|| || iSight || {{attachment:IconsPage/ok.png}} || || Touchpad (appletouch) || {{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} || || Apple USB 56K Modem || {{attachment:IconsPage/question.png}} || || Apple Remote Control || {{attachment:IconsPage/question.png}} || || Firewire|| {{attachment:IconsPage/ok.png}} || {{attachment:IconsPage/ok.png}} (works out-of-the-box) <
> {{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} (works, with remarks) <
> {{attachment:IconsPage/warning.png}} (needs manual install) <
> {{attachment:IconsPage/dont.png}} (won't work)<
> {{attachment:IconsPage/question.png}} (not yet documented)<
> == Basic Installation Instructions == Common things about installing and maintaining Ubuntu on Intel-based Macs: [[https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation|Intel CPU-based Macintosh Generic Installation Instructions]], but remember that rEFIT supports this Mac``Book only from 0.12. If you don't get the option to install grub to /dev/sda3 during the installation as suggested in the installation instructions see this thread: [[http://ubuntuforums.org/showthread.php?t=1576028]] If the system does not boot via the refit menu, try using the built-in bootcamp chooser (reboot while holding the alt-key down). == Wireless (AirPort) == To enable wireless you need to install the restricted Broadcom STA driver. If you don't have wired internet access, download these packages using another computer: 1. [[http://packages.ubuntu.com/lucid/patch]] 1. [[http://packages.ubuntu.com/lucid/dkms]] 1. [[http://packages.ubuntu.com/lucid/bcmwl-kernel-source]] Install them in this order (by double clicking them). Then restart the computer. == Desktop Effects (Compiz) == You probably want to enable the proprietary graphics driver. Go to System -> Administration -> Hardware Drivers and choose the NVIDIA accelerated graphics driver (version 185). If you find that the screen never comes back awake after suspending, you should try other versions of the drivers. == Trackpad == Left-click, right-click (two finger)use and basic trackpad work out of the box. 2 Finger drag-clicking, i.e. click with thumb, drag with finger as in OSX, doesn't work. This is a limitation with the driver as far as I know. To enable two finger scrolling and tap to click: * '''''System''''' ''>'' '''''Mouse''''' ''>'' '''''Touchpad''''' In Karmic you could make the trackpad respond more like it does in OSX with a hal fdi file. Since Hal is deprecated you can use the xinput command use {{{xinput list}}} to find the id of the trackpad. most like it is named 'bcm5974' then use {{{xinput list-props }}} to get a list of al the properties, the ids and the format for the value then use {{{xinput set-prop }}} to change things == Keyboard functions == Adjusting the screen brightness works out of the box with the default "nv" graphics driver. But when you install the restricted NVIDIA graphics driver, you will need to install nvidia-bl-dkms from the [[https://wiki.ubuntu.com/MactelSupportTeam/PPA#Installation|Mactel PPA repository]]. <
> {{{ sudo apt-get install nvidia-bl-dkms }}} <
> == Fans == According to this thread [[http://ubuntuforums.org/showthread.php?t=969183/|Macbook (5,1) hotter in linux than in OSX ]] Macbooks running Ubuntu get hotter than in OS X. Swedishwings ([[http://ubuntuforums.org/showthread.php?t=1467062&page=5|Fan control for mactel-support repo ]]) has created the following solution (from the Mactel PPA repository [[https://wiki.ubuntu.com/MactelSupportTeam/PPA#Installation|Mactel PPA repository]]): <
> {{{ sudo apt-get install macfanctld }}} <
> == External Monitor == == Headphones == Stereo sound works out of the box, although is set to mute by default. Headphones are labeled "HP" in alsamixer, and are muted by default. The outstanding sound issues with MacBook 5,1 are described here: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/488103 === Microphone === The internal microphone works out of the box. You will need to increase the input volume: * '''''System''''' ''>'' '''''Preferences''''' ''>'' '''''Sound''''' ''>'' '''''Input''''' == Suspend/Hibernate == Suspend works out of the box, the power button needs to be pressed though, lifting the clamshell doesn't auto-wake. Hibernate does not work in comination with rEFIt (or at all?), because the resume code doesn't get triggerd and it boots normal. Certain versions of the proprietary video drivers can also prevent the screen from showing anything after waking up, so try downgrading if you find this affects you. == Remote Control == Works with the small Apple Remote and LIRC (although auto-repeat appears to be broken, and you have to leave a second or so between repeated key presses). Install the lirc package. There are many possible configurations, here is one that simply injects standard keys into X when pressing the keys on the remote. Edit the file /etc/lircd.conf to contain the following text: {{{ begin remote name AppleRemote bits 8 eps 30 aeps 100 one 0 0 zero 0 0 pre_data_bits 24 pre_data 0x87EE81 gap 211982 toggle_bit_mask 0x0 ignore_mask 0x0000ff01 begin codes KEY_VOLUMEUP 0x0B KEY_VOLUMEDOWN 0x0D KEY_PREVIOUSSONG 0x08 KEY_NEXTSONG 0x07 KEY_PLAYPAUSE 0x04 KEY_MENU 0x02 end codes end remote }}} Edit the remote section of the file /etc/lirc/hardware.conf to contain the following text: {{{ #Chosen Remote Control REMOTE="Apple Mac mini USB IR Receiver" REMOTE_MODULES="uinput" REMOTE_DRIVER="macmini" REMOTE_DEVICE="" REMOTE_LIRCD_CONF="" REMOTE_LIRCD_ARGS="--uinput" }}} Restart and enjoy remote controlling the master volume and rhythmbox. :-) == Known Issues == === Battery Life === The battery under Ubuntu is shorter than in OS X. Enabling laptop mode has been reported to increase battery life. To enable laptop mode <
> {{{ sudo apt-get install laptop-mode-tools }}} <
> ---- [[https://help.ubuntu.com/community/CategoryMac|CategoryMac]] ---- <
><
> ||{{attachment:IconsPage/users.png}}<
> Please update this page, if you have figured out anything, that is not mentioned here!|| <
><
> ||{{attachment:IconsPage/users.png}}<
> The [[http://ubuntuforums.org/group.php?groupid=352|MactelSupportTeam]] is about to restructure and reorganize the documentation for Intel-based Macs. If you are interested in helping, please visit our [[https://wiki.ubuntu.com/MactelSupportTeam|team page]] for information. For all Mactel wikis, there is a starting place [[https://wiki.ubuntu.com/MactelSupportTeam/CommunityHelpPages|here]]. There is also a [[http://ubuntuforums.org/showthread.php?t=969360|thread]] about planning the Mactel docummentation going on. || <
><
>