SantaRosa

Differences between revisions 4 and 88 (spanning 84 versions)
Revision 4 as of 2007-09-14 15:12:12
Size: 5495
Editor: 209
Comment: missed some [[br]
Revision 88 as of 2008-08-06 17:00:43
Size: 5748
Editor: localhost
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Ubuntu on MacBookPro Santa Rosa = ##TABLE OF CONTENTS ON RIGHT SIDE
||<tablestyle="float:right; font-size: 0.9em; width:40%; margin: 0 0 1em 1em;" style="padding:0.5em; background:#F1F1ED;"><<TableOfContents(2)>>||

= Ubuntu on a Santa Rosa MacBook Pro =
Line 4: Line 7:
With the release of the third revision to the MacBook Pro line (June 2007), several hardware incompatibilities were introduced with Ubuntu. This page describes the differences in Ubuntu 7.10 (Gutsy Gibbon) on the '''3rd Generation Mac``Book Pro''' (Santa Rosa) compared to the normal installation and use of Ubuntu on a 1st or 2nd Generation Mac``Book Pro.

For information about the 4th Generation Penryn-based MacBookPro, see the [[http://wiki.ubuntu.com/MacBookPro/Penryn|Penryn MacBookPro wiki article]].

'''''This is not an installation guide.''''' Please read the MacBookPro page for information about installation.

With the release in June 2007 of the third revision to the Mac``Book Pro line, several hardware incompatibilities were introduced with Ubuntu.
Line 7: Line 16:
 1. NVIDIA Graphics (GeForce 8600M GT)
 2. AirPort Extreme Wi-Fi 802.11b/g/n
 3. Sound
In
order to document these incompatibilities and the workarounds a thread was created: http://ubuntuforums.org/showthread.php?t=474144
 1. NVIDIA Graphics (Ge``Force 8600M GT)
 2. Air``Port Extreme Wi-Fi 802.11a/b/g/n
 3. Santa Rosa Integrated Sound [[https://cbg.dyndns.org/wiki/ReadingCorner/LinuxOnMacbookPro|(info)]]
Line 12: Line 20:
This Wiki page is based of this thread and the contributions made buy members in the forum. As well, at least some models (the MacBook Pro 15" @ 2.5gHz) now use a Broadcom 4328 wireless card. Madwifi will not work for this chipset; instead see this thread: http://ubuntuforums.org/showthread.php?t=728530.
Line 14: Line 22:
''note.'' If you are new to installing Ubuntu on you Intel Mac you may like to familiarize yourself with the installation process by visiting the generic Wiki page for the MacBookPro or MacBook help page (https://help.ubuntu.com/community/MacBook). In order to document these incompatibilities and the workarounds a [[http://ubuntuforums.org/showthread.php?t=474144|thread]] was created. This wiki page is based on this thread, and on the contributions made by members in the forum. Other instructions can be found on [[https://cbg.dyndns.org/wiki/ReadingCorner/LinuxOnMacbookPro|this]] page.
Line 16: Line 24:
If you are dual booting this page presupposes that you will
 1. Install the EFI boot menu GUI: rEFIt (http://refit.sf.net)
 2. Create a new partition to house your Ubuntu installation on you internal Hard Drive
=== Hardware support in Ubuntu 7.10 (Gutsy) ===
Here is the state of the hardware support in Ubuntu 7.10 (Gutsy Gibbon):
 * NVIDIA graphics: fully working out-of-the-box with nv (2D) and nvidia-glx-new (3D) packages;
 * Ethernet networking: fully working out-of-the-box;
 * Wireless networking: fully working, with manipulations;
 * Sound: fully working out-of-the-box;
 * Backlight, keyboard light and hotkeys: working with the ''pommed'' package, just [apt://pommed click here to install] (link not working for now);
 * CD/DVD drive: fully working out-of-the-box, media can be ejected using the eject key if you have pommed installed;
 * TrackPad: fully working out-of-the-box, can be adjusted with manipulations;
 * Bluetooth: fully working, out-of-the-box;
 * Firewire: fully working, out-of-the-box;
 * Sensors: working with the ''applesmc'' package, just [apt://applesmc click here to install] (link not working for now);
 * Suspend: working out-of-the-box. If using compiz, see [[https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/144732|bug 144732]]; If using the madwifi atheros driver, make sure it is removed before suspending to RAM (See below).
 * iSight: fully working, out-of-the-box with V4L2;
 * Battery: at least 2 and a half hours with Wi-Fi and Bluetooth on, or maybe more, someone must test it with Gutsy and edit this page.
Line 20: Line 40:
== Installation: ==
To install Ubuntu on your Macbook Pro Santa Rosa:
Hardware support according to [[https://cbg.dyndns.org/wiki/ReadingCorner/LinuxOnMacbookPro|this page]]. If someone can test it, please, edit this page and share your experience.
 * Apple InfraRed: not working without kernel patching, see below.
 * PCI Express: working?
 * Sensors still works (make sure that applesmc is installed and module is loaded), but ACPI does not see temperature in /proc/acpi/thermal_zone, which leads me to thinks that fan regulation is not optimal. Temporarily you can use MacBookPro/SantaRosaFanControl.
Line 23: Line 45:
=== Text Installation ===
 1. Download the Alternate Install CD (32bit or 64bit)
 2. Burn the install CD under OS X/Windows/Linux
 3. Download and install Boot Camp or rEFIt (http://refit.sf.net)
 4. Boot from the Ubuntu CD by holding the 'c' key during boot
 6. Follow the on screen instructions
 5. install Ubuntu
Line 31: Line 46:
=== GUI Installation ===
 1. Download the Live Install CD
 2. Burn the install CD under OSX/Windows/Linux
 3. Download and install Boot Camp or rEFI (http://refit.sf.net)
 4. Boot from the Ubuntu CD by holding the 'c' key during boot
 5. Choose "Safe graphics mode" and press F6 to edit the boot parameters
 6. Remove "splash", "quiet" and "--" then add "all_generic_ide"
 7. Boot into the Live environment and install Ubuntu from Ubiquity
== Change 1: NVIDIA Graphics ==
The new NVIDIA Ge``Force 8600M GT graphics card runs on the 'nvidia-glx-new' graphics drivers. These drivers will be recommended to you for installation on first boot after installation. To install, just select the 'nvidia-glx-new' drivers in the Restricted Driver menu.
Line 40: Line 49:
== Getting Graphics to Work ==
You will find after installation that you computer will not correctly boot. This is due primarily to the new unsupported graphics.
== Change 2: AirPort Extreme ==
In the 3rd revision, the hardware remains the same, but the ability to use the 802.11n band has been unlocked. Use the same installation method suggested on the MacBookPro wireless section, which uses the Atheros Mad``Wifi prerelease restricted drivers.
Line 43: Line 52:
=== Change Graphics Drivers ===
 1. Reboot you Mac and choose the Linux icons from the rEFIt menu
 2. Press Esc when asked
A black screen will presented with text similar to:
{{{Ubuntu kernel 2.6.20-15-generic
Ubuntu kernel 2.6.20-15-generic (recovery mode)
Ubuntu memtest
etc...}}}
 3.#3 Select the recovery mode option
 4. Edit the /etc/X11/xorg.conf file
{{{nano /etc/X11/xorg.conf}}}
 5.#5 Search for "nv" and replace with "vesa"
 6. Exit nano and start an X session
{{{/etc/init.d/gdm start}}}
== Change 3: Sound ==
The sound chip in this revision of the Mac``Book Pro is on the ICH8 (Santa Rosa) rather than the ICH7 on older Mac``Books. Gutsy has support for this chip, in both the 32-bit and 64-bit versions, but it may not be automatically detected. To fix this, explicitly specify the model in {{{/etc/modprobe.d/options}}} by adding the line {{{options snd_hda_intel model=mbp3}}}. To automatically append this line to the appropriate file, use the following command:
{{{
sudo sed -i~ '$a\\options snd_hda_intel model=mbp3' /etc/modprobe.d/options
}}}
Line 58: Line 58:
=== Installing the nVidia Drivers ===
If you want to have 3D hardware acceleration (e.g. for a composite desktop like Compiz-Fusion/Beryl), you will need to install the closed source nVidia drivers. The drivers in the Ubuntu repositories (nvidia-glx or nvidia-new) do not support the MacBook Pro SR.
Then reboot, or input the following commands to restart the kernel module:
{{{
rmmod snd_hda_intel
modprobe snd_hda_intel
}}}
Line 61: Line 64:
You will need to install the latest drivers available from nVidia and patch it prior to installation.
 1. Download the NVIDIA driver from http://us.download.nvidia.com/XFree86/Linux-x86/100.14.11/NVIDIA-Linux-x86-100.14.11-pkg1.run
 2. Download the patch nvmacbook.diff from https://cbg.dyndns.org/store/config/nv_macbook.diff
 3. Patch the driver by executing the following:
{{{sh NVIDIA-Linux-x86-100.14.11-pkg1.run -x
cd NVIDIA-Linux-x86-100.14.11-pkg1/usr/src/
patch -p0 < ../../../nv_macbook.diff
cd ../..}}}
 4.#4 Stop your X session to install the driver
{{{/etc/init.d/gdm stop}}}
 5.#5 If you haven't already, install build-essential package so you can build the driver
{{{sudo apt-get install build-essential}}}
 6.#6 Run the nVidia install script
{{{sudo ./nvidia-installer -aN}}}
 7.#7 Follow the onscreen instructions to install the driver.
Generic instructions can be found here (thanks #pepe):
https://cbg.dyndns.org/wiki/ReadingCorner/LinuxOnMacbookPro#graphics
Note: Remember that alsa mixer settings are muted by default, so you may have to adjust them before hearing sound!
Line 79: Line 66:
== Install Wireless ==
 1. Prepare to build the drivers
{{{sudo apt-get install build-essential}}}
 2.#2 Download the madwifi drivers
{{{cd /usr/src/modules/
sudo svn checkout http://svn.madwifi.org/trunk madwifi}}}
(the current trunk may not work, anyone remember what revision works?)
 3.#3 Build and install the madifi drivers
{{{cd madwifi
sudo make
sudo make install
sudo modprobe ath_pci}}}
Line 92: Line 67:
== Controlling backlight and Keyboard Light ==
The system used to control backlight on Mac laptops is a proprietary Apple implementation which has been implemented under linux by pommed. To install pommed:
 1. Download the pommed source which contains a patch for the MacBookPro SR
{{{svn co svn://svn.debian.org/pommed}}}
 2.#2 Install the dependencies
{{{sudo apt-get build-dep pommed}}}
 3.#3 Build pommed
{{{cd pommed
sudo make}}}
Follow instruction in INSTALL
== Change 4: Apple IR Remote ==
If this doesn't work for you (pressing up/down on the remote should adjust volume in Gutsy), then you need to rebuild the '''appleir''' kernel module. This procedure is detailed [[https://cbg.dyndns.org/wiki/ReadingCorner/LinuxOnMacbookPro|here]] or a simpler way (which builds a .deb) is detailed [[http://ubuntuforums.org/showthread.php?t=607797|here]].
Line 103: Line 70:
{{{gedit INSTALL}}} There is a [[https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.22/+bug/157919|bug]] in launchpad for this issue as well.
Line 105: Line 72:
== Getting Sound ==
 1. Install alsa dependencies
{{{sudo apt-get install automake autotools autoconf }}}
note. please provide other dependencies
 2.#2 Move into your modules source directory and download the latest alsa source which includes a patch for the MacBook Pro SR
{{{cd /usr/src/modules/
rsync -avz --delete rsync://alsa.alsa-project.org/hg/alsa-driver alsa
rsync -avz --delete rsync://alsa.alsa-project.org/hg/alsa-kernel alsa}}}
 3.#3 Build and install the driver
{{{cd ../alsa-driver
./hgcompile
make
make install
/etc/init.d/alsasound stop}}}
 4.#4 Verify all snd modules are unloaded
{{{lsmod}}}
 5.#5 Then load the driver module
{{{modprobe snd-hda-intel}}}
If you want to make the remote work with Elisa (and most other media centres) [[http://dolphy-tech.net/log/?p=36|this post]] explains how to do it.
----
CategoryDocumentation

Ubuntu on a Santa Rosa MacBook Pro

Preface

This page describes the differences in Ubuntu 7.10 (Gutsy Gibbon) on the 3rd Generation MacBook Pro (Santa Rosa) compared to the normal installation and use of Ubuntu on a 1st or 2nd Generation MacBook Pro.

For information about the 4th Generation Penryn-based MacBookPro, see the Penryn MacBookPro wiki article.

This is not an installation guide. Please read the MacBookPro page for information about installation.

With the release in June 2007 of the third revision to the MacBook Pro line, several hardware incompatibilities were introduced with Ubuntu.

The primary hardware changes from previous hardware revisions include:

  1. NVIDIA Graphics (GeForce 8600M GT)

  2. AirPort Extreme Wi-Fi 802.11a/b/g/n

  3. Santa Rosa Integrated Sound (info)

As well, at least some models (the MacBook Pro 15" @ 2.5gHz) now use a Broadcom 4328 wireless card. Madwifi will not work for this chipset; instead see this thread: http://ubuntuforums.org/showthread.php?t=728530.

In order to document these incompatibilities and the workarounds a thread was created. This wiki page is based on this thread, and on the contributions made by members in the forum. Other instructions can be found on this page.

Hardware support in Ubuntu 7.10 (Gutsy)

Here is the state of the hardware support in Ubuntu 7.10 (Gutsy Gibbon):

  • NVIDIA graphics: fully working out-of-the-box with nv (2D) and nvidia-glx-new (3D) packages;
  • Ethernet networking: fully working out-of-the-box;
  • Wireless networking: fully working, with manipulations;
  • Sound: fully working out-of-the-box;
  • Backlight, keyboard light and hotkeys: working with the pommed package, just [apt://pommed click here to install] (link not working for now);

  • CD/DVD drive: fully working out-of-the-box, media can be ejected using the eject key if you have pommed installed;
  • TrackPad: fully working out-of-the-box, can be adjusted with manipulations;

  • Bluetooth: fully working, out-of-the-box;
  • Firewire: fully working, out-of-the-box;
  • Sensors: working with the applesmc package, just [apt://applesmc click here to install] (link not working for now);

  • Suspend: working out-of-the-box. If using compiz, see bug 144732; If using the madwifi atheros driver, make sure it is removed before suspending to RAM (See below).

  • iSight: fully working, out-of-the-box with V4L2;

  • Battery: at least 2 and a half hours with Wi-Fi and Bluetooth on, or maybe more, someone must test it with Gutsy and edit this page.

Hardware support according to this page. If someone can test it, please, edit this page and share your experience.

  • Apple InfraRed: not working without kernel patching, see below.

  • PCI Express: working?
  • Sensors still works (make sure that applesmc is installed and module is loaded), but ACPI does not see temperature in /proc/acpi/thermal_zone, which leads me to thinks that fan regulation is not optimal. Temporarily you can use MacBookPro/SantaRosaFanControl.

Change 1: NVIDIA Graphics

The new NVIDIA GeForce 8600M GT graphics card runs on the 'nvidia-glx-new' graphics drivers. These drivers will be recommended to you for installation on first boot after installation. To install, just select the 'nvidia-glx-new' drivers in the Restricted Driver menu.

Change 2: AirPort Extreme

In the 3rd revision, the hardware remains the same, but the ability to use the 802.11n band has been unlocked. Use the same installation method suggested on the MacBookPro wireless section, which uses the Atheros MadWifi prerelease restricted drivers.

Change 3: Sound

The sound chip in this revision of the MacBook Pro is on the ICH8 (Santa Rosa) rather than the ICH7 on older MacBooks. Gutsy has support for this chip, in both the 32-bit and 64-bit versions, but it may not be automatically detected. To fix this, explicitly specify the model in /etc/modprobe.d/options by adding the line options snd_hda_intel model=mbp3. To automatically append this line to the appropriate file, use the following command:

sudo sed -i~ '$a\\options snd_hda_intel model=mbp3' /etc/modprobe.d/options

Then reboot, or input the following commands to restart the kernel module:

rmmod snd_hda_intel
modprobe snd_hda_intel

Note: Remember that alsa mixer settings are muted by default, so you may have to adjust them before hearing sound!

Change 4: Apple IR Remote

If this doesn't work for you (pressing up/down on the remote should adjust volume in Gutsy), then you need to rebuild the appleir kernel module. This procedure is detailed here or a simpler way (which builds a .deb) is detailed here.

There is a bug in launchpad for this issue as well.

If you want to make the remote work with Elisa (and most other media centres) this post explains how to do it.


CategoryDocumentation

MacBookPro/SantaRosa (last edited 2008-10-31 15:01:50 by 128)