Diff for "MacBook5-1/Raring"


Differences between revisions 3 and 45 (spanning 42 versions)
Revision 3 as of 2013-02-24 02:36:06
Size: 4052
Editor: p549361F1
Comment:
Revision 45 as of 2013-12-18 21:04:52
Size: 8299
Editor: p5DE78FC0
Comment: Removed broken macbook icon link.
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
{{attachment:MacBooksmall.png}}<<BR>><<BR>>
Line 9: Line 7:
You can find the Ubuntu 13.04 Mac desktop image here: [[http://cdimage.ubuntu.com/daily-live/current/|Ubuntu 13.04 (Raring Ringtail) Daily Build]]. When doing a full disk installation you can savely pick the regular 64bit build (not the Mac version). The only difference is that EFI is disabled in the Mac version ([[https://answers.launchpad.net/mactel-support/+question/162838|Source, answer #2]]).
Line 23: Line 22:
 || Wireless (Air``Port) || {{attachment:IconsPage/check_remark_small.png}}||
 || Desktop Effects (Unity) ||{{attachment:IconsPage/check_remark_small.png}} ||
 || T
ouchpad (appletouch) || {{attachment:IconsPage/check_remark_small.png}} ||
 || Keyboard functions (Brightness,volume,...) || {{attachment:IconsPage/check_remark_small.png}} ||
 || Fans ||{{attachment:IconsPage/check_remark_small.png}} ||
 || Sound ||{{attachment:IconsPage/check_small.png}} ||
 || Suspend & Hibernate || {{attachment:IconsPage/query_small.png}} ||
 || CD/DVD Writing || {{attachment:IconsPage/check_small.png}} ||
 || Bluetooth || {{attachment:IconsPage/check_small.png}} ||
 || External Monitor || {{attachment:IconsPage/query_small.png}} ||
 || iSight || {{attachment:IconsPage/check_small.png}} ||
 || Apple USB 56K Modem || {{attachment:IconsPage/query_small.png}} ||
 || Apple Remote Control || {{attachment:IconsPage/query_small.png}} ||
{{attachment:IconsPage/check_small
.png}} (works out-of-the-box) <<BR>>
{{attachment:IconsPage/check_remark_small.png}} (works, with remarks) <<BR>>
{{attachment:IconsPage/warning_small.png}} (needs manual install) <<BR>>
{{attachment:IconsPage/dont_small.png}} (won't work)<<BR>>
{{attachment:IconsPage/query_small.png}} (not yet documented)<<BR>>
 || Wireless (Air``Port) || {{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}}||
 || Desktop Effects (Unity) ||{{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} ||
 || Touchpad (app
letouch) || {{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} ||
 || Keyboard functions (Brightness,volume,...) || {{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} ||
 || Fans ||{{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} ||
 || Sound ||{{attachment:IconsPage/ok.png}} ||
 || Suspend & Hibernate || {{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} ||
 || CD/DVD Writing || {{attachment:IconsPage/ok.png}} ||
 || Bluetooth || {{attachment:IconsPage/ok.png}} ||
 || External Monitor || {{attachment:IconsPage/ok.png}} ||
 || iSight || {{attachment:IconsPage/ok.png}} ||
 || Apple USB 56K Modem || {{attachment:IconsPage/question.png}} ||
 || Apple Remote Control || {{attachment:IconsPage/question.png}} ||
{{attachment:IconsPage/ok
.png}} (works out-of-the-box) <<BR>>
{{attachment:IconsPage/ok.png}} {{attachment:IconsPage/info.png}} (works, with remarks) <<BR>>
{{attachment:IconsPage/warning.png}} (needs manual install) <<BR>>
{{attachment:IconsPage/dont.png}} (won't work)<<BR>>
{{attachment:IconsPage/question.png}} (not yet documented)<<BR>>
Line 48: Line 47:
You can install Ubuntu by replacing MacOS as the installer offers you. This makes full disk encryption easy as you can use the corresponding install option.
To decrease booting time do the following after you have installed the system: restart and hold the alt/option-key. Press enter while holding the control-button. This will decrease the time for the initial "lit-screen" from about 45 to 12 second.
You can also install Ubuntu by replacing MacOS as the installer offers you. This makes full disk encryption easy since you can use the corresponding full-disk-install option.

When doing a MacOS replacement install:
To decrease booting time do the following after you have installed Ubuntu: restart and hold the alt/option-key. Press enter while holding the control-button. This will decrease the time for the initial "lit-screen" from about 45 to 12 second.
Line 53: Line 53:
You need to check "Third-Party"-Software while installing or do the following afterwards:

Open and choose Broadcom STA in:
You need to check "Third-Party"-Software while installing or do the following afterwards: Open and choose Broadcom STA in:
Line 59: Line 57:
At least with 12.10 it seemed to be important to have a internet connection while installing otherwise event the above way wont get network-manager to work with the wireless card.
Line 60: Line 59:
== Desktop Effects (Unity) & Keyboard functions (Brightness) ==
If you want to enable proprietary graphic drivers you can do that here. I strongly recommend that you install the following before activating Nvidia drivers:
Line 61: Line 62:
== Desktop Effects (Unity) ==
You maybe want to enable the proprietary graphics driver.
{{{
sudo apt-get install linux-headers-`uname -r`
}}}
Line 64: Line 66:
Open and choose the NVIDIA accelerated graphics driver in: Otherwise you probably will encounter a black screen or a login promt instead of lightdm after your netxt reboot.
Line 68: Line 70:
Tested: '''Experimental NVIDIA ... from nvidia-experimental-310 (proprietary)'''
After installing 310 you have to follow these steps to get you brightness-control-keys to work again: [[http://askubuntu.com/questions/222801/brightness-control-not-working-ubuntu-12-04-lts-macbook-pro-5-5|Brightness control not working- Ubuntu 12.04 LTS - Macbook pro 5,5]].
Tested: "Experimental NVIDIA ... from nvidia-experimental-310 (proprietary)"<<BR>>
After installing 310 you have to follow these steps to get you brightness-control-keys to work again: [[http://askubuntu.com/a/254548|Brightness control not working- Ubuntu 12.04 LTS - Macbook pro 5,5]].
Line 71: Line 73:
Note: You should be able to disable the Nvidia branding this way: [[http://ubuntuforums.org/showthread.php?t=918705&p=7497223#post7497223|disable nvidia splash screen]].

== Fans ==
If you get the impression that you Mac runs hotter than usual (as I did), then add the [[https://wiki.ubuntu.com/MactelSupportTeam/PPA#Installation|Mactel PPA repository]] and install the following package. It will start your fan sooner. You can uninstall/reinstall it anytime and should hear the effect immediately.

{{{
sudo apt-get install macfanctld
}}}

If you get an error while running update it means you have to edit the contents of the following file and exchange "raring" with "quantal":
{{{
sudo nano /etc/apt/sources.list.d/mactel-support-ppa-raring.list
}}}

Note: You can observe CPU temperature with this tool: [[https://launchpad.net/~alexmurray/+archive/indicator-sensors]].
Line 78: Line 95:
  == Suspend ==
I had to install the Nvidia drivers as shown [[#Desktop_Effects_.28Unity.29_.26_Keyboard_functions_.28Brightness.29|above]] to get it to work. It then worked with and without full-disk encryption.

== Booting a LiveCD & reinstalling ==
If you have installed Ubuntu as a Mac replacement you get the problem that booting from the Ubuntu live cd just gives you a grub rescue shell. The long way to solve this would be to use the MacOS cd to format the harddrive. The short to do the following (as adapted from [[http://ubuntuforums.org/showthread.php?t=1599293|here]]):

- With Efi enabled. The best solution (its ought to decrease temperature and increase battery life), but only tested with a full disk install:
{{{
set root=(cd0)
linuxefi /casper/vmlinuz.efi boot=casper
initrdefi /casper/initrd.lz
boot
}}}
In case of Ubuntu 12.10 it would be "/casper/vmlinuz.efi.signed".
If the booting process comes to a halt and wont continue, restart and swap "set root=(cd0)" for:
{{{
set root=(hd2)
}}}
If it comes to an halt while displaying something with "magic numer", sometimes you get it to work by restarting and using
{{{
linuxefi /casper/vmlinuz.efi boot=casper nopromt noeject
}}}

- Efi disabled:
{{{
set root=(cd0)
linux /casper/vmlinuz.efi boot=casper
initrd /casper/initrd.lz
boot
}}}


== Sidenodes & Errorcodes ==

=== Nvidia driver blackscreen / login promt after reboot (with or without EFI enabled) ===
If you encounter
{{{
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
}}}
after trying to install the Nvidia drivers (on your Mac 5.1 with or without EFI enabled) do the following (as recommended above):
{{{
sudo apt-get install linux-headers-`uname -r`
}}}
then reinstall your Nvidia driver, e.g.
{{{
sudo apt-get purge nvidia-current
sudo apt-get install nvidia-current
}}}


=== Small solution & dash missing after nvidia driver install ===
Same solution as above: [[https://help.ubuntu.com/community/MacBook5-1/Raring#Nvidia_driver_blackscreen_.2BAC8_login_promt_after_reboot_.28with_or_without_EFI_enabled.29|Nvidia driver blackscreen / login promt after reboot (with or without EFI enabled)]]


=== Switching back to the standard driver Nouveau via terminal ===
If you ever want to do that via the terminal do the following:
{{{
sudo rm /etc/X11/xorg.conf
sudo apt-get purge xserver-xorg-video-nouveau
sudo apt-get install xserver-xorg-video-nouveau
}}}

MacBook 5,1 and Ubuntu 13.04 (Raring)

This page aims to describe the steps needed, to fully enable all features of the 1st Generation MacBook Unibody (release date: late 2008) when using Ubuntu 13.04, Raring.

You can find the Ubuntu 13.04 Mac desktop image here: Ubuntu 13.04 (Raring Ringtail) Daily Build. When doing a full disk installation you can savely pick the regular 64bit build (not the Mac version). The only difference is that EFI is disabled in the Mac version (Source, answer #2).

IconsPage/terminal.png You can find out, what model you have by typing at the terminal:

sudo dmidecode -s system-product-name
  • If you have a different model, please go here and find the right wiki.

Overview

Anything not mentioned here probably already works out of the box. If not, please refer to the Ubuntu Apple Users forum.

  • Feature

    Support status

    Wireless (AirPort)

    IconsPage/ok.png IconsPage/info.png

    Desktop Effects (Unity)

    IconsPage/ok.png IconsPage/info.png

    Touchpad (appletouch)

    IconsPage/ok.png IconsPage/info.png

    Keyboard functions (Brightness,volume,...)

    IconsPage/ok.png IconsPage/info.png

    Fans

    IconsPage/ok.png IconsPage/info.png

    Sound

    IconsPage/ok.png

    Suspend & Hibernate

    IconsPage/ok.png IconsPage/info.png

    CD/DVD Writing

    IconsPage/ok.png

    Bluetooth

    IconsPage/ok.png

    External Monitor

    IconsPage/ok.png

    iSight

    IconsPage/ok.png

    Apple USB 56K Modem

    IconsPage/question.png

    Apple Remote Control

    IconsPage/question.png

IconsPage/ok.png (works out-of-the-box)
IconsPage/ok.png IconsPage/info.png (works, with remarks)
IconsPage/warning.png (needs manual install)
IconsPage/dont.png (won't work)
IconsPage/question.png (not yet documented)

Basic Installation Instructions

Common things about installing and maintaining Ubuntu on Intel-based Macs: Intel CPU-based Macintosh Generic Installation Instructions.

You can also install Ubuntu by replacing MacOS as the installer offers you. This makes full disk encryption easy since you can use the corresponding full-disk-install option.

When doing a MacOS replacement install: To decrease booting time do the following after you have installed Ubuntu: restart and hold the alt/option-key. Press enter while holding the control-button. This will decrease the time for the initial "lit-screen" from about 45 to 12 second.

Wireless (AirPort)

You need to check "Third-Party"-Software while installing or do the following afterwards: Open and choose Broadcom STA in:

  • System -> Administration -> Additional Drivers

At least with 12.10 it seemed to be important to have a internet connection while installing otherwise event the above way wont get network-manager to work with the wireless card.

Desktop Effects (Unity) & Keyboard functions (Brightness)

If you want to enable proprietary graphic drivers you can do that here. I strongly recommend that you install the following before activating Nvidia drivers:

sudo apt-get install linux-headers-`uname -r`

Otherwise you probably will encounter a black screen or a login promt instead of lightdm after your netxt reboot.

  • System Settings -> Software & Updates -> Additional Drivers

Tested: "Experimental NVIDIA ... from nvidia-experimental-310 (proprietary)"
After installing 310 you have to follow these steps to get you brightness-control-keys to work again: Brightness control not working- Ubuntu 12.04 LTS - Macbook pro 5,5.

Note: You should be able to disable the Nvidia branding this way: disable nvidia splash screen.

Fans

If you get the impression that you Mac runs hotter than usual (as I did), then add the Mactel PPA repository and install the following package. It will start your fan sooner. You can uninstall/reinstall it anytime and should hear the effect immediately.

sudo apt-get install macfanctld 

If you get an error while running update it means you have to edit the contents of the following file and exchange "raring" with "quantal":

sudo nano /etc/apt/sources.list.d/mactel-support-ppa-raring.list

Note: You can observe CPU temperature with this tool: https://launchpad.net/~alexmurray/+archive/indicator-sensors.

Trackpad

Left-click, right-click (two finger-)use and basic trackpad work out of the box.

You can switch to two-finger-scrolling here:

  • System Settings -> Mouse & Touchpad

Suspend

I had to install the Nvidia drivers as shown above to get it to work. It then worked with and without full-disk encryption.

Booting a LiveCD & reinstalling

If you have installed Ubuntu as a Mac replacement you get the problem that booting from the Ubuntu live cd just gives you a grub rescue shell. The long way to solve this would be to use the MacOS cd to format the harddrive. The short to do the following (as adapted from here):

- With Efi enabled. The best solution (its ought to decrease temperature and increase battery life), but only tested with a full disk install:

set root=(cd0)
linuxefi /casper/vmlinuz.efi boot=casper
initrdefi /casper/initrd.lz
boot

In case of Ubuntu 12.10 it would be "/casper/vmlinuz.efi.signed". If the booting process comes to a halt and wont continue, restart and swap "set root=(cd0)" for:

set root=(hd2)

If it comes to an halt while displaying something with "magic numer", sometimes you get it to work by restarting and using

linuxefi /casper/vmlinuz.efi boot=casper nopromt noeject

- Efi disabled:

set root=(cd0)
linux /casper/vmlinuz.efi boot=casper
initrd /casper/initrd.lz
boot

Sidenodes & Errorcodes

Nvidia driver blackscreen / login promt after reboot (with or without EFI enabled)

If you encounter

Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.

after trying to install the Nvidia drivers (on your Mac 5.1 with or without EFI enabled) do the following (as recommended above):

sudo apt-get install linux-headers-`uname -r`

then reinstall your Nvidia driver, e.g.

sudo apt-get purge nvidia-current
sudo apt-get install nvidia-current

Small solution & dash missing after nvidia driver install

Same solution as above: Nvidia driver blackscreen / login promt after reboot (with or without EFI enabled)

Switching back to the standard driver Nouveau via terminal

If you ever want to do that via the terminal do the following:

sudo rm /etc/X11/xorg.conf
sudo apt-get purge xserver-xorg-video-nouveau
sudo apt-get install xserver-xorg-video-nouveau

MacBook5-1/Raring (last edited 2013-12-18 21:04:52 by p5DE78FC0)