<> ||<>|| = MacBook Air (5,2) on Ubuntu 14.04 (Trusty Tahr) = This page aims to describe the steps needed, to fully enable all features of the '''5-th Generation MacBook Air''' (release date: mid 2012) when using '''Ubuntu 14.04, Trusty Tahr'''.<
> <
> '''ATTENTION: During my installation on MacBook Air 5.2, Ubuntu 14.04 has shown some stability issues!'''<
> <
> == How to check your MacBook Air model == In OS X, click on the Apple logo on the top-left of the screen. And then "About This Mac". In the new opened windows, click on the "More Info..." button. Now, under the label "MacBook Air" you should be able to see your MacBook Air model (e.g. "13-inch, Mid 2012"). If you further click on "System Report...", you will see under the voice "Model Identifier:" your MacBook Air model - i.e. "MacBookAir5,2".<
> <
> Alternatively, in OS X, you can check your model in terminal with: {{{ sysctl hw.model }}} In Ubuntu with: {{{ 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|| || LCD Panel || {{attachment:IconsPage/ok.png}} The brightness is reset to the highest at every (re)boot.<
>The resolution/color quality is not as good as in OS X. || || Shutdown & Reboot || {{attachment:IconsPage/ok.png}} || || Suspend || {{attachment:IconsPage/ok.png}} When performed manually.<
>{{attachment:IconsPage/dont.png}} The computer doesn't suspend properly when lid is closed. Be careful: CPU overheating possible! || || Hibernate || {{attachment:IconsPage/question.png}} Not tested. || || Keyboard functions (Brightness,volume,...) || {{attachment:IconsPage/ok.png}} Backlight works, but can be controlled only manually (no sensor). || || Touchpad (appletouch) || {{attachment:IconsPage/ok.png}} Without multi-touch.<
>The quality of the touchpad is not as good as in OS X. || || Wireless (Air``Port) || {{attachment:IconsPage/ok.png}}[[#Wireless (AirPort)|{{attachment:IconsPage/info.png}}]] With proprietary driver. Eventual kernel craches while Wireless enabled. || || Bluetooth || {{attachment:IconsPage/ok.png}}[[#Bluetooth|{{attachment:IconsPage/info.png}}]] Bluetooth always on after (re)boot. Fix available. || || iSight || [[#iSight|{{attachment:IconsPage/dont.png}}]] || || Sound || {{attachment:IconsPage/ok.png}} || || Microphone || {{attachment:IconsPage/ok.png}} || || External Monitor || {{attachment:IconsPage/question.png}} Not tested. || || Thunderbolt || {{attachment:IconsPage/ok.png}} Thunderbolt-VGA,HDMI,DVI,Ethernet adapters works seamlessly. <
> {{attachment:IconsPage/info.png}} Apple thunderbolt Display hotplug don't work, you should reboot after plugging. Thunderbolt HDD works with manual configuration. || || SD card slot || {{attachment:IconsPage/ok.png}} || || HFS+ (OS X disc partition) || {{attachment:IconsPage/ok.png}} Mount read-only. || || Fan Control || {{attachment:IconsPage/ok.png}} According to {{{tlp stat}}}. || || Sensors (temps & fans) || {{attachment:IconsPage/ok.png}} According to {{{tlp stat}}}. || || GPU Power Save || {{attachment:IconsPage/ok.png}} || <
> '''Legend:''' <
> <
> {{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]] === Prerequisites === 1. MacBook Air 5,2 (see Section '''"How to check your MacBook Air model"''' above) 2. USB stick (1GB at least) 3. [[http://cdimage.ubuntu.com/releases/14.04/release/ubuntu-14.04-desktop-amd64+mac.iso]]. === Partition Harddisk === 1. Boot MacBook Air into OS X 2. Open Disk Utility {{{ open /Applications/Utility/Disk\ Utility.app }}} 3. Select "Macintosh HD" > (Tab)Partition Add (+) 3 more partitions (NOTE: leave the OS X partition, just resize it if necessary) 2th Partition: Set 4 GB for Linux Swap partition <
> 3nd Partition: Set 25-40 GB for Ubuntu "/" <
> 4rd Partition: Use as much space as left for "/home" <
> === Prepare USB-Stick === 1. In OSX 2. Download iso image to ~/Downloads 3. Open Terminal (a detailed description can be found [[http://www.ubuntu.com/download/desktop/create-a-usb-stick-on-mac-osx|here]]. {{{ cd ~/Downloads # convert iso hdiutil convert -format UDRW -o ubuntu-14.04-desktop-amd64.img ubuntu-14.04-desktop-amd64.iso open /Applications/Utilities/Disk\ Utility.app # format the USB stick with MS-DOS VFAT diskutil list # check which /dev/diskX contains the USB stick - here it is "disk1" # then unmount the usb-stick diskutil unmountDisk /dev/disk1 # write img to usb stick - /!\ BE CAREFUL THAT disk1 REALLY IS YOUR USB-STICK sudo dd if=ubuntu-14.04-desktop-amd64.img.dmg of=/dev/rdisk1 bs=1m }}} === Install rEFInd === 1. Download rEFInd ([[http://www.rodsbooks.com/refind/getting.html|Binary Zip-File]]) ([[http://sourceforge.net/projects/refind/files/0.8.2/refind-bin-0.8.2.zip/download|Direct Download refind-bin-0.8.2.zip]])<
> 2. Follow the installation procedure "Installing rEFInd Manually Using Mac OS X" ([[http://www.rodsbooks.com/refind/installing.html]])<
> NOTE: If you use OS X whole-disk encryption (File Vault) you should install rEFInd in the EFI System Partition (ESP). (See [[http://www.rodsbooks.com/refind/installing.html#wde]])<
> The following is a short example of installing rEFInd in the ESP. Please, follow the rEFInd official guide, instead.<
> Open a Terminal {{{ mkdir /Volumes/esp sudo mount -t msdos /dev/disk0s1 /Volumes/esp sudo mkdir -p /Volumes/esp/efi/refind sudo cp -r refind/* /Volumes/esp/efi/refind/ sudo rm /Volumes/esp/efi/refind/refind_ia32.efi sudo rmdir /Volumes/esp/efi/refind/drivers_ia32 sudo mv /Volumes/esp/efi/refind/refind.conf-sample /Volumes/esp/efi/refind/refind.conf sudo bless --mount /Volumes/esp --setBoot --file /Volumes/esp/efi/refind/refind_x64.efi sudo umount /dev/disk0s1 }}} 3. If you use OS X whole-disk encryption (File Vault), at every reboot you may encounter a delay of about 30 seconds before rEFInd is properly started.<
> There are various possible fix to this problem. For example, if you install rEFInd on the ESP, you can try to rename "/Volumes/esp/efi/refind/refind_ia64.efi" in "/Volumes/esp/efi/BOOT/bootx64.efi" in order to solve the problem (See [[http://www.rodsbooks.com/refind/installing.html#sluggish]]). === Install Ubuntu === 1. Restart and press "Alt"-Key on startup. 2. Select first USB-device labled "EFI-Boot" and press "Enter".<
> Select "Install Ubuntu"<
> 3. Choose "Something else" for partitioning.<
> Please check the sizes in the list according to the partitioning for the step above. <
> OS X Disk Utility leaves unallocated partitions inbetween which usually are arround 128MB in size.<
> Do not try to delete these "blank" partitions.<
> 2th partition should be swap (no format and mountpoint required)<
> 3nd partition should be ext4 formatted and mounted "/".<
> 4rd partition should be ext4 formatted and mounted "/home".<
> Make sure you select the correct partition (i.e. "/") for the boot loader installation.<
> Proceed... 4. The installation process should run through smoothly. It's suggested to choose to install 3rd party software (it will make the Wi-FI working properly). Encrypting the "/home" folder is all and good. 6. Restart. Now a Ubuntu should be shown.<
> Select this an start it.<
> == Wireless (AirPort) == {{attachment:IconsPage/restricted.png}} Needed only if you didn't choose to install 3rd party software during the installation. Requires an Apple USB-Ethernet Adapter. 1. Log into ubuntu 14.04 and open a terminal (Ctrl+Alt+t). Attach Apple USB-Ethernet Adapter. Enter the following commands: {{{ sudo apt-get update sudo apt-get upgrade }}} This updates all packages 2. Start (Panel) > (Menu)System Settings > (Icon)Software & Updates or from terminal `/usr/bin/python3 /usr/bin/software-properties-gtk` Select (Tab)Additional Drivers and install Broadcom 802.11 Linux STA wireless driver from bcmwl-kernel-source 3. Now reboot again Select "Ubuntu" == iSight == {{attachment:IconsPage/webcam.png}} iSight HD webcam does not work.<
> <
> == Touchpad (appletouch) == Works. No multi-touch gesture.<
> The quality of the touchpad is not as good as in OS X.<
> <
> == External Monitor == Not tested.<
> <
> == Bluetooth == Works.<
> <
> There a problem in turning it off, which simply won't work.<
> <
> Changing the "InitiallyPowered" and the "DisablePlugins" entries in the bluetooth configuration file (i.e. /etc/bluetooth/main.conf) does not seem to work.<
> <
> However, I was able to to turn off the Bluetooth by blacklisting it. {{{ sudo gedit /etc/modprobe.d/blacklist-rare-network.conf }}} Adding this: {{{ #Disable bluetooth alias net-pf-31 off }}} <
> == Function Keys == Works. <
> You will probably want to switch the mapping of "cmd" with "alt". See [[AppleKeyboard#Corrections]] page this and other for fine tuning.<
> == Finetuning Powersave functions == The battery duration is quite good by default. However, it can be boosted. 1. Install powertop {{{ sudo apt-get install powertop sudo powertop }}} Toggle through with "TAB" to Tunables Lots of "Bad" values should be displayed. 2. Install TLP For detailed Instructions refer to [[http://thinkwiki.de/TLP_-_Linux_Stromsparen|tpl wiki]]. {{{ sudo add-apt-repository ppa:linrunner/tlp sudo apt-get update sudo apt-get install tlp tlp-rdw }}} 3. Restart tlp with {{{sudo /etc/init.d/tlp restart}}} Check if settings took effect with powertop. == Backlight == Works. No sensor. You can only control it manually.<
> <
> ---- [[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. || <
><
>