MacBook keyboard works by default. Only the '''eject''' key isn't recognized properly.

MacBook keyboard works by default. Only the '''eject''' key isn't recognized properly.

Line 173:

Line 173:

To install and configure '''pommed''' is easily:

To install and configure '''pommed''' is easily:

−

$ yaourt pommed

+

# yaourt pommed

to install it, after

to install it, after

Line 190:

Line 190:

{{ Note | see the [[Xorg input hotplugging]] page for other configuration information.}}

{{ Note | see the [[Xorg input hotplugging]] page for other configuration information.}}

−

===Wifi===

+

=== Wifi ===

Different MacBook models have different wireless cards.

Different MacBook models have different wireless cards.

Line 196:

Line 196:

You can easily check what card do your MacBook have by:

You can easily check what card do your MacBook have by:

−

$ lspci | grep Network

+

# lspci | grep Network

* if you have an Atheros all should works-out-of-the-box.

* if you have an Atheros all should works-out-of-the-box.

Line 202:

Line 202:

* instead if you have a Broadcom follow the [[Broadcom BCM4312]] page.

* instead if you have a Broadcom follow the [[Broadcom BCM4312]] page.

−

===Sound===

+

=== Sound ===

First of all follow [[ALSA]] wiki page, then if something doesn't work correctly, continue reading this part.

First of all follow [[ALSA]] wiki page, then if something doesn't work correctly, continue reading this part.

−

Edit your '''/etc/modprobe.d/50-sound.conf''':

+

Edit your '''/etc/modprobe.d/50-sound.conf''', appending this line:

−

−

appending this line

options snd_hda_intel model=intel-mac-auto

options snd_hda_intel model=intel-mac-auto

Line 222:

Line 220:

At least reboot.

At least reboot.

−

===Bluetooth===

+

=== Bluetooth ===

See the article on [[Bluetooth]] to install and configure all software needed.

See the article on [[Bluetooth]] to install and configure all software needed.

Line 234:

Line 232:

{{ Tip | for advanced bluetooth information see [[Bluetooth]] page.}}

{{ Tip | for advanced bluetooth information see [[Bluetooth]] page.}}

−

===iSight===

+

=== iSight ===

{{ Note | linux kernel from 2.6.26 includes the '''Linux UVC driver''' natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.}}

{{ Note | linux kernel from 2.6.26 includes the '''Linux UVC driver''' natively. You will not need to download the driver sources manually unless you want to test a newer version or help with development.}}

Line 248:

Line 246:

To get it, mounts the MacOSX drive with:

To get it, mounts the MacOSX drive with:

−

$ sudo mkdir /media/MacOSX

+

# sudo mkdir /media/MacOSX

−

$ sudo mount -t hfsplus /dev/sda2 /media/MacOSX

+

# sudo mount -t hfsplus /dev/sda2 /media/MacOSX

Then install the firmware extractor and let it do the work for you

Then install the firmware extractor and let it do the work for you

−

$ yaourt isight-firmware-tools

+

# yaourt isight-firmware-tools

and click OK to accept the default path (/media/MacOSX/System...).

and click OK to accept the default path (/media/MacOSX/System...).

Line 259:

Line 257:

When it's done check that the firmware has been found:

When it's done check that the firmware has been found:

−

$ ls /lib/firmware/isight.fw

+

# ls /lib/firmware/isight.fw

Once that is done, you need to completely SHUTDOWN your Mac and start it back up again (because this clears the hardware state of the camera).

Once that is done, you need to completely SHUTDOWN your Mac and start it back up again (because this clears the hardware state of the camera).

Second copy pre-saved color profiles placed in '''/Library/ColorSync/Profiles/Displays/''' on Mac OS partition to '''~/colorprofiles/''' for example.

Second copy pre-saved color profiles placed in '''/Library/ColorSync/Profiles/Displays/''' on Mac OS partition to '''~/colorprofiles/''' for example.

Line 305:

Line 303:

Finally you can activate it by running

Finally you can activate it by running

−

$ xcalib ~/colorprofile.icc

+

# xcalib ~/colorprofile.icc

{{ Warning | previous command set the color profile only for the current session; this mean that you must run it every time you login in your system. For automating it you can execute the command by '''Autostart Application''', concording with your DE.}}

{{ Warning | previous command set the color profile only for the current session; this mean that you must run it every time you login in your system. For automating it you can execute the command by '''Autostart Application''', concording with your DE.}}

Line 311:

Line 309:

{{ Note | see '''xcalib''' man pages for further information.}}

{{ Note | see '''xcalib''' man pages for further information.}}

−

===Apple Remote===

+

=== Apple Remote ===

First, to correctly install and configure the '''lirc''' software that control IR see [[Lirc]] wiki.

First, to correctly install and configure the '''lirc''' software that control IR see [[Lirc]] wiki.

If you don't know which option to pick, we recommend the dual boot so you can still return to Mac OS X whenever you want.

Arch Linux Only

This situation is the easiest to deal with. Mostly, partitioning is the same as any other hardware that Arch Linux can be installed on. The only special consideration is the MacBook firmware boot sound. To ensure that this sound is off: mute the volume in Mac OS X before continuing further. The MacBook firmware relies on the value in Mac OS X, if available.

Then partition with parted. The simplest way is to change the partition table to msdos and then partition as normal. If you decide to use the GPT format, GRUB will not be able to recognize the partitioning scheme.

Note: to partition with parted, just boot the Arch Linux core install disk and run parted from the root account before using the install program.

Once you have finished this part, please move on to Installation section.

Mac OS X with Arch Linux

The easiest way to partition your hard drive, so that Mac OS X and Arch Linux will co-exist, is to use partitioning tools in Mac OS X and then finish with Arch Linux tools.

