Apple Macbook Air

cpuinfo
cat /proc/cpuinfo

lspci
lspci

lsusb
lsusb

Hardware Status Overview
Everything is supported

Installation
Mike???

Make.conf

 * with gcc-4.3 or greater.
 * Use -j3 to take advantage of the dual core cpu.
 * Use -j3 to take advantage of the dual core cpu.

.config
Example config for the kernel 2.6.39 can be downloaded from [[Media:MacBookAir-2.6.39-gentoo.config.txt‎ | this link.]]

Video
Nvidia. To describe.

Sound
Sound requires the following options to be configured in the kernel:


 * Add the following line to :
 * Add the following line to :

After the steps above are completed the command will output something similar to:

lsmod output

Use alsamixer to tune the volume up. Don't forget to unmute all the S/PDIF channels to be able to use the speaker.

If the speakers are silent, test the headphones output first.

WiFi

 * Emerge the user-space utilities needed for Wi-Fi support:


 * Check which chip is installed in your MacBook Air:

My output:

lspci output

This chip is supported by Broadcom brcmsmac (mac80211-based softmac PCIe) and brcmfmac (SDIO) open source drivers.

If you have other chip check what driver to use in this table

The steps below are valid for brcmsmac drivers.

Installing brcmsmac drivers
The following options to be configured in the kernel (2.6.39 and later):

Support for brcmsmac drivers is included into earlier version of Linux kernel (tested against 2.6.37) but configuration is a little bit different.

Contents of /lib/firmware/brcm
 * Download firmware from git.kernel.org
 * Put all the downloaded files to, renaming them as shown here
 * Load module (only for the kernels prior 2.6.39)

dmesg output for Linux Kernel 2.6.39
 * After successful loading of the kernel module brcmsmac dmesg output should contain the lines similar to:

or (earlier kernels):

dmesg output for Linux Kernel 2.6.37

Last step: iwconfig
The output should look like the following:

iwconfig output

Congratulations, Wi-Fi subsystem of MacBookAir is ready for use!

Bluetooth

 * Make sure HCI USB driver is enabled in the kernel configuration:


 * Enable all the modules you are planning to use under Bluetooth subsystem support section (e.g., rfcomm, l2cap etc).
 * Make sure the package installed in your system is at least of version 167-r1 and the use flag  is enabled.
 * If the package was re-emerged, make sure to run:


 * Time to test that bluetooth subsystem works:

The output should look like:

hciconfig

It means Macbook bluetooth subsystem has been recognized by the kernel.


 * Change rfcomm configuration:

Make sure contains the following lines:

In order to activate bluetooth subsystem issue the following command:

After execution of this command the device files and should appear in the system.

Somebody might want to add bluetooth to the default run level:

Use the channel 2 for GPRS connections.

Use with (for example)  to obtain network connectivity through 3G GSM phone. can be used to pair MacBookAir and phone.

Webcam
Webcam requires the following options to be configured in the kernel:

Make sure your kernel is built with the options shown above.

Follow the steps:


 * Make sure the version of the package is not less than 1.5.93.
 * Obtain the file AppleUSBVideoSupport either from your Mac OS X distribution where it can be found by the path:

or by downloading from this link
 * Extract the firmware:
 * Check that /lib/firmware directory now contains the file "isight.fw"

dmesg output now should contains the lines like this:

dmesg output

OSD. Volume control

 * Package or greater is needed. This is essential. Otherwise the "Fn" key will not work because hid-apple module contained in the kernels prior 2.6.38 does not have support for  MacBook Air proper keyboard mappings.

module as the recent udev knows about this module). This module is needed for "beep" functionality of pommed.
 * Make sure the module uinput is loaded before pommed (see below) is started. Better to build as
 * Make sure use flag is enabled while emerging


 * Make sure use flag is enabled while emerging :


 * To autoload the module hid-apple add the following lines to (for baselayout-2):


 * Change the audio section of :


 * Start pommed and add it to default runlevel:


 * include gpomme to your X autostart list (e.g., ) to have nice visual feedback in X session when the special keys (volume up/down, mute on/off, brightness up/down) are being pressed.

Hardware monitoring (lm_sensors)

 * If you use baselayout-1:


 * If you use baselayout-2 add the following lines to :


 * Check that applesmc and coretemp kernel modules are loaded (e.g., using lsmod and grep)

To monitor the hardware somebody might want to use package Make sure use flag  is enabled:

Check Lm sensors gentoo wiki page for more details.

MacBook Air can't be rebooted - reboot hangs
Add the option "reboot=pci" to the kernel command line. E.g. modify the kernel command line in for your kernel(s):

/boot/grub/grub.conf