Size: 9724
Comment: copied from 11.04 Natty
|
Size: 7010
Comment: Added Nvidia driver install error code so that others can find this.
|
Deletions are marked like this. | Additions are marked like this. |
Line 9: | Line 9: |
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 24: |
|| Wireless (Air``Port) || {{attachment:IconsPage/warning_small.png}}|| || Desktop Effects (Unity) ||{{attachment:IconsPage/warning_small.png}} || |
|| Wireless (Air``Port) || {{attachment:IconsPage/check_remark_small.png}}|| || Desktop Effects (Unity) ||{{attachment:IconsPage/check_remark_small.png}} || |
Line 26: | Line 27: |
|| Keyboard functions (Brightness,volume,...) || {{attachment:IconsPage/warning_small.png}} || || Fans ||{{attachment:IconsPage/warning_small.png}} || |
|| Keyboard functions (Brightness,volume,...) || {{attachment:IconsPage/check_remark_small.png}} || || Fans ||{{attachment:IconsPage/check_remark_small.png}} || |
Line 32: | Line 33: |
|| External Monitor || {{attachment:IconsPage/warning_small.png}} || | || External Monitor || {{attachment:IconsPage/query_small.png}} || |
Line 46: | Line 47: |
[[https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation|Intel CPU-based Macintosh Generic Installation Instructions]], but remember that rEFIT supports this Mac``Book only from 0.12. If booting the installer fails with and you just get some kind of graphic corruption. booting into OSX, and toggle the power management mode for your display card so its performance/ powersave or vice versa. This seems to be because Xorg will pick the first card, which doesn't have to be the one actually connected to the panel. If you don't get the option to install grub to /dev/sda3 during the installation as suggested in the installation instructions see this thread: [[http://ubuntuforums.org/showthread.php?t=1576028]] If the system does not boot via the refit menu, try using the built-in bootcamp chooser (reboot while holding the alt-key down). |
[[https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation|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''' |
Line 52: | Line 61: |
== Wireless (AirPort) == To enable wireless you need to install the restricted Broadcom STA driver. |
== 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 55: | Line 64: |
Open and choose Broadcom STA in: * '''System''' -> '''Administration''' -> '''Additional Drivers''' if you already chose to install restricted software during Ubuntu's installation, the wireless card is automatically working. == Desktop Effects (Unity) == You probably want to enable the proprietary graphics driver. Open and choose the NVIDIA accelerated graphics driver (version Current) in: * '''System''' -> '''Administration''' -> '''Additional Drivers''' If you find that the screen never comes back awake after suspending, you should try other versions of the drivers. == Trackpad == Left-click, right-click (two finger)use and basic trackpad work out of the box. 2 Finger drag-clicking, i.e. click with thumb, drag with finger as in OSX, doesn't work. This is a limitation with the driver as far as I know. To enable two finger scrolling and tap to click: * '''System''' -> '''Mouse''' -> '''Touchpad''' == Keyboard functions == Adjusting the screen brightness works out of the box with the default "nv" graphics driver. ¿? Using restricted NVIDIA graphics driver(Current Version) need to edit /etc/X11/xorg.conf and add to device section: <<BR>> |
|
Line 91: | Line 65: |
Option "RegistryDwords" "EnableBrightnessControl=1" | sudo apt-get install linux-headers-`uname -r` |
Line 94: | Line 68: |
Otherwise you probably will encounter a black screen or a login promt instead of lightdm after your netxt reboot. | |
Line 95: | Line 70: |
* '''System Settings''' -> '''Software & Updates''' -> '''Additional Drivers''' 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]]. ''When switching back to the open source driver'' you could encounter the problem that the solution will be set 640xSomething and that you can't increase it the regular way. When confronted with that, 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 }}} 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]]. |
|
Line 97: | Line 85: |
According to this thread [[http://ubuntuforums.org/showthread.php?t=969183/|Macbook (5,1) hotter in linux than in OSX ]] Macbooks running Ubuntu get hotter than in OS X. Swedishwings ([[http://ubuntuforums.org/showthread.php?t=1467062&page=5|Fan control for mactel-support repo ]]) has created the following solution (from the Mactel PPA repository [[https://wiki.ubuntu.com/MactelSupportTeam/PPA#Installation|Mactel PPA repository]]): | 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. |
Line 103: | Line 91: |
== Sound == Stereo sound works out of the box. |
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 [[#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]]): {{{ set root=(cd0) linux /casper/vmlinuz.efi boot=casper nopromt noeject initrd /casper/initrd.lz boot }}} |
Line 107: | Line 114: |
== Sidenodes == | |
Line 108: | Line 116: |
=== Optical Audio Output === Optical Audio Oputput is always on (battery consuming??). If you look INTO the headphone jack-hole, you'll see a red light. To disable it, run 'alsamixer' in a terminal. There should be a switch called S/PDIF that you can turn off. To save the profile: |
=== Nvidia driver blackscreen / login promt after reboot (with or without EFI enabled) === If you encounter |
Line 115: | Line 119: |
$ sudo alsactl store | Module build for the currently running kernel was skipped since the kernel source for this kernel does not seem to be installed. |
Line 117: | Line 122: |
To restore the profile: |
after trying to install the Nvidia drivers (on your Mac 5.1 with or without EFI enabled) do the following (as recommended above): |
Line 120: | Line 124: |
$ sudo alsactl restore | sudo apt-get install linux-headers-`uname -r` |
Line 122: | Line 126: |
As highlighted on this thread [[http://ubuntuforums.org/showthread.php?t=1290130|Volume problems]] we will need to launch restore command on startup. Open and choose 'Add' in: * '''System''' -> '''Preferences''' -> '''Startup Applications''' Then enter the following details for each field: Name: {{{alsactl}}} Command: {{{alsactl restore}}} Comment: {{{fix for pulse}}} Click 'Save'. this will not help when you suspend the laptop and then resume it. Adding the command above to a script under /etc/pm/sleep.d/ will make sure the setting is re-applied on resume == Suspend/Hibernate == Suspend works out of the box, lifting the clamshell does auto-wake. '''Hibernate not tested''' Hibernate does not work in comination with rEFIt (or at all?), because the resume code doesn't get triggerd and it boots normal. Certain versions of the proprietary video drivers can also prevent the screen from showing anything after waking up, so try downgrading if you find this affects you. == Remote Control == Works with the small Apple Remote and LIRC (although auto-repeat appears to be broken, and you have to leave a second or so between repeated key presses). Install the lirc package. There are many possible configurations, here is one that simply injects standard keys into X when pressing the keys on the remote. Edit the file /etc/lircd.conf to contain the following text: |
then reinstall your Nvidia driver, e.g. |
Line 159: | Line 128: |
begin remote name AppleRemote bits 8 eps 30 aeps 100 one 0 0 zero 0 0 pre_data_bits 24 pre_data 0x87EE81 gap 211982 toggle_bit_mask 0x0 ignore_mask 0x0000ff01 begin codes KEY_VOLUMEUP 0x0B KEY_VOLUMEDOWN 0x0D KEY_PREVIOUSSONG 0x08 KEY_NEXTSONG 0x07 KEY_PLAYPAUSE 0x04 KEY_MENU 0x02 end codes end remote |
sudo apt-get purge nvidia-current sudo apt-get install nvidia-current |
Line 185: | Line 131: |
Edit the remote section of the file /etc/lirc/hardware.conf to contain the following text: {{{ #Chosen Remote Control REMOTE="Apple Mac mini USB IR Receiver" REMOTE_MODULES="uinput" REMOTE_DRIVER="macmini" REMOTE_DEVICE="" REMOTE_LIRCD_CONF="" REMOTE_LIRCD_ARGS="--uinput" }}} Restart and enjoy remote controlling the master volume and rhythmbox. :-) == Known Issues == === Battery Life === The battery under Ubuntu is much shorter than in OS X. If one boots in EFI-mode Enabling laptop mode has been reported to increase battery life. To enable laptop mode == EFI Mode == * no brightness control. This has been a long standing issue. No real solution in sight. * the display sometimes flickers for a second or so doesn't seem to happen often enough to hinder actually work. <<BR>> {{{ sudo apt-get install laptop-mode-tools }}} <<BR>> Please note that enabling laptop mode will uninstall "pm-utils" which will prevent Suspend mode from working when the lid is closed. See here for more information [[http://ubuntuforums.org/archive/index.php/t-1606511.html|Macbook 5.5, Maverick, Suspend not working ]] ---- [[https://help.ubuntu.com/community/CategoryMac|CategoryMac]] ---- <<BR>><<BR>> ||<style="background-color: #f9eaaf;" tablewidth="100%">{{attachment:IconsPage/IconUsers.png}}<<BR>> Please update this page, if you have figured out anything, that is not mentioned here!|| <<BR>><<BR>> ||<style="background-color: #f9eaaf;" tablewidth="100%">{{attachment:IconsPage/IconUsers.png}}<<BR>> The [[http://ubuntuforums.org/group.php?groupid=352|MactelSupportTeam]] is about to restructure and reorganize the documentation for Intel-based Macs. If you are interested in helping, please visit our [[https://wiki.ubuntu.com/MactelSupportTeam|team page]] for information. For all Mactel wikis, there is a starting place [[https://wiki.ubuntu.com/MactelSupportTeam/CommunityHelpPages|here]]. There is also a [[http://ubuntuforums.org/showthread.php?t=969360|thread]] about planning the Mactel docummentation going on. || <<BR>><<BR>> |
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).
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.
(works out-of-the-box)
(works, with remarks)
(needs manual install)
(won't work)
(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
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.
When switching back to the open source driver you could encounter the problem that the solution will be set 640xSomething and that you can't increase it the regular way. When confronted with that, 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
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
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):
set root=(cd0) linux /casper/vmlinuz.efi boot=casper nopromt noeject initrd /casper/initrd.lz boot
Sidenodes
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