Difference between revisions of "MacBookPro8,1/8,2/8,3 (2011)"

From ArchWiki
Jump to: navigation, search
m (For 3.2 Kernel:)
(For 3.2 Kernel:: No need to recompile the kernel. Just intall compat-wireless-patched and b43-firmware-latest packages instead.)
Line 38: Line 38:
 
====For 3.2 Kernel:====  
 
====For 3.2 Kernel:====  
  
The 3.2 Kernel now includes support for the broadcom 4331 wifi card in macbook pros but it is disabled in Arch's default build. You'll need to compile your own kernel as described in [https://wiki.archlinux.org/index.php/Kernel_Compilation/Arch_Build_System Kernel Compilation/Arch Build System ].  
+
Install compat-wireless-patched and b43-firmware-latest packages from AUR. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.
  
Change the config file like this:
+
{{bc|yaourt -S compat-wireless-patched b43-firmware-latest}}
  
  --- config.x86_64    2012-01-17 10:17:20.579420331 -0500
 
  +++ .config    2012-01-17 10:22:49.140315089 -0500
 
  @@ -2152,11 +2152,13 @@
 
  CONFIG_ATH6KL=m
 
  # CONFIG_ATH6KL_DEBUG is not set
 
  CONFIG_B43=m
 
  +CONFIG_B43_BCMA=y
 
  CONFIG_B43_SSB=y
 
  CONFIG_B43_PCI_AUTOSELECT=y
 
  CONFIG_B43_PCICORE_AUTOSELECT=y
 
  CONFIG_B43_PCMCIA=y
 
  CONFIG_B43_SDIO=y
 
  +CONFIG_B43_BCMA_PIO=y
 
  CONFIG_B43_PIO=y
 
  CONFIG_B43_PHY_N=y
 
  CONFIG_B43_PHY_LP=y
 
  @@ -2176,7 +2178,6 @@
 
  # CONFIG_B43LEGACY_DMA_MODE is not set
 
  # CONFIG_B43LEGACY_PIO_MODE is not set
 
  CONFIG_BRCMUTIL=m
 
  -CONFIG_BRCMSMAC=m
 
  CONFIG_BRCMFMAC=m
 
  # CONFIG_BRCMDBG is not set
 
  CONFIG_HOSTAP=m
 
  @@ -3165,7 +3166,11 @@
 
  #
 
  # Broadcom specific AMBA
 
  #
 
  -# CONFIG_BCMA is not set
 
  +CONFIG_BCMA=m
 
  +CONFIG_BCMA_BLOCKIO=y
 
  +CONFIG_BCMA_HOST_PCI_POSSIBLE=y
 
  +CONFIG_BCMA_HOST_PCI=y
 
  +# CONFIG_BCMA_DEBUG is not set
 
  #
 
  # Multifunction device drivers
 
  
And install [http://aur.archlinux.org/packages.php?ID=21690 b43-firmware]
+
Unload bcma module and load b43 module
  
(Taken from [https://bbs.archlinux.org/viewtopic.php?id=133734 this forum thread])
+
{{bc|
 +
$ sudo rmmod bcma
 +
$ sudo modprobe b43}}
 +
 
 +
That's it. The wireless should work now.
  
 
'''Ethernet''': works out-of-the-box
 
'''Ethernet''': works out-of-the-box

Revision as of 23:13, 22 February 2012

discuss at https://bbs.archlinux.org/viewtopic.php?pid=1021706

Installation CD

use latest version in http://releng.archlinux.org/isos/

Network

Wireless:

For 3.1 Kernel:

install b43-firmware-latest from AUR.

download the latest package from http://linuxwireless.org/download/compat-wireless-2.6/

 $ cd compat-wireless-2011-10-09 
 $ scripts/driver-select b43
 $ make 
 $ sudo make install
 $ sudo make wlunload
 $ sudo rmmod bcma 
 $ modprobe b43
 # it should works.

add 'blacklist bcma' to '/etc/modprobe.d/modprobe.conf'

Note that after every kernel update you will have to recompile the module for the new kernel:

 $ cd compat-wireless-2011-10-09
 $ make clean
 $ make
 $ sudo make install

more see https://bbs.archlinux.org/viewtopic.php?id=129849

For 3.2 Kernel:

Install compat-wireless-patched and b43-firmware-latest packages from AUR. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.

yaourt -S compat-wireless-patched b43-firmware-latest


Unload bcma module and load b43 module

$ sudo rmmod bcma
$ sudo modprobe b43

That's it. The wireless should work now.

Ethernet: works out-of-the-box

Bluetooth: Unkown

Keyboard & TouchPad

Keyboard:

default F1 key represents XF86MonBrightnessDown, if you want it represents to F1.

 echo 2 > /sys/module/hid_apple/parameters/fnmode
 # value 1: F1 is XF86MonBrightnessDown
 # value 2: F1 is F1, Fn + F1 is XF86MonBrightnessDown.

and put that into /etc/rc.local

Touchpad:

Two finger scrolling and left-click works out of the box. Unfortunately the right-click is not functional.

To enable most of the multitouch touchpad features (even right and middle clik) use mtrack, which is avaible in AUR. The configuration is done via the /etc/X11/xorg.conf.d/10-mtrack.conf file. Check if the mtrack module is properly loaded in the /var/log/Xorg.0.log file. Sometimes xorg loads other drivers before, like eg. synpatics, and the mtrack driver is not used at all.

Video & Screen

13-inch

Intel HD Graphics 3000: works with xf86-video-intel

Adjust Brightness: works with xorg-xbacklight For example:

xbacklight -inc 7 # increase brightness
xbacklight -dec 7 # decrease brightness

15-inch and 17-inch

AMD Radeon HD 6490M: Unknown

AMD Radeon HD 6750M: works with xf86-video-ati

Adjust Brightness: boot into Mac OS X and change it, then boot back.

Sound

8,1 and 8,2

 $ alsamixer # unmute 'Front Speaker' and 'Surround Speaker'

Suspend & Hibernate

8,1

For s2ram install uswsusp-git and add to file /etc/pm/config.d/module following content:

 SUSPEND_MODULES="bcma b43" 
 SLEEP_MODULE=uswsusp

Without this, system hangs after the machine wakes up and tries to reconnect to the wireless network.

HFS+

HFS is mounted as Read-Only. By turning journaling off in OS X, the HFS+ file system will be read/write under Linux.

Bluetooth

I had problems pairing devices, nothing was detected with

 hcitool scan

There seems to be a conflict between the bluetooth module and the b43 one (wifi), as written in this blog post. The solution is to do the following:

 # rmmod b43

pair your bluetooth device

 # modprobe b43

Alternative solution

Create /etc/modprobe.d/b43.conf with the following content:

options b43 btcoex=0

Others that works-out-of-the-box

  • Webcam
  • Sensors