Difference between revisions of "MacBookPro11,x"

From ArchWiki
Jump to: navigation, search
(moved information from the forum thread to the wiki)
Line 10: Line 10:
 
{{Article summary end}}
 
{{Article summary end}}
  
For now, take a look at this thread
+
== Preparing for the Installation ==
 +
=== Preparing the Hard drive ===
 +
Assuming you want to dual boot with OSX (so you can firmware update), you have to shrink it's partition with Disk Utility. You can either create a HFS+ partition now to override later, or leave it empty.
  
https://bbs.archlinux.org/viewtopic.php?id=171883
+
== Installation ==
 +
=== Booting the live image ===
 +
Now, download the latest [[Archboot]] iso, write it to USB and boot from it by selecting it in the Apple boot loader using hold alt on boot (use refit if you can't get manage to pick it). When it comes to the syslinux boot loader, press {{ic|Tab}} to edit the entry and append {{ic|nomodeset}} to fix screen corruption.
 +
 
 +
=== Internet ===
 +
{{Note| You can skip this if you use the Thunderbolt or USB to ethernet adapter for the installation.}}
 +
*
 +
 
 +
=== The installation ===
 +
{{Note|Refer to the [[MacBook]] page if you don't want to have a separate partition for GRUB but rather prefer to use [http://www.rodsbooks.com/refind/ rEFInd] (or [[MacBook#rEFIt|rEFIt]]).}}
 +
Run the installation wizard.
 +
 
 +
=== Bootloader ===
 +
 
 +
==== Direct EFI booting ====
 +
''See: [[UEFI_Bootloaders]]''
 +
 
 +
As of August 2013, refind can autodetect the Arch kernel, removing the need for copying the kernel into the EFI partition. Simply install refind and enable the "scan_all_linux_kernels" and "also_scan_dirs" options in refind.conf (see link above for instructions.)
 +
 
 +
==== GRUB (with osx) ====
 +
 
 +
Another solution is to install [[GRUB]]. Edit {{ic|/tmp/install/boot/grub/grub.cfg}} and edit the boot entry to load linux-mainline instead of the normal one. You might want to append {{ic|nomodeset}} to the kernel line again, at least for now.
 +
 
 +
Now cd into {{ic|/tmp/install/}} and create the GRUB image by calling:
 +
grub-mkstandalone -o bootx64.efi -d usr/lib/grub/x86_64-efi -O x86_64-efi -C xz boot/grub/grub.cfg
 +
This will create file called {{ic|boot64.efi}} which contains GRUB and the config file incorporated inside. It is important to {{ic|cd}} into the right directory to make it pick up the config file and put it into the right place within the image.
 +
 
 +
Copy this file to the mac EFI partition. Downside of this method is that you need to repeat this step whenever you want to change the GRUB config. Reboot the machine and you should be able to select your installed Arch Linux by keeping the alt button pressed, it should appear as {{ic|EFI boot}}.
 +
 
 +
To generate a nicer config use: {{ic|grub-mkconfig}}, (add in {{ic|nomodeset}} if you are using framebuffer), remove {{ic|quiet}} if you like the text, then to update your grub post installation do this to make the grub efi and put it in the EFI partition:
 +
cd /
 +
grub-mkstandalone -o bootx64.efi -d usr/lib/grub/x86_64-efi -O x86_64-efi -C xz boot/grub/grub.cfg
 +
sudo mount /dev/sda1 /mnt
 +
sudo cp bootx64.efi /mnt/EFI/boot/bootx64.efi
 +
 
 +
== Post installation ==
 +
=== Graphics ===
 +
* intel does not work, use framebuffer instead for now, {{ic|xf86-video-fbdev}}
 +
* nvidia works (both 319.60 and 331.17 drivers)
 +
** follow http://cberner.com/2013/03/01/installing-ubuntu-13-04-on-macbook-pro-retina/
 +
 
 +
=== Sound ===
 +
* headphones work
 +
* speakers work from kernel 3.12
 +
 
 +
=== Touchpad ===
 +
One method is to install {{ic|xf86-input-synaptics}} and configure to your liking in {{ic|/etc/X11/xorg.conf.d/50-synaptics.conf}}:
 +
Section "InputClass"
 +
    MatchIsTouchpad "on"
 +
    Identifier      "touchpad catchall"
 +
    Driver          "synaptics"
 +
    # 1 = left, 2 = right, 3 = middle
 +
    Option          "TapButton1" "1" 
 +
    Option          "TapButton2" "3"
 +
    Option          "TapButton3" "2"
 +
    # Palm detection
 +
    Option          "IgnorePalm" "true"
 +
    # Horizontal scrolling
 +
    Option "HorizTwoFingerScroll" "1"
 +
    # Natural Scrolling (and speed)
 +
    Option "VertScrollDelta" "-100"
 +
    Option "HorizScrollDelta" "-100"
 +
EndSection
 +
 
 +
=== Keyboard Backlight ===
 +
* works, see https://wiki.archlinux.org/index.php/MacBook#Keyboard_Backlight
 +
 
 +
== What doesn't work (updated 7th November 2013) ==
 +
 
 +
=== General ===
 +
 
 +
=== Screen Backlight ===
 +
* stuck at default on intel (i'm guessing 50%)
 +
** {{ic|ls /sys/class/backlight}} returns nothing
 +
** xbacklight says {{ic|No outputs have backlight property}}
 +
* no backlight after suspend
 +
** use hibernate instead
 +
 
 +
=== Graphics ===
 +
* intel does not work yet
 +
** xf86-video-intel gives screen corruption, https://bugs.freedesktop.org/show_bug.cgi?id=71049
 +
 
 +
=== WiFi ===
 +
* broadcom-wl works
 +
** performance is low
 +
** stability is an issue for some
 +
 
 +
=== Webcam ===
 +
* not listed on lspci/usb
 +
 
 +
=== Optical Audio ===
 +
* unable to be turned off, ongoing discussion in https://bugzilla.kernel.org/show_bug.cgi?id=64401
 +
 
 +
== Discussions ==
 +
* https://bbs.archlinux.org/viewtopic.php?id=171883
 +
 
 +
== See Also ==
 +
* https://wiki.archlinux.org/index.php/MacBookPro10,x
 +
* https://wiki.archlinux.org/index.php/MacBook

Revision as of 22:12, 7 November 2013

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary wiki Template:Article summary end

Preparing for the Installation

Preparing the Hard drive

Assuming you want to dual boot with OSX (so you can firmware update), you have to shrink it's partition with Disk Utility. You can either create a HFS+ partition now to override later, or leave it empty.

Installation

Booting the live image

Now, download the latest Archboot iso, write it to USB and boot from it by selecting it in the Apple boot loader using hold alt on boot (use refit if you can't get manage to pick it). When it comes to the syslinux boot loader, press Tab to edit the entry and append nomodeset to fix screen corruption.

Internet

Note: You can skip this if you use the Thunderbolt or USB to ethernet adapter for the installation.

The installation

Note: Refer to the MacBook page if you don't want to have a separate partition for GRUB but rather prefer to use rEFInd (or rEFIt).

Run the installation wizard.

Bootloader

Direct EFI booting

See: UEFI_Bootloaders

As of August 2013, refind can autodetect the Arch kernel, removing the need for copying the kernel into the EFI partition. Simply install refind and enable the "scan_all_linux_kernels" and "also_scan_dirs" options in refind.conf (see link above for instructions.)

GRUB (with osx)

Another solution is to install GRUB. Edit /tmp/install/boot/grub/grub.cfg and edit the boot entry to load linux-mainline instead of the normal one. You might want to append nomodeset to the kernel line again, at least for now.

Now cd into /tmp/install/ and create the GRUB image by calling:

grub-mkstandalone -o bootx64.efi -d usr/lib/grub/x86_64-efi -O x86_64-efi -C xz boot/grub/grub.cfg

This will create file called boot64.efi which contains GRUB and the config file incorporated inside. It is important to cd into the right directory to make it pick up the config file and put it into the right place within the image.

Copy this file to the mac EFI partition. Downside of this method is that you need to repeat this step whenever you want to change the GRUB config. Reboot the machine and you should be able to select your installed Arch Linux by keeping the alt button pressed, it should appear as EFI boot.

To generate a nicer config use: grub-mkconfig, (add in nomodeset if you are using framebuffer), remove quiet if you like the text, then to update your grub post installation do this to make the grub efi and put it in the EFI partition:

cd /
grub-mkstandalone -o bootx64.efi -d usr/lib/grub/x86_64-efi -O x86_64-efi -C xz boot/grub/grub.cfg
sudo mount /dev/sda1 /mnt
sudo cp bootx64.efi /mnt/EFI/boot/bootx64.efi

Post installation

Graphics

Sound

  • headphones work
  • speakers work from kernel 3.12

Touchpad

One method is to install xf86-input-synaptics and configure to your liking in /etc/X11/xorg.conf.d/50-synaptics.conf:

Section "InputClass"
    MatchIsTouchpad "on"
    Identifier      "touchpad catchall"
    Driver          "synaptics"
    # 1 = left, 2 = right, 3 = middle
    Option          "TapButton1" "1"  
    Option          "TapButton2" "3"
    Option          "TapButton3" "2"
    # Palm detection
    Option          "IgnorePalm" "true"
    # Horizontal scrolling
    Option "HorizTwoFingerScroll" "1"
    # Natural Scrolling (and speed)
    Option "VertScrollDelta" "-100"
    Option "HorizScrollDelta" "-100"
EndSection

Keyboard Backlight

What doesn't work (updated 7th November 2013)

General

Screen Backlight

  • stuck at default on intel (i'm guessing 50%)
    • ls /sys/class/backlight returns nothing
    • xbacklight says No outputs have backlight property
  • no backlight after suspend
    • use hibernate instead

Graphics

WiFi

  • broadcom-wl works
    • performance is low
    • stability is an issue for some

Webcam

  • not listed on lspci/usb

Optical Audio

Discussions

See Also