Differences between revisions 18 and 19
Revision 18 as of 2006-07-17 15:21:25
Size: 6647
Editor: FranzPletz
Comment: news on iSight
Revision 19 as of 2006-07-17 20:29:03
Size: 6718
Editor: ?DavideViti
Comment:
Deletions are marked like this. Additions are marked like this.
Line 72: Line 72:
See [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378521 #378521]

Thread available [http://lists.debian.org/debian-devel/2006/07/msg00008.html here]

Debian Etch on a MacBook HOWTO (triple-boot) at:

Boot process described is rEFIt to LILO to Linux (as discussed in above-linked thread.)

Relevant information elsewhere on this wiki: MacMiniIntel

Partitioning (via OS X)

Before being able to install Debian, you need to repartition the disk; supposing you want to reserve 20Gb for your OS X partition, run the following command from a terminal (Applications -> Utility -> Terminal):

Mac OS X $ sudo diskutil resizevolume disk0s2 20G
Started resizing on disk disk0s2 Macintosh HD
Verifying
Resizing Volume
Adjusting Partitions
Finished resizing on disk disk0s2 Macintosh HD
WARNING: You must now reboot!

Preparing to dual boot (via OS X): rEFIt

Now [http://refit.sourceforge.net/ Downlaod] and install rEFIt:

sudo cp -r /Volumes/rEFIt/efi /efi
cd /efi/refit
./enable.sh

it's now possible to proceed installing Debian, but before installing the lilo bootloader you need to fix the partition table via gptsync either using the shell tool provided with rEFIt or, later on during the installation, using the [http://packages.debian.org/unstable/admin/refit refit Debian package].

To run gptsync from the shell tool, just reboot and press enter on the terminal icon ("start EFI shell"):

Shell> gptsync

Install Debian

Grab and burn an image from the [http://www.debian.org/devel/debian-installer/ d-i website]; for example a daily [http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso netinst]

Boot from the CD (hold down C while booting) and proceed with installation; when asked to reboot on the installed system, go to the second console (CTRL-ALT-F2) and chroot on the debian partition:

$ chroot /target /bin/bash

This can be necessary for example because (at the time of this writing) the network card is successfully detected and used by the installer, but it does not work on the installed system)

Gigabit Ethernet

Your kernel must have support for the Yukon Gigabit Ethernet driver known as sky2. See [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378521 #378521]

Wireless

  • stock madwifi from Debian works for me --dancerj

Add to /etc/apt/sources.list

# NEW Archive for pkg-madwifi snapshots GPG key: 71409CDF
deb http://debian.tu-bs.de/project/kanotix/unstable sid madwifi
deb-src http://debian.tu-bs.de/project/kanotix/unstable sid madwifi

Then

apt-get update
apt-get install madwifi-source madwifi-tools module-assistant

Finally,

# m-a prepare
# m-a a-i madwifi
# depmod -a
# modprobe ath_pci

See [http://madwifi.org/wiki/UserDocs/Distro/Debian/MadWifing madwifi wiki] for more details.

Keyboard

Configure right apple key to alt-gr adding the "?XkbOptions" line below

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "it"
        Option          "XkbOptions"    "lv3:rwin_switch"
EndSection

Screenshots:

Alternatively you can work around with xmodmap and xkbset. xkbset is useful for emulating mouse buttons with keyboard.

xmodmap -e "keycode 115 = Alt_L"
xmodmap -e "keycode 116 = Zenkaku_Hankaku" # right-apple
xmodmap -e "keycode 108 = Pointer_Button3" # KP-ENTER
xmodmap -e "keycode 204 = Pointer_Button2" # eject
xkbset m

Has anyone made the fn key work? I can't so to get Page Up and Down I use:

xmodmap -e "keycode 116 = Page_Up" # Right-Apple
xmodmap -e "keycode 108 = Page_Down" # KP-Enter

Video

The video chipset shipped with Macbook is 945GM; to get video to work properly, you need to adjust the resolution using the [http://packages.debian.org/unstable/x11/915resolution 915resolution] package

apt-get install 915resolution
915resolution -c 945 54 1280 800

then edit /etc/default/915resolution

#
# 915resolution default
#
# find free modes by  /usr/sbin/915resolution -l
# and set it to MODE
# e.g. use MODE=54 
MODE=54
#
# and set resolutions for the mode.
# e.g. use XRESO=1024 and YRESO=768
XRESO=1280
YRESO=800
#
# We can also set the pixel mode.
# e.g. use BIT=32
# Please note that this is optional,
# you can also leave this value blank.
BIT=32

Adjust the Monitor section of /etc/X11/xorg.conf

Section "Monitor"
        Identifier      "Color LCD"
        Option          "DPMS"
        HorizSync       28-64
        VertRefresh     43-60
        Modeline "1280x800@60" 83.91 1280 1312 1624 1656 800 816 824 841
EndSection

and make sure the Screen sections uses "1280x800" as default resolution in the Modes lines and finally

/etc/init.d/915resolution start

See also an [http://sourceforge.net/mailarchive/forum.php?thread_id=20229481&forum_id=47881 xorg.conf file] which enables use of an external monitor.

Sound

ALSA driver snd_hda_intel seems to work for playback as of 2.6.18-rc1.

cpufreq

CPU frequency scaling is governed by CPUFREQ_CENTRINO kernel module. Enable that module, and install cpufreq package for CPU frequency scaling.

USB

usual EHCI, UHCI stuff

infra red receiver

Just usual HID device, kernel patch available as of 2006-07-17.

Devices to be confirmed

Resources