Warning: It is highly recommended that this only be attempted after a clean install of Mac OS X. Using these methods on a pre-existing system may have undesired results.

Procedure:

In Mac OS X, run Disk Utility (located in /Applications/Utilities)

Select the drive to be partitioned in the left-hand column (not the partitions!). Click on the partition tab on the right.

Select the volume to be resized in the volume scheme.

Decide how much space you wish to have for your Mac OS X partition, and how much for Arch Linux. Remember that a typical installation of Mac OS X requires around 15-20 GiB, depending on the number of software applications and files.

Finally, type the new (smaller) size for the MacOS partition in the size box and click apply. This will create a new partition out of the empty space.

Note: if you wish to have a shared partition between Mac OS X and Arch Linux, then additional steps will need to happen here. Please see Shared Partition.

If the above completed successfully, then you can continue. If not, then you may need to fix your partitions from within Mac OS X first.

Boot the Arch install CD and run parted

# parted

Delete the empty space partition and partition the space as you would for any other installation.

At this point, if you are dual booting, you should reboot your computer and have rEFIt fix the partition tables on your hard drive. (If you don't do this, you may have to reinstall GRUB later on in order to have your Mac recognize the Linux partition.) When you are into the rEFIt menu, select update partition table, then press Y.

Warning: Do not install GRUB onto /dev/sda !!! Doing so is likely to lead to an unstable post-environment.

In the configure system stage, edit /etc/mkinitcpio.conf and add the usbinput hook to the HOOKS line somewhere after the autodetect hook. This will load the drivers for your keyboard in case you need to use it before Arch boots (e.g. entering a LUKS password or using the troubleshooting shell).

When the install process is complete, reboot your computer.

# reboot

Hold down the eject key as your MacBook starts, this should eject the Arch Linux install disk.

Post-Install Configuration

Tip: MacBooks require some extra software from AUR. You may wish to install this software speedly; then you should install Yaourt.

Tip: this software and its configuration require Root Privileges. To speed up this procedure i hint you to install Sudo.

First you need to get the firmware out of a particular file located on your OS X install. It is located in /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport.

Temperature Sensors

For reading temperature just install and configure lm_sensors.
See Lm sensors page.

Color Profile

We can use color profiles from Mac OS.

First install xcalib from AUR:

# yaourt xcalib

Second copy pre-saved color profiles placed in /Library/ColorSync/Profiles/Displays/ on Mac OS partition to ~/colorprofiles/ for example.

There are color profile files agree with in MacBook models; select the right one:

Color LCD-4271800.icc for MacBook Pro with CoreDuo CPU

Color LCD-4271880.icc for MacBook with Core2Duo

Color LCD-4271780.icc for MacBook (not Pro) based on CoreDuo or Core2Duo.

Tip: also Mac OS allows to save current color profile from Displays -> Color section of the Mac OS System Preferences, in this case file is saved to /Users/<username>/Library/ColorSync/Profiles.

Finally you can activate it by running

# xcalib ~/colorprofile.icc

Warning: previous command set the color profile only for the current session; this mean that you must run it every time you login in your system. For automating it you can execute the command by Autostart Application, concording with your DE.

Note: see xcalib man pages for further information.

Apple Remote

First, to correctly install and configure the lirc software that control IR see Lirc wiki.

Then make LIRC use /dev/usb/hiddev0 (or /dev/hiddev0) by editing /etc/conf.d/lircd.

Use irrecord (available when installing lirc) to create a config file matching your remote control signals.

As we see, the "Unknown" partition is our OS X partition, which is located in /dev/sda2.

Create a "mac" folder in /media:

sudo mkdir /media/mac

Add at the end of /etc/fstab this line:

/dev/sda2 /media/mac hfsplus rw,exec,auto,users 0 0

Mount it :

mount /media/mac

and check it:

ls /media/mac

Home Sharing

UID Synchronization

In OS X

Note: it is strongly recommended that UID/GID manipulation be done immediately after a new user account is created, in OS X as well as in Arch Linux. If you installed OS X from scratch, then this operation is guaranteed to work after logging into your account for the first time.

Step 1: Change UID and GID(s)

Pre-Leopard

Open NetInfo Manager located in the /Applications/Utilities folder.

If not done for you already, enable access to user account transactions by clicking on the closed lock at the bottom of the window, and entering your account password, or root password if you have created a root account.

Navigate to /users/<new user name> where <new user name> is the name of the account that will have read/write access to the folder that will be shared with the primary user in Arch.

Change the UID value to 1000 (the value used by default for first user created in Arch).

Also change the GID value to 1000 (the value used by default for user account creation in Arch).

Navigate to /groups/<new user name>, automatically saving the changes you have made so far.

Note: if you get an error message that the transaction is not allowed, log out and log back in.

Leopard

In Leopard, the NetInfo Manager application is not present. A different set of steps is required for UID synchronization:

Open System Preferences.

Click on Accounts.

Unlock the pane if not already done so.

Right-click on the desired user and select Advanced Options.

Write down the value of the User ID field, you'll need it later on. Change both the UID and GID to match the UID and GID of the account wished to be shared with in Arch (1000 by default for the first user created in Arch).

Step 2: Change "Home" Permissions

Open up Terminal in the /Applications/Utilities folder.

Enter the following command to reclaim the permission settings of your home folder, replacing <your user name>, <your user group> and <your old UID> with the user name whose UID and GID values you just changed, the group name whose GID value you just changed and the old UID number, respectively.

Note: if you have already partitioned your hard disk in preparation for the Arch installation, rEFIt may not be enabled by default. You will have to run the "enable.sh" script installed in /efi/refit/.