Differences between revisions 8 and 9
Revision 8 as of 2006-08-17 10:03:58
Size: 2954
Editor: MattKraai
Comment:
Revision 9 as of 2006-08-17 10:26:54
Size: 3486
Editor: MattKraai
Comment:
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
= X Windows System = = Kernel =
Line 20: Line 20:
To use the X Windows System, install the non-free fglrx-driver package and, in the Device section of /etc/X11/xorg.conf, change the driver from "ati" to "fglrx". As of 2.6.17-6, the Linux kernel package in Debian does not support the fn key or the MacBook Pro touchpad with the appletouch module. You should compile a custom kernel package that adds the following patches:
Line 22: Line 22:
To set up the touchscreen, download [http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blobdiff_plain;h=4eff8d7a79d4da796f9689ce7665d8bd4327b75f;hp=c222ed13deab49de122ee3a57851a33045f58ef9 this patch], reconfigure the kernel to build the appletouch module, and build a new kernel ([http://bugs.debian.org/382298 bug 382298]).  * [http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=5c218e3b86510f9685bfae5b0d2d7cc8468056c1;hp=dfbaa7d8a4056436b6a170625d64986ebb648486 macbook-fn-key.patch]
 * [http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff_plain;h=9effa978f1d51f6d0426ebabcf6cb32336bb3153;hp=73e487fdb75f8abf230968dbf73a3dc3b16808d3 macbook-touchpad-with-appletouch.patch] ([http://bugs.debian.org/382298 bug 382298])
Line 24: Line 25:
Next, create /usr/local/sbin/rebind-touchpad with the following contents: Once you've compiled and installed a kernel with these patches, you'll need to ensure that the touchpad is bound to the appletouch driver instead of the usbhid driver. You can do so by creating /usr/local/sbin/rebind-touchpad with the following contents:
Line 40: Line 41:
Create /etc/modprobe.d/appletouch with the following contents: and creating /etc/modprobe.d/appletouch with the following contents:
Line 45: Line 46:

= X Windows System =

To use the X Windows System, install the non-free fglrx-driver package and, in the Device section of /etc/X11/xorg.conf, change the driver from "ati" to "fglrx".

This page describes how to install Debian on a MacBook Pro.

The first step is to install and run [http://www.apple.com/macosx/bootcamp/ Boot Camp]. You can skip the step that allows you to create a Macintosh Drivers CD. At the Start Windows XP Installation step, you should insert a Debian installation CD.

If you press return at the ISOLINUX prompt, the kernel may panic while enabling the IO-APIC IRQs ([http://bugs.debian.org/381719 bug 381719]). To avoid this, enter "install noapic" at the ISOLINUX prompt.

When you reach the "Install the GRUB boot loader on a hard disk" step, switch to the second virtual console by pressing ctrl-option-F2, press return to start the shell, and then enter

 chroot /target apt-get install refit
 /target/sbin/gptsync /dev/sda

and enter y at the prompt.

Switch back to the first virtual console by pressing ctrl-option-F1 and select <Go Back> in response to the "Install the GRUB boot loader to the master boot record". Choose "Install the LILO boot loader on a hard disk" from the main menu and choose /dev/sda3 for the LILO installation target.

Kernel

As of 2.6.17-6, the Linux kernel package in Debian does not support the fn key or the MacBook Pro touchpad with the appletouch module. You should compile a custom kernel package that adds the following patches:

Once you've compiled and installed a kernel with these patches, you'll need to ensure that the touchpad is bound to the appletouch driver instead of the usbhid driver. You can do so by creating /usr/local/sbin/rebind-touchpad with the following contents:

set -e
cd /sys/bus/usb/drivers/usbhid
for device in *-*; do
    if [ -e $device/interface ] \
       && [ "`cat $device/interface`" = Touchpad ]; then
        echo -n $device > unbind
        echo -n $device > ../appletouch/bind
    fi
done

and creating /etc/modprobe.d/appletouch with the following contents:

install appletouch /sbin/modprobe --ignore-install appletouch $CMDLINE_OPTS && /usr/local/sbin/rebind-touchpad

X Windows System

To use the X Windows System, install the non-free fglrx-driver package and, in the Device section of /etc/X11/xorg.conf, change the driver from "ati" to "fglrx".

Edit /etc/X11/xorg.conf and in the Module section, add the following line:

        Load "synaptics"

Replace the contents of the ?InputDevice section with the "Configured Mouse" identifier with the following:

        Identifier      "Configured Mouse"
        Driver          "synaptics"
        Option          "CorePointer"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "MinSpeed"              "1.0"
        Option          "MaxSpeed"              "1.0"

Once this is done, tapping the touchpad with two fingers should generate a middle-button click and tapping it with three fingers will generate a right-button click.