You need to install a patched version of the linux kernel, i'm using 2.6.20 with the 2.6.20 mactel patches excluding efi and sigmatel
For the synaptics driver to work in X you need to compile USB HID and USB Apple Touchpad as modules and then make sure appletouch.ko is loaded before usbhid.ko. My rc.modules essentially contains:
Feel free to use my files:
Keyboard in console
I wanted to use the apple keys as Alt and AltGr, so i had to add the following lines to the keymap (in my case sv-latin1.map):
keycode 125 = Alt
keycode 126 = AltGr
Download my modified version of sv-latin1.map, sv-latin1-macbook.map.gz and place it in /usr/share/kbd/keymaps/i386/qwerty.
The file /sys/module/hid/parameters/pb_fnmode controls how the Fn key works. 0 = disabled, 1 = always on (default), 2 = use as shift. I wanted option 2 (so i can use the function keys in X), so ran and added this to /etc/rc.d/rc.local:
echo 2 > /sys/module/hid/parameters/pb_fnmode
Until the madwifi project implements support for the new Macbook we're stuck with using ndiswrapper and a windows driver.
Using ndiswrapper, some have tried with a D-Link driver for DWWA-645, but it appears a bit unstable. The Lenovo driver suggested by Odi is much better. I've mirrored the required driver files here.
Download and install (make && make install) the latest version of ndiswrapper from http://ndiswrapper.sourceforge.net (i'm using 1.37).
ndiswrapper -i NET5416.INF
Check dmesg output or just try to bring your network up.
After making sure the appletouch driver is loaded before usbhid you need to install the synaptics driver for X.. It's a simple make && make install installation.
You may also want to enable right and/or middle-click emulation. I assigned the alt key to right click and the eject key to middle click. Run and add to /etc/rc.d/rc.local:
echo 1 > /proc/sys/dev/mac_hid/mouse_button_emulation
echo 161 > /proc/sys/dev/mac_hid/mouse_button2_keycode
echo 56 > /proc/sys/dev/mac_hid/mouse_button3_keycode
To get support for the LCD:s native resolution of 1280x800 you need to download, install and run 915Resolution which is a hack for the Intel Video Bios.
915resolution writes over one of the existing resolutions with 1280x800. Don't worry though, it does not make any permanent modifications to your video bios, just until next reboot.
Run this (and add it to /etc/rc.d/rc.local).
915resolution 3c 1280 800
My xorg.conf is based both on Odi's xorg.conf and on Bart van Loons xorg.conf
The 13.3" LCD is 114 dpi. Add this to your ~/.Xresources file:
You will probably need to use xmodmap to reconfigure your keyboard. I made a ~/.Xmodmap for the swedish keyboard.