https://wiki.archlinux.org/api.php?action=feedcontributions&user=Radiomist&feedformat=atomArchWiki - User contributions [en]2024-03-28T22:19:42ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=MacBookPro8,x&diff=195432MacBookPro8,x2012-04-20T17:00:41Z<p>Radiomist: /* Efi Booting without bootmanager (Efistub) */</p>
<hr />
<div>[[Category:Apple (English)]]<br />
discuss at https://bbs.archlinux.org/viewtopic.php?pid=1021706<br />
<br />
== Installation CD == <br />
<br />
use latest version in http://releng.archlinux.org/isos/<br />
<br />
== Network == <br />
<br />
===Wireless:=== <br />
<br />
====For 3.1 Kernel:==== <br />
<br />
Install {{aur|b43-firmware-latest}} from the [[AUR]].<br />
<br />
download the latest package from http://linuxwireless.org/download/compat-wireless-2.6/<br />
<br />
$ cd compat-wireless-2011-10-09 <br />
$ scripts/driver-select b43<br />
$ make <br />
$ sudo make install<br />
$ sudo make wlunload<br />
$ sudo rmmod bcma <br />
$ modprobe b43<br />
# it should works.<br />
<br />
add 'blacklist bcma' to '/etc/modprobe.d/modprobe.conf'<br />
<br />
Note that after every kernel update you will have to recompile the module for the new kernel:<br />
<br />
$ cd compat-wireless-2011-10-09<br />
$ make clean<br />
$ make<br />
$ sudo make install<br />
<br />
more see https://bbs.archlinux.org/viewtopic.php?id=129849<br />
<br />
====For 3.2 Kernel:==== <br />
<br />
Install {{aur|compat-wireless-patched}} and {{aur|b43-firmware-latest}} packages from the [[AUR]]. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.<br />
<br />
Unload bcma module and load b43 module<br />
<br />
{{bc|<br />
# rmmod bcma<br />
# modprobe b43}}<br />
That's it. The wireless should work now.<br />
<br />
====For 3.3 Kernel:==== <br />
<br />
Install {{aur|b43-firmware-latest}} package from the [[AUR]]. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.<br />
<br />
Unload b43 and bcma modules and load b43 module<br />
<br />
{{bc|<br />
# rmmod b43 bcma<br />
# modprobe b43}}<br />
That's it. The wireless should work now.<br />
<br />
'''Ethernet''': works out-of-the-box<br />
<br />
'''Bluetooth''': Unkown<br />
<br />
== Keyboard & TouchPad == <br />
<br />
'''Keyboard''': <br />
<br />
default F1 key represents XF86MonBrightnessDown, if you want it represents to F1.<br />
<br />
echo 2 > /sys/module/hid_apple/parameters/fnmode<br />
# value 1: F1 is XF86MonBrightnessDown<br />
# value 2: F1 is F1, Fn + F1 is XF86MonBrightnessDown.<br />
<br />
and put that into /etc/rc.local<br />
<br />
'''Touchpad''':<br />
<br />
Two finger scrolling and left-click works out of the box. Unfortunately the right-click is not functional.<br />
<br />
To enable most of the multitouch touchpad features (even right and middle clik) use [https://github.com/BlueDragonX/xf86-input-mtrack mtrack], which is avaible in [https://aur.archlinux.org/packages.php?ID=48505 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.<br />
<br />
== Video & Screen ==<br />
'''13-inch'''<br />
<br />
Intel HD Graphics 3000: works with xf86-video-intel<br />
<br />
Adjust Brightness: works with {{pkg|xorg-xbacklight}}<br />
For example:<br />
<br />
xbacklight -inc 7 # increase brightness<br />
xbacklight -dec 7 # decrease brightness<br />
<br />
'''15-inch and 17-inch'''<br />
<br />
AMD Radeon HD 6490M: Unknown<br />
<br />
AMD Radeon HD 6750M: works with xf86-video-ati<br />
<br />
Adjust Brightness: install AUR package {{aur|apple-bl-gmux}} and reboot system.<br />
<br />
$ echo 34839 | sudo tee /sys/class/backlight/gmux_backlight/brightness<br />
<br />
== Sound ==<br />
<br />
'''8,1 and 8,2'''<br />
<br />
$ alsamixer # unmute 'Front Speaker' and 'Surround Speaker'<br />
<br />
== Suspend & Hibernate == <br />
<br />
'''8,1'''<br />
<br />
For s2ram install [https://aur.archlinux.org/packages.php?ID=44473 uswsusp-git] and add to file /etc/pm/config.d/module following content:<br />
<br />
SUSPEND_MODULES="bcma b43" <br />
SLEEP_MODULE=uswsusp<br />
<br />
Without this, system hangs after the machine wakes up and tries to reconnect to the wireless network.<br />
<br />
== HFS+ ==<br />
<br />
HFS is mounted as Read-Only. By [http://support.apple.com/kb/ht2355 turning journaling off] in OS X, the HFS+ file system will be read/write under Linux.<br />
<br />
== Bluetooth ==<br />
<br />
I had problems pairing devices, nothing was detected with<br />
<br />
hcitool scan<br />
<br />
There seems to be a conflict between the bluetooth module and the b43 one (wifi), as written in [http://blog.tkassembled.com/188/macbook-pro-83-bluetooth-issues-on-linux/ this blog post]. The solution is to do the following:<br />
<br />
# rmmod b43<br />
pair your bluetooth device<br />
# modprobe b43<br />
<br />
=== Alternative solution ===<br />
<br />
Create {{ic|/etc/modprobe.d/b43.conf}} with the following content:<br />
{{bc|1=options b43 btcoex=0}}<br />
<br />
== Webcam ==<br />
<br />
In order to use your webcam you need to have permission to use /dev/video0. <br />
# gpasswd -a <username> video<br />
<br />
Test to see if it works<br />
$ mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshot<br />
<br />
== Others that works-out-of-the-box ==<br />
<br />
* Sensors<br />
<br />
== Efi Booting without bootmanager (Efistub) ==<br />
<br />
<br />
(Tested on macbook pro 8.1)<br />
Since kernel 3.2, linux kernel can be booted as an efi binary from macbook firmware<br />
Forum thread: [https://bbs.archlinux.org/viewtopic.php?id=136833&p=1]<br />
<br />
''' Install Efibootmgr '''<br />
<br />
# pacman -S efibootmgr<br />
<br />
<br />
''' Mount Efi partition '''<br />
<br />
# mkdir /mnt/efi<br />
# mount /dev/sda1 /mnt/efi<br />
<br />
''' Copy linux kernel to Efi Partition '''<br />
<br />
# mkdir -p /mnt/efi/efi/boot<br />
# cp /boot/vmlinuz-linux /mnt/efi/efi/boot/bootx64.efi<br />
# cp /boot/initramfs-linux.img /mnt/efi/efi/boot<br />
# cp /boot/initramfs-linux-fallback.img /mnt/efi/efi/boot<br />
<br />
''' Add Archlinux-fallback entry to firmware '''<br />
<br />
# echo "initrd=\efi\boot\initramfs-linux-fallback.img add_efi_memmap root=/dev/disk/by-label/ArchLinux ro quiet i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 usbcore.autosuspend=1 hpet=force" | iconv -f ascii -t ucs2 | efibootmgr --create --gpt --disk /dev/sda --part 1 --label "Archlinux Fallback" --loader '\efi\boot\bootx64.efi' --append-binary-args -<br />
<br />
<br />
''' Add Archlinux entry to firmware '''<br />
<br />
# echo "initrd=\efi\boot\initramfs-linux.img add_efi_memmap root=/dev/disk/by-label/ArchLinux ro quiet i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 usbcore.autosuspend=1 hpet=force" | iconv -f ascii -t ucs2 | efibootmgr --create --gpt --disk /dev/sda --part 1 --label "Archlinux" --loader '\efi\boot\bootx64.efi' --append-binary-args</div>Radiomisthttps://wiki.archlinux.org/index.php?title=MacBookPro8,x&diff=195431MacBookPro8,x2012-04-20T16:59:13Z<p>Radiomist: /* Efi Booting without bootmanager (Efistub) */</p>
<hr />
<div>[[Category:Apple (English)]]<br />
discuss at https://bbs.archlinux.org/viewtopic.php?pid=1021706<br />
<br />
== Installation CD == <br />
<br />
use latest version in http://releng.archlinux.org/isos/<br />
<br />
== Network == <br />
<br />
===Wireless:=== <br />
<br />
====For 3.1 Kernel:==== <br />
<br />
Install {{aur|b43-firmware-latest}} from the [[AUR]].<br />
<br />
download the latest package from http://linuxwireless.org/download/compat-wireless-2.6/<br />
<br />
$ cd compat-wireless-2011-10-09 <br />
$ scripts/driver-select b43<br />
$ make <br />
$ sudo make install<br />
$ sudo make wlunload<br />
$ sudo rmmod bcma <br />
$ modprobe b43<br />
# it should works.<br />
<br />
add 'blacklist bcma' to '/etc/modprobe.d/modprobe.conf'<br />
<br />
Note that after every kernel update you will have to recompile the module for the new kernel:<br />
<br />
$ cd compat-wireless-2011-10-09<br />
$ make clean<br />
$ make<br />
$ sudo make install<br />
<br />
more see https://bbs.archlinux.org/viewtopic.php?id=129849<br />
<br />
====For 3.2 Kernel:==== <br />
<br />
Install {{aur|compat-wireless-patched}} and {{aur|b43-firmware-latest}} packages from the [[AUR]]. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.<br />
<br />
Unload bcma module and load b43 module<br />
<br />
{{bc|<br />
# rmmod bcma<br />
# modprobe b43}}<br />
That's it. The wireless should work now.<br />
<br />
====For 3.3 Kernel:==== <br />
<br />
Install {{aur|b43-firmware-latest}} package from the [[AUR]]. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.<br />
<br />
Unload b43 and bcma modules and load b43 module<br />
<br />
{{bc|<br />
# rmmod b43 bcma<br />
# modprobe b43}}<br />
That's it. The wireless should work now.<br />
<br />
'''Ethernet''': works out-of-the-box<br />
<br />
'''Bluetooth''': Unkown<br />
<br />
== Keyboard & TouchPad == <br />
<br />
'''Keyboard''': <br />
<br />
default F1 key represents XF86MonBrightnessDown, if you want it represents to F1.<br />
<br />
echo 2 > /sys/module/hid_apple/parameters/fnmode<br />
# value 1: F1 is XF86MonBrightnessDown<br />
# value 2: F1 is F1, Fn + F1 is XF86MonBrightnessDown.<br />
<br />
and put that into /etc/rc.local<br />
<br />
'''Touchpad''':<br />
<br />
Two finger scrolling and left-click works out of the box. Unfortunately the right-click is not functional.<br />
<br />
To enable most of the multitouch touchpad features (even right and middle clik) use [https://github.com/BlueDragonX/xf86-input-mtrack mtrack], which is avaible in [https://aur.archlinux.org/packages.php?ID=48505 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.<br />
<br />
== Video & Screen ==<br />
'''13-inch'''<br />
<br />
Intel HD Graphics 3000: works with xf86-video-intel<br />
<br />
Adjust Brightness: works with {{pkg|xorg-xbacklight}}<br />
For example:<br />
<br />
xbacklight -inc 7 # increase brightness<br />
xbacklight -dec 7 # decrease brightness<br />
<br />
'''15-inch and 17-inch'''<br />
<br />
AMD Radeon HD 6490M: Unknown<br />
<br />
AMD Radeon HD 6750M: works with xf86-video-ati<br />
<br />
Adjust Brightness: install AUR package {{aur|apple-bl-gmux}} and reboot system.<br />
<br />
$ echo 34839 | sudo tee /sys/class/backlight/gmux_backlight/brightness<br />
<br />
== Sound ==<br />
<br />
'''8,1 and 8,2'''<br />
<br />
$ alsamixer # unmute 'Front Speaker' and 'Surround Speaker'<br />
<br />
== Suspend & Hibernate == <br />
<br />
'''8,1'''<br />
<br />
For s2ram install [https://aur.archlinux.org/packages.php?ID=44473 uswsusp-git] and add to file /etc/pm/config.d/module following content:<br />
<br />
SUSPEND_MODULES="bcma b43" <br />
SLEEP_MODULE=uswsusp<br />
<br />
Without this, system hangs after the machine wakes up and tries to reconnect to the wireless network.<br />
<br />
== HFS+ ==<br />
<br />
HFS is mounted as Read-Only. By [http://support.apple.com/kb/ht2355 turning journaling off] in OS X, the HFS+ file system will be read/write under Linux.<br />
<br />
== Bluetooth ==<br />
<br />
I had problems pairing devices, nothing was detected with<br />
<br />
hcitool scan<br />
<br />
There seems to be a conflict between the bluetooth module and the b43 one (wifi), as written in [http://blog.tkassembled.com/188/macbook-pro-83-bluetooth-issues-on-linux/ this blog post]. The solution is to do the following:<br />
<br />
# rmmod b43<br />
pair your bluetooth device<br />
# modprobe b43<br />
<br />
=== Alternative solution ===<br />
<br />
Create {{ic|/etc/modprobe.d/b43.conf}} with the following content:<br />
{{bc|1=options b43 btcoex=0}}<br />
<br />
== Webcam ==<br />
<br />
In order to use your webcam you need to have permission to use /dev/video0. <br />
# gpasswd -a <username> video<br />
<br />
Test to see if it works<br />
$ mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshot<br />
<br />
== Others that works-out-of-the-box ==<br />
<br />
* Sensors<br />
<br />
== Efi Booting without bootmanager (Efistub) ==<br />
<br />
<br />
Since kernel 3.2, linux kernel can be booted as an efi binary from macbook firmware<br />
Forum thread: [https://bbs.archlinux.org/viewtopic.php?id=136833&p=1]<br />
<br />
''' Install Efibootmgr '''<br />
<br />
# pacman -S efibootmgr<br />
<br />
<br />
''' Mount Efi partition '''<br />
<br />
# mkdir /mnt/efi<br />
# mount /dev/sda1 /mnt/efi<br />
<br />
''' Copy linux kernel to Efi Partition '''<br />
<br />
# mkdir -p /mnt/efi/efi/boot<br />
# cp /boot/vmlinuz-linux /mnt/efi/efi/boot/bootx64.efi<br />
# cp /boot/initramfs-linux.img /mnt/efi/efi/boot<br />
# cp /boot/initramfs-linux-fallback.img /mnt/efi/efi/boot<br />
<br />
''' Add Archlinux-fallback entry to firmware '''<br />
<br />
# echo "initrd=\efi\boot\initramfs-linux-fallback.img add_efi_memmap root=/dev/disk/by-label/ArchLinux ro quiet i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 usbcore.autosuspend=1 hpet=force" | iconv -f ascii -t ucs2 | efibootmgr --create --gpt --disk /dev/sda --part 1 --label "Archlinux Fallback" --loader '\efi\boot\bootx64.efi' --append-binary-args -<br />
<br />
<br />
''' Add Archlinux entry to firmware '''<br />
<br />
# echo "initrd=\efi\boot\initramfs-linux.img add_efi_memmap root=/dev/disk/by-label/ArchLinux ro quiet i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 usbcore.autosuspend=1 hpet=force" | iconv -f ascii -t ucs2 | efibootmgr --create --gpt --disk /dev/sda --part 1 --label "Archlinux" --loader '\efi\boot\bootx64.efi' --append-binary-args</div>Radiomisthttps://wiki.archlinux.org/index.php?title=MacBookPro8,x&diff=195428MacBookPro8,x2012-04-20T16:58:22Z<p>Radiomist: </p>
<hr />
<div>[[Category:Apple (English)]]<br />
discuss at https://bbs.archlinux.org/viewtopic.php?pid=1021706<br />
<br />
== Installation CD == <br />
<br />
use latest version in http://releng.archlinux.org/isos/<br />
<br />
== Network == <br />
<br />
===Wireless:=== <br />
<br />
====For 3.1 Kernel:==== <br />
<br />
Install {{aur|b43-firmware-latest}} from the [[AUR]].<br />
<br />
download the latest package from http://linuxwireless.org/download/compat-wireless-2.6/<br />
<br />
$ cd compat-wireless-2011-10-09 <br />
$ scripts/driver-select b43<br />
$ make <br />
$ sudo make install<br />
$ sudo make wlunload<br />
$ sudo rmmod bcma <br />
$ modprobe b43<br />
# it should works.<br />
<br />
add 'blacklist bcma' to '/etc/modprobe.d/modprobe.conf'<br />
<br />
Note that after every kernel update you will have to recompile the module for the new kernel:<br />
<br />
$ cd compat-wireless-2011-10-09<br />
$ make clean<br />
$ make<br />
$ sudo make install<br />
<br />
more see https://bbs.archlinux.org/viewtopic.php?id=129849<br />
<br />
====For 3.2 Kernel:==== <br />
<br />
Install {{aur|compat-wireless-patched}} and {{aur|b43-firmware-latest}} packages from the [[AUR]]. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.<br />
<br />
Unload bcma module and load b43 module<br />
<br />
{{bc|<br />
# rmmod bcma<br />
# modprobe b43}}<br />
That's it. The wireless should work now.<br />
<br />
====For 3.3 Kernel:==== <br />
<br />
Install {{aur|b43-firmware-latest}} package from the [[AUR]]. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.<br />
<br />
Unload b43 and bcma modules and load b43 module<br />
<br />
{{bc|<br />
# rmmod b43 bcma<br />
# modprobe b43}}<br />
That's it. The wireless should work now.<br />
<br />
'''Ethernet''': works out-of-the-box<br />
<br />
'''Bluetooth''': Unkown<br />
<br />
== Keyboard & TouchPad == <br />
<br />
'''Keyboard''': <br />
<br />
default F1 key represents XF86MonBrightnessDown, if you want it represents to F1.<br />
<br />
echo 2 > /sys/module/hid_apple/parameters/fnmode<br />
# value 1: F1 is XF86MonBrightnessDown<br />
# value 2: F1 is F1, Fn + F1 is XF86MonBrightnessDown.<br />
<br />
and put that into /etc/rc.local<br />
<br />
'''Touchpad''':<br />
<br />
Two finger scrolling and left-click works out of the box. Unfortunately the right-click is not functional.<br />
<br />
To enable most of the multitouch touchpad features (even right and middle clik) use [https://github.com/BlueDragonX/xf86-input-mtrack mtrack], which is avaible in [https://aur.archlinux.org/packages.php?ID=48505 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.<br />
<br />
== Video & Screen ==<br />
'''13-inch'''<br />
<br />
Intel HD Graphics 3000: works with xf86-video-intel<br />
<br />
Adjust Brightness: works with {{pkg|xorg-xbacklight}}<br />
For example:<br />
<br />
xbacklight -inc 7 # increase brightness<br />
xbacklight -dec 7 # decrease brightness<br />
<br />
'''15-inch and 17-inch'''<br />
<br />
AMD Radeon HD 6490M: Unknown<br />
<br />
AMD Radeon HD 6750M: works with xf86-video-ati<br />
<br />
Adjust Brightness: install AUR package {{aur|apple-bl-gmux}} and reboot system.<br />
<br />
$ echo 34839 | sudo tee /sys/class/backlight/gmux_backlight/brightness<br />
<br />
== Sound ==<br />
<br />
'''8,1 and 8,2'''<br />
<br />
$ alsamixer # unmute 'Front Speaker' and 'Surround Speaker'<br />
<br />
== Suspend & Hibernate == <br />
<br />
'''8,1'''<br />
<br />
For s2ram install [https://aur.archlinux.org/packages.php?ID=44473 uswsusp-git] and add to file /etc/pm/config.d/module following content:<br />
<br />
SUSPEND_MODULES="bcma b43" <br />
SLEEP_MODULE=uswsusp<br />
<br />
Without this, system hangs after the machine wakes up and tries to reconnect to the wireless network.<br />
<br />
== HFS+ ==<br />
<br />
HFS is mounted as Read-Only. By [http://support.apple.com/kb/ht2355 turning journaling off] in OS X, the HFS+ file system will be read/write under Linux.<br />
<br />
== Bluetooth ==<br />
<br />
I had problems pairing devices, nothing was detected with<br />
<br />
hcitool scan<br />
<br />
There seems to be a conflict between the bluetooth module and the b43 one (wifi), as written in [http://blog.tkassembled.com/188/macbook-pro-83-bluetooth-issues-on-linux/ this blog post]. The solution is to do the following:<br />
<br />
# rmmod b43<br />
pair your bluetooth device<br />
# modprobe b43<br />
<br />
=== Alternative solution ===<br />
<br />
Create {{ic|/etc/modprobe.d/b43.conf}} with the following content:<br />
{{bc|1=options b43 btcoex=0}}<br />
<br />
== Webcam ==<br />
<br />
In order to use your webcam you need to have permission to use /dev/video0. <br />
# gpasswd -a <username> video<br />
<br />
Test to see if it works<br />
$ mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshot<br />
<br />
== Others that works-out-of-the-box ==<br />
<br />
* Sensors<br />
<br />
== Efi Booting without bootmanager (Efistub) ==<br />
<br />
----<br />
<br />
<br />
Since kernel 3.2, linux kernel can be booted as an efi binary from macbook firmware<br />
Forum thread: [https://bbs.archlinux.org/viewtopic.php?id=136833&p=1]<br />
<br />
''' Install Efibootmgr '''<br />
<br />
# pacman -S efibootmgr<br />
<br />
<br />
''' Mount Efi partition '''<br />
<br />
# mkdir /mnt/efi<br />
# mount /dev/sda1 /mnt/efi<br />
<br />
''' Copy linux kernel to Efi Partition '''<br />
<br />
# mkdir -p /mnt/efi/efi/boot<br />
# cp /boot/vmlinuz-linux /mnt/efi/efi/boot/bootx64.efi<br />
# cp /boot/initramfs-linux.img /mnt/efi/efi/boot<br />
# cp /boot/initramfs-linux-fallback.img /mnt/efi/efi/boot<br />
<br />
''' Add Archlinux-fallback entry to firmware '''<br />
<br />
# echo "initrd=\efi\boot\initramfs-linux-fallback.img add_efi_memmap root=/dev/disk/by-label/ArchLinux ro quiet i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 usbcore.autosuspend=1 hpet=force" | iconv -f ascii -t ucs2 | efibootmgr --create --gpt --disk /dev/sda --part 1 --label "Archlinux Fallback" --loader '\efi\boot\bootx64.efi' --append-binary-args -<br />
<br />
<br />
''' Add Archlinux entry to firmware '''<br />
<br />
# echo "initrd=\efi\boot\initramfs-linux.img add_efi_memmap root=/dev/disk/by-label/ArchLinux ro quiet i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 usbcore.autosuspend=1 hpet=force" | iconv -f ascii -t ucs2 | efibootmgr --create --gpt --disk /dev/sda --part 1 --label "Archlinux" --loader '\efi\boot\bootx64.efi' --append-binary-args</div>Radiomisthttps://wiki.archlinux.org/index.php?title=MacBookPro8,x&diff=195427MacBookPro8,x2012-04-20T16:56:29Z<p>Radiomist: </p>
<hr />
<div>[[Category:Apple (English)]]<br />
discuss at https://bbs.archlinux.org/viewtopic.php?pid=1021706<br />
<br />
== Installation CD == <br />
<br />
use latest version in http://releng.archlinux.org/isos/<br />
<br />
== Network == <br />
<br />
===Wireless:=== <br />
<br />
====For 3.1 Kernel:==== <br />
<br />
Install {{aur|b43-firmware-latest}} from the [[AUR]].<br />
<br />
download the latest package from http://linuxwireless.org/download/compat-wireless-2.6/<br />
<br />
$ cd compat-wireless-2011-10-09 <br />
$ scripts/driver-select b43<br />
$ make <br />
$ sudo make install<br />
$ sudo make wlunload<br />
$ sudo rmmod bcma <br />
$ modprobe b43<br />
# it should works.<br />
<br />
add 'blacklist bcma' to '/etc/modprobe.d/modprobe.conf'<br />
<br />
Note that after every kernel update you will have to recompile the module for the new kernel:<br />
<br />
$ cd compat-wireless-2011-10-09<br />
$ make clean<br />
$ make<br />
$ sudo make install<br />
<br />
more see https://bbs.archlinux.org/viewtopic.php?id=129849<br />
<br />
====For 3.2 Kernel:==== <br />
<br />
Install {{aur|compat-wireless-patched}} and {{aur|b43-firmware-latest}} packages from the [[AUR]]. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.<br />
<br />
Unload bcma module and load b43 module<br />
<br />
{{bc|<br />
# rmmod bcma<br />
# modprobe b43}}<br />
That's it. The wireless should work now.<br />
<br />
====For 3.3 Kernel:==== <br />
<br />
Install {{aur|b43-firmware-latest}} package from the [[AUR]]. Note that b43-firmware-latest depends on 'linux<3.2', so change that to read 'linux>3.2' in the PKGBUILD.<br />
<br />
Unload b43 and bcma modules and load b43 module<br />
<br />
{{bc|<br />
# rmmod b43 bcma<br />
# modprobe b43}}<br />
That's it. The wireless should work now.<br />
<br />
'''Ethernet''': works out-of-the-box<br />
<br />
'''Bluetooth''': Unkown<br />
<br />
== Keyboard & TouchPad == <br />
<br />
'''Keyboard''': <br />
<br />
default F1 key represents XF86MonBrightnessDown, if you want it represents to F1.<br />
<br />
echo 2 > /sys/module/hid_apple/parameters/fnmode<br />
# value 1: F1 is XF86MonBrightnessDown<br />
# value 2: F1 is F1, Fn + F1 is XF86MonBrightnessDown.<br />
<br />
and put that into /etc/rc.local<br />
<br />
'''Touchpad''':<br />
<br />
Two finger scrolling and left-click works out of the box. Unfortunately the right-click is not functional.<br />
<br />
To enable most of the multitouch touchpad features (even right and middle clik) use [https://github.com/BlueDragonX/xf86-input-mtrack mtrack], which is avaible in [https://aur.archlinux.org/packages.php?ID=48505 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.<br />
<br />
== Video & Screen ==<br />
'''13-inch'''<br />
<br />
Intel HD Graphics 3000: works with xf86-video-intel<br />
<br />
Adjust Brightness: works with {{pkg|xorg-xbacklight}}<br />
For example:<br />
<br />
xbacklight -inc 7 # increase brightness<br />
xbacklight -dec 7 # decrease brightness<br />
<br />
'''15-inch and 17-inch'''<br />
<br />
AMD Radeon HD 6490M: Unknown<br />
<br />
AMD Radeon HD 6750M: works with xf86-video-ati<br />
<br />
Adjust Brightness: install AUR package {{aur|apple-bl-gmux}} and reboot system.<br />
<br />
$ echo 34839 | sudo tee /sys/class/backlight/gmux_backlight/brightness<br />
<br />
== Sound ==<br />
<br />
'''8,1 and 8,2'''<br />
<br />
$ alsamixer # unmute 'Front Speaker' and 'Surround Speaker'<br />
<br />
== Suspend & Hibernate == <br />
<br />
'''8,1'''<br />
<br />
For s2ram install [https://aur.archlinux.org/packages.php?ID=44473 uswsusp-git] and add to file /etc/pm/config.d/module following content:<br />
<br />
SUSPEND_MODULES="bcma b43" <br />
SLEEP_MODULE=uswsusp<br />
<br />
Without this, system hangs after the machine wakes up and tries to reconnect to the wireless network.<br />
<br />
== HFS+ ==<br />
<br />
HFS is mounted as Read-Only. By [http://support.apple.com/kb/ht2355 turning journaling off] in OS X, the HFS+ file system will be read/write under Linux.<br />
<br />
== Bluetooth ==<br />
<br />
I had problems pairing devices, nothing was detected with<br />
<br />
hcitool scan<br />
<br />
There seems to be a conflict between the bluetooth module and the b43 one (wifi), as written in [http://blog.tkassembled.com/188/macbook-pro-83-bluetooth-issues-on-linux/ this blog post]. The solution is to do the following:<br />
<br />
# rmmod b43<br />
pair your bluetooth device<br />
# modprobe b43<br />
<br />
=== Alternative solution ===<br />
<br />
Create {{ic|/etc/modprobe.d/b43.conf}} with the following content:<br />
{{bc|1=options b43 btcoex=0}}<br />
<br />
== Webcam ==<br />
<br />
In order to use your webcam you need to have permission to use /dev/video0. <br />
# gpasswd -a <username> video<br />
<br />
Test to see if it works<br />
$ mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 -fps 15 -vf screenshot<br />
<br />
== Others that works-out-of-the-box ==<br />
<br />
* Sensors<br />
<br />
== Efi Booting without bootmanager (Efistub) ==<br />
<br />
Since kernel 3.2, linux kernel can be booted as an efi binary from macbook firmware<br />
Forum thread: https://bbs.archlinux.org/viewtopic.php?id=136833&p=1<br />
<br />
''' Install Efibootmgr '''<br />
<br />
# pacman -S efibootmgr<br />
<br />
<br />
''' Mount Efi partition '''<br />
<br />
# mkdir /mnt/efi<br />
# mount /dev/sda1 /mnt/efi<br />
<br />
''' Copy linux kernel to Efi Partition '''<br />
<br />
# mkdir -p /mnt/efi/efi/boot<br />
# cp /boot/vmlinuz-linux /mnt/efi/efi/boot/bootx64.efi<br />
# cp /boot/initramfs-linux.img /mnt/efi/efi/boot<br />
# cp /boot/initramfs-linux-fallback.img /mnt/efi/efi/boot<br />
<br />
''' Add Archlinux-fallback entry to firmware '''<br />
<br />
# echo "initrd=\efi\boot\initramfs-linux-fallback.img add_efi_memmap root=/dev/disk/by-label/ArchLinux ro quiet i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 usbcore.autosuspend=1 hpet=force" | iconv -f ascii -t ucs2 | efibootmgr --create --gpt --disk /dev/sda --part 1 --label "Archlinux Fallback" --loader '\efi\boot\bootx64.efi' --append-binary-args -<br />
<br />
<br />
''' Add Archlinux entry to firmware '''<br />
<br />
# echo "initrd=\efi\boot\initramfs-linux.img add_efi_memmap root=/dev/disk/by-label/ArchLinux ro quiet i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 usbcore.autosuspend=1 hpet=force" | iconv -f ascii -t ucs2 | efibootmgr --create --gpt --disk /dev/sda --part 1 --label "Archlinux" --loader '\efi\boot\bootx64.efi' --append-binary-args</div>Radiomist