https://wiki.archlinux.org/api.php?action=feedcontributions&user=Lgbsneak&feedformat=atomArchWiki - User contributions [en]2024-03-28T10:06:11ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=MacBookPro&diff=36681MacBookPro2008-02-04T22:22:29Z<p>Lgbsneak: </p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:HOWTOs (English)]]<br />
== Installing Archlinux on MacbookPro ==<br />
<br />
These instructions could work for the most part for the regular MacBook.<br />
<br />
You will need Archlinux 0.8 alpha3 or newer at least since GRUB and the kernel will work fine from this version.<br />
<br />
=== Arch Only System ===<br />
To install Arch and replace OSX you need to change the partition table type in MacOSX from bootcamp. Download bootcamp, install and run. Change disk from GPT to MBR partition table.<br />
<br />
Reboot, hold down the "C" key to boot from CD.<br />
<br />
Install Arch as normal. Don't forget to set one partition as bootable.<br />
<br />
After install you need to configure a couple of things...<br />
<br />
=== Dual Boot (Arch & MacOSX) ===<br />
<br />
Two possibilities:<br />
<br />
- Install Bootcamp, resize the MacOSX partition<br /><br />
<br />
When Mac OS X installation is finished. Go on http://refit.sourceforge.net[http://refit.sourceforge.net] and download rEFIT (Mac disk image)<br />
<br />
To install rEFIT, mount the rEFIT.dmg file (it's automatic normally).<br /><br />
There is an other way (refer to rEFIT documentation) but you can open a terminal then you copy /Volumes/rEFIT/efi/ to /<br /><br />
<br />
First you have to be root or you can use sudo. If you want to be logged as root you have to set a password for the root user typing :<br /><br />
sudo passwd root<br />
<br />
To be logged as root :<br /><br />
su<br />
<br />
Then to copy the folder to / :<br /><br />
cp -r /Volumes/rEFIT/efi /<br />
<br />
To install rEFIT :<br /><br />
cd /efi/refit/<br /><br />
./enable.sh<br />
<br />
Now we can synchronized MBR with GPT partition table thanks to rEFIT so you restart your computer. You can see rEFIT, you press down key to access to the Partitioning Tool. You press y to accept.<br />
<br />
Put your archlinux CD in the CD-ROM drive first then restart the computer. You can press C to boot from the CD or you can choose it in the rEFIT menu.<br />
<br />
Now it's the typical archlinux installation.<br />
<br />
At the end of the installation DO NOT install the bootloader in the MBR, but in a partition (e.g. sda3)<br />
<br />
= Configuration =<br />
<br />
== rc.conf ==<br />
Make sure your "rc.conf" at least has the following modules:<br />
MODULES=(sky2 fglrx speedstep_centrino)<br />
<br />
For CPU scaling use the "powernowd" package.<br />
<br />
== Xorg ==<br />
Install:<br />
pacman -S ati-fglrx-utils<br />
<br />
You can see my xorg.conf here:<br />
http://wiki.archlinux.org/index.php?title=MacBookPro_xorgconf<br />
<br />
OR you can just make the necessary changes: (ADD these to your xorg.conf, dont replace)<br />
<br />
Configure Xorg using xorgconfig. Once done edit your "xorg.conf" and change the driver type to "fglrx".<br />
Section "Device"<br />
Driver "fglrx"<br />
EndSection <br />
<br />
Configure your keyboard: (make right "apple key" right ALT key)<br />
Section "InputDevice"<br />
Option "XkbOptions" "lv3:rwin_switch"<br />
EndSection<br />
<br />
Configure your trackpad:<br />
Section "InputDevice"<br />
Option "Protocol" "Auto"<br />
Option "MinSpeed" "1.0"<br />
Option "MaxSpeed" "1.0"<br />
EndSection<br />
<br />
OR you may want to use this, that emulates the MacOSX behaviour:<br />
<br />
Section "InputDevice"<br />
Identifier "Synaptics Touchpad"<br />
Driver "synaptics"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mouse1"<br />
Option "Protocol" "auto-dev"<br />
Option "LeftEdge" "60"<br />
Option "RightEdge" "900"<br />
Option "BottomEdge" "511"<br />
Option "HorizScrollDelta" "0"<br />
Option "MinSpeed" "0.4"<br />
Option "MaxSpeed" "1"<br />
Option "AccelFactor" "0.08"<br />
Option "MaxTapTime" "0"<br />
Option "TapButton1" "0"<br />
#Two Finger Scroll<br />
Option "VertTwoFingerScroll" "1"<br />
Option "HorizTwoFingerScroll" "1"<br />
EndSection<br />
<br />
<br />
<br />
Configure modules:<br />
Section "Module"<br />
Load "dbe" # Double buffer extension<br />
SubSection "extmod"<br />
Option "omit xfree86-dga" # don't initialise the DGA extension<br />
EndSubSection<br />
EndSection<br />
<br />
== Wireless ==<br />
The airport card in the newest MacBook (PCI-ID 168c:0024) is not yet supported by Madwifi. In short: Madwifi does not yet have a version of the (binary-only) HAL (hardware-abstraction layer) for the new chipset and ETA is unknown. Workaround: If your kernel is 32-bit, you can use ndiswrapper in combination with the 32-bit windows driver for the [http://www.dlink.com/products/support.asp?pid=489&sec=0 D-Link DWA-645]. <br />
It's ugly, but it works.<br />
<br />
Madwifi drivers work on my second generation MBP following [http://ubuntu-tutorials.com/2007/10/24/how-to-enable-wireless-networking-on-the-macbook-ubuntu-710/ these] instructions.<br />
<br />
== Pommed ==<br />
[http://technologeek.org/projects/pommed/ Pommed] handles the hotkeys and is able to adjusts the LCD backlight, sound volume, keyboard backlight or to eject the CD-ROM drive.<br />
<br />
Pommed is in [community], there is also a GUI built on GTK (gpomme)<br />
<br />
== Suspend ==<br />
Suspend works most of the time (occasionally it dosn't wake up) with the latest version of [[pm-utils]].<br />
<br />
sudo pacman -S pm-utils<br />
<br />
Run the following to test suspension. (Pressing the power button, plugging in a usb device, or closing/opening the lid will resume.)<br />
<br />
sudo pm-suspend<br />
<br />
To suspend on closing of laptop lid, make sure you have acpi, and acpid installed with pacman, and that the acpid daemon is running. Then edit /etc/acpi/handler.sh and change the "button/lid)" section to look like the following:<br />
<br />
button/lid)<br />
#echo "LID switched!">/dev/tty5<br />
if grep -q closed /proc/acpi/button/lid/LID0/state<br />
then pm-suspend<br />
fi<br />
;;<br />
<br />
Acpid calls the button/lid) section whenever the lid is opened or closed. If pm-suspend is just added to this section, it will suspend when the lid is opened, and when the lid is closed. Causing it to wake up, and then immediately suspend again when you open the lid. Checking to see if the lid is closed with grep and only running pm-suspend when the lid is closed fixes this issue.<br />
<br />
= TODO =<br />
I WILL get around to doing these! I promise! In the mean time I just put them here to remind me to do them.<br />
<br />
- make package for refit<br />
(EDIT: refit is actually in [community])<br />
<br />
- make section for isight</div>Lgbsneakhttps://wiki.archlinux.org/index.php?title=MacBookPro&diff=32516MacBookPro2007-11-18T19:22:36Z<p>Lgbsneak: </p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:HOWTOs (English)]]<br />
== Installing Archlinux on MacbookPro ==<br />
<br />
These instructions could work for the most part for the regular MacBook.<br />
<br />
You will need Archlinux 0.8 alpha3 or newer at least since GRUB and the kernel will work fine from this version.<br />
<br />
=== Arch Only System ===<br />
To install Arch and replace OSX you need to change the partition table type in MacOSX from bootcamp. Download bootcamp, install and run. Change disk from GPT to MBR partition table.<br />
<br />
Reboot, hold down the "C" key to boot from CD.<br />
<br />
Install Arch as normal. Don't forget to set one partition as bootable.<br />
<br />
After install you need to configure a couple of things...<br />
<br />
=== Dual Boot (Arch & MacOSX) ===<br />
<br />
Two possibilities:<br />
<br />
- Install Bootcamp, resize the MacOSX partition<br /><br />
<br />
When Mac OS X installation is finished. Go on http://refit.sourceforge.net[http://refit.sourceforge.net] and download rEFIT (Mac disk image)<br />
<br />
To install rEFIT, mount the rEFIT.dmg file (it's automatic normally).<br /><br />
There is an other way (refer to rEFIT documentation) but you can open a terminal then you copy /Volumes/rEFIT/efi/ to /<br /><br />
<br />
First you have to be root or you can use sudo. If you want to be logged as root you have to set a password for the root user typing :<br /><br />
sudo passwd root<br />
<br />
To be logged as root :<br /><br />
su<br />
<br />
Then to copy the folder to / :<br /><br />
cp -r /Volumes/rEFIT/efi /<br />
<br />
To install rEFIT :<br /><br />
cd /efi/refit/<br /><br />
./enable.sh<br />
<br />
Now we can synchronized MBR with GPT partition table thanks to rEFIT so you restart your computer. You can see rEFIT, you press down key to access to the Partitioning Tool. You press y to accept.<br />
<br />
Put your archlinux CD in the CD-ROM drive first then restart the computer. You can press C to boot from the CD or you can choose it in the rEFIT menu.<br />
<br />
Now it's the typical archlinux installation.<br />
<br />
At the end of the installation DO NOT install the bootloader in the MBR, but in a partition (e.g. sda3)<br />
<br />
= Configuration =<br />
<br />
== rc.conf ==<br />
Make sure your "rc.conf" at least has the following modules:<br />
MODULES=(sky2 fglrx speedstep_centrino)<br />
<br />
For CPU scaling use the "powernowd" package.<br />
<br />
== Xorg ==<br />
Install:<br />
pacman -S ati-fglrx-utils<br />
<br />
You can see my xorg.conf here:<br />
http://wiki.archlinux.org/index.php?title=MacBookPro_xorgconf<br />
<br />
OR you can just make the necessary changes: (ADD these to your xorg.conf, dont replace)<br />
<br />
Configure Xorg using xorgconfig. Once done edit your "xorg.conf" and change the driver type to "fglrx".<br />
Section "Device"<br />
Driver "fglrx"<br />
EndSection <br />
<br />
Configure your keyboard: (make right "apple key" right ALT key)<br />
Section "InputDevice"<br />
Option "XkbOptions" "lv3:rwin_switch"<br />
EndSection<br />
<br />
Configure your trackpad:<br />
Section "InputDevice"<br />
Option "Protocol" "Auto"<br />
Option "MinSpeed" "1.0"<br />
Option "MaxSpeed" "1.0"<br />
EndSection<br />
<br />
OR you may want to use this, that emulates the MacOSX behaviour:<br />
<br />
Section "InputDevice"<br />
Identifier "Synaptics Touchpad"<br />
Driver "synaptics"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mouse1"<br />
Option "Protocol" "auto-dev"<br />
Option "LeftEdge" "60"<br />
Option "RightEdge" "900"<br />
Option "BottomEdge" "511"<br />
Option "HorizScrollDelta" "0"<br />
Option "MinSpeed" "0.4"<br />
Option "MaxSpeed" "1"<br />
Option "AccelFactor" "0.08"<br />
Option "MaxTapTime" "0"<br />
Option "TapButton1" "0"<br />
#Two Finger Scroll<br />
Option "VertTwoFingerScroll" "1"<br />
Option "HorizTwoFingerScroll" "1"<br />
EndSection<br />
<br />
<br />
<br />
Configure modules:<br />
Section "Module"<br />
Load "dbe" # Double buffer extension<br />
SubSection "extmod"<br />
Option "omit xfree86-dga" # don't initialise the DGA extension<br />
EndSubSection<br />
EndSection<br />
<br />
== Wireless ==<br />
The airport card in the newest MacBook (PCI-ID 168c:0024) is not yet supported by Madwifi. In short: Madwifi does not yet have a version of the (binary-only) HAL (hardware-abstraction layer) for the new chipset and ETA is unknown. Workaround: If your kernel is 32-bit, you can use ndiswrapper in combination with the 32-bit windows driver for the [http://www.dlink.com/products/support.asp?pid=489&sec=0 D-Link DWA-645]. <br />
It's ugly, but it works.<br />
<br />
Madwifi drivers work on my second generation MBP following [http://ubuntu-tutorials.com/2007/10/24/how-to-enable-wireless-networking-on-the-macbook-ubuntu-710/ these] instructions.<br />
<br />
== Pommed ==<br />
[http://technologeek.org/projects/pommed/ Pommed] handles the hotkeys and is able to adjusts the LCD backlight, sound volume, keyboard backlight or to eject the CD-ROM drive.<br />
<br />
Pommed is in [community], there is also a GUI built on GTK (gpomme)<br />
<br />
== Suspend ==<br />
Suspend works with the latest version of [[pm-utils]].<br />
<br />
sudo pacman -S pm-utils<br />
<br />
Run the following to test suspension. (Pressing the power button, plugging in a usb device, or closing/opening the lid will resume.)<br />
<br />
sudo pm-suspend<br />
<br />
To suspend on closing of laptop lid, make sure you have acpi, and acpid installed with pacman, and that the acpid daemon is running. Then edit /etc/acpi/handler.sh and change the "button/lid)" section to look like the following:<br />
<br />
button/lid)<br />
#echo "LID switched!">/dev/tty5<br />
if grep -q closed /proc/acpi/button/lid/LID0/state<br />
then pm-suspend<br />
fi<br />
;;<br />
<br />
Acpid calls the button/lid) section whenever the lid is opened or closed. If pm-suspend is just added to this section, it will suspend when the lid is opened, and when the lid is closed. Causing it to wake up, and then immediately suspend again when you open the lid. Checking to see if the lid is closed with grep and only running pm-suspend when the lid is closed fixes this issue.<br />
<br />
= TODO =<br />
I WILL get around to doing these! I promise! In the mean time I just put them here to remind me to do them.<br />
<br />
- make package for refit<br />
(EDIT: refit is actually in [community])<br />
<br />
- make section for isight</div>Lgbsneakhttps://wiki.archlinux.org/index.php?title=Talk:MacBookPro&diff=32514Talk:MacBookPro2007-11-18T19:11:08Z<p>Lgbsneak: New page: Hi, I added the suspend section. This is my first time editing a wiki, so let me know if I did anything wrong. You can reach me at ksnieck at gmail dot com. Hopefully I'll get hibernation ...</p>
<hr />
<div>Hi, I added the suspend section. This is my first time editing a wiki, so let me know if I did anything wrong. You can reach me at ksnieck at gmail dot com. Hopefully I'll get hibernation to work, and I'll add that as well.</div>Lgbsneakhttps://wiki.archlinux.org/index.php?title=MacBookPro&diff=32513MacBookPro2007-11-18T19:09:33Z<p>Lgbsneak: </p>
<hr />
<div>[[Category:Laptops (English)]]<br />
[[Category:HOWTOs (English)]]<br />
== Installing Archlinux on MacbookPro ==<br />
<br />
These instructions could work for the most part for the regular MacBook.<br />
<br />
You will need Archlinux 0.8 alpha3 or newer at least since GRUB and the kernel will work fine from this version.<br />
<br />
=== Arch Only System ===<br />
To install Arch and replace OSX you need to change the partition table type in MacOSX from bootcamp. Download bootcamp, install and run. Change disk from GPT to MBR partition table.<br />
<br />
Reboot, hold down the "C" key to boot from CD.<br />
<br />
Install Arch as normal. Don't forget to set one partition as bootable.<br />
<br />
After install you need to configure a couple of things...<br />
<br />
=== Dual Boot (Arch & MacOSX) ===<br />
<br />
Two possibilities:<br />
<br />
- Install Bootcamp, resize the MacOSX partition<br /><br />
<br />
When Mac OS X installation is finished. Go on http://refit.sourceforge.net[http://refit.sourceforge.net] and download rEFIT (Mac disk image)<br />
<br />
To install rEFIT, mount the rEFIT.dmg file (it's automatic normally).<br /><br />
There is an other way (refer to rEFIT documentation) but you can open a terminal then you copy /Volumes/rEFIT/efi/ to /<br /><br />
<br />
First you have to be root or you can use sudo. If you want to be logged as root you have to set a password for the root user typing :<br /><br />
sudo passwd root<br />
<br />
To be logged as root :<br /><br />
su<br />
<br />
Then to copy the folder to / :<br /><br />
cp -r /Volumes/rEFIT/efi /<br />
<br />
To install rEFIT :<br /><br />
cd /efi/refit/<br /><br />
./enable.sh<br />
<br />
Now we can synchronized MBR with GPT partition table thanks to rEFIT so you restart your computer. You can see rEFIT, you press down key to access to the Partitioning Tool. You press y to accept.<br />
<br />
Put your archlinux CD in the CD-ROM drive first then restart the computer. You can press C to boot from the CD or you can choose it in the rEFIT menu.<br />
<br />
Now it's the typical archlinux installation.<br />
<br />
At the end of the installation DO NOT install the bootloader in the MBR, but in a partition (e.g. sda3)<br />
<br />
= Configuration =<br />
<br />
== rc.conf ==<br />
Make sure your "rc.conf" at least has the following modules:<br />
MODULES=(sky2 fglrx speedstep_centrino)<br />
<br />
For CPU scaling use the "powernowd" package.<br />
<br />
== Xorg ==<br />
Install:<br />
pacman -S ati-fglrx-utils<br />
<br />
You can see my xorg.conf here:<br />
http://wiki.archlinux.org/index.php?title=MacBookPro_xorgconf<br />
<br />
OR you can just make the necessary changes: (ADD these to your xorg.conf, dont replace)<br />
<br />
Configure Xorg using xorgconfig. Once done edit your "xorg.conf" and change the driver type to "fglrx".<br />
Section "Device"<br />
Driver "fglrx"<br />
EndSection <br />
<br />
Configure your keyboard: (make right "apple key" right ALT key)<br />
Section "InputDevice"<br />
Option "XkbOptions" "lv3:rwin_switch"<br />
EndSection<br />
<br />
Configure your trackpad:<br />
Section "InputDevice"<br />
Option "Protocol" "Auto"<br />
Option "MinSpeed" "1.0"<br />
Option "MaxSpeed" "1.0"<br />
EndSection<br />
<br />
OR you may want to use this, that emulates the MacOSX behaviour:<br />
<br />
Section "InputDevice"<br />
Identifier "Synaptics Touchpad"<br />
Driver "synaptics"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mouse1"<br />
Option "Protocol" "auto-dev"<br />
Option "LeftEdge" "60"<br />
Option "RightEdge" "900"<br />
Option "BottomEdge" "511"<br />
Option "HorizScrollDelta" "0"<br />
Option "MinSpeed" "0.4"<br />
Option "MaxSpeed" "1"<br />
Option "AccelFactor" "0.08"<br />
Option "MaxTapTime" "0"<br />
Option "TapButton1" "0"<br />
#Two Finger Scroll<br />
Option "VertTwoFingerScroll" "1"<br />
Option "HorizTwoFingerScroll" "1"<br />
EndSection<br />
<br />
<br />
<br />
Configure modules:<br />
Section "Module"<br />
Load "dbe" # Double buffer extension<br />
SubSection "extmod"<br />
Option "omit xfree86-dga" # don't initialise the DGA extension<br />
EndSubSection<br />
EndSection<br />
<br />
== Wireless ==<br />
The airport card in the newest MacBook (PCI-ID 168c:0024) is not yet supported by Madwifi. In short: Madwifi does not yet have a version of the (binary-only) HAL (hardware-abstraction layer) for the new chipset and ETA is unknown. Workaround: If your kernel is 32-bit, you can use ndiswrapper in combination with the 32-bit windows driver for the [http://www.dlink.com/products/support.asp?pid=489&sec=0 D-Link DWA-645]. <br />
It's ugly, but it works.<br />
<br />
== Pommed ==<br />
[http://technologeek.org/projects/pommed/ Pommed] handles the hotkeys and is able to adjusts the LCD backlight, sound volume, keyboard backlight or to eject the CD-ROM drive.<br />
<br />
Pommed is in [community], there is also a GUI built on GTK (gpomme)<br />
<br />
== Suspend ==<br />
Suspend works with the latest version of [[pm-utils]].<br />
<br />
sudo pacman -S pm-utils<br />
<br />
Run the following to test suspension. (Pressing the power button, plugging in a usb device, or closing/opening the lid will resume.)<br />
<br />
sudo pm-suspend<br />
<br />
To suspend on closing of laptop lid, make sure you have acpi, and acpid installed with pacman, and that the acpid daemon is running. Then edit /etc/acpi/handler.sh and change the "button/lid)" section to look like the following:<br />
<br />
button/lid)<br />
#echo "LID switched!">/dev/tty5<br />
if grep -q closed /proc/acpi/button/lid/LID0/state<br />
then pm-suspend<br />
fi<br />
;;<br />
<br />
Acpid calls the button/lid) section whenever the lid is opened or closed. If pm-suspend is just added to this section, it will suspend when the lid is opened, and when the lid is closed. Causing it to wake up, and then immediately suspend again when you open the lid. Checking to see if the lid is closed with grep and only running pm-suspend when the lid is closed fixes this issue.<br />
<br />
= TODO =<br />
I WILL get around to doing these! I promise! In the mean time I just put them here to remind me to do them.<br />
<br />
- make package for refit<br />
(EDIT: refit is actually in [community])<br />
<br />
- make section for isight</div>Lgbsneak