Size: 8386
Comment:
|
Size: 15799
Comment: corrected Xsetup path for Kubuntu/KDE from /etc/kde3/kdm/Xsetup to /etc/kde4/kdm/Xsetup
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
## Page was copied from MacBook6-1/Karmic ## lol then from MacBook7-1/Lucid |
## Page was copied from MacBook6-1/Karmic then from MacBook7-1/Lucid |
Line 7: | Line 7: |
<<BR>><<BR>> This page aims to describe the steps needed, to fully enable all features of the '''13.3 (mb 7,1)''' when using '''Ubuntu 10.10, Maverick Meerkat'''.<<BR>> |
|
Line 12: | Line 9: |
This page aims to describe the steps needed, to fully enable all features of the '''13.3 (MBP 7,1)''' when using '''Ubuntu 10.10, Maverick Meerkat'''.<<BR>> <<BR>> |
|
Line 13: | Line 12: |
<<BR>> | |
Line 26: | Line 26: |
|| [[#Sensors|Sensors (temps & fans)]] || {{attachment:IconsPage/query_small.png}} || || [[#Suspend|Suspend & Hibernate]] || {{attachment:IconsPage/query_small.png}} || || [[#Screen|Screen]] || {{attachment:IconsPage/query_small.png}} || || [[#Reboot|Reboot]] || {{attachment:IconsPage/query_small.png}} || || [[#Video|3D Acceleration, Video & Effects (Compiz)]] || {{attachment:IconsPage/query_small.png}} || || [[#HFS|HFS+ (only read)]] || {{attachment:IconsPage/query_small.png}} || || [[#CDDVD|CD/DVD Writing]] || {{attachment:IconsPage/query_small.png}} || |
|| [[#Sensors|Sensors (temps & fans)]] || {{attachment:IconsPage/check_remark_small.png}} || || [[#Suspend|Suspend & Hibernate]] || {{attachment:IconsPage/check_small.png}} || || [[#Screen|Screen]] || {{attachment:IconsPage/check_small.png}} || || [[#Colors|Colors]] || {{attachment:IconsPage/check_remark_small.png}} || || [[#Reboot|Reboot]] || {{attachment:IconsPage/check_remark_small.png}} || || [[#Video|3D Acceleration, Video & Effects (Compiz)]] || {{attachment:IconsPage/check_remark_small.png}} || || [[#HFS+|HFS/HFS+]] || {{attachment:IconsPage/check_small.png}} || || [[#CDDVD|CD/DVD Writing]] || {{attachment:IconsPage/check_small.png}} || |
Line 34: | Line 35: |
|| [[#Keyboard|Keyboard functions (Brightness,volume,...)]] || {{attachment:IconsPage/query_small.png}} || || [[#Touchpad|Touchpad]] || {{attachment:IconsPage/query_small.png}} || || [[#FireWire|FireWire]] || {{attachment:IconsPage/query_small.png}} || || [[#LAN|LAN]] || {{attachment:IconsPage/query_small.png}} || || [[#Wireless|Wireless LAN]] || {{attachment:IconsPage/query_small.png}} || || [[#iSight|iSight (Camera)]] || {{attachment:IconsPage/query_small.png}} || |
|| [[#Keyboard|Keyboard functions (Brightness,volume,...)]] || {{attachment:IconsPage/check_remark_small.png}} || || [[#Touchpad|Touchpad]] || {{attachment:IconsPage/check_remark_small.png}} || || [[#FireWire|FireWire]] || {{attachment:IconsPage/check_small.png}} || || [[#LAN|LAN]] || {{attachment:IconsPage/check_small.png}} || || [[#Wireless|Wireless LAN]] || {{attachment:IconsPage/check_remark_small.png}} || || [[#iSight|iSight (Camera)]] || {{attachment:IconsPage/check_small.png}} || |
Line 41: | Line 42: |
|| [[#Sound|Sound]] || {{attachment:IconsPage/query_small.png}} || || [[#Microphone|Microphone]] || {{attachment:IconsPage/query_small.png}} || || [[#ExtMon|External Monitor]] || {{attachment:IconsPage/query_small.png}} || |
|| [[#Sound|Sound]] || {{attachment:IconsPage/check_remark_small.png}} || || [[#Microphone|Microphone]] || {{attachment:IconsPage/check_remark_small.png}} || || [[#ExtMon|External Monitor]] || {{attachment:IconsPage/check_remark_small.png}} || |
Line 62: | Line 63: |
The mactel PPA modules needed on Ubuntu on this MBP are applesmc-dkms (driver for light sensor, temperatures, fans and keyboard backlight), mbp-nvidia-bl-dkms (driver for the LCD panel backlight) and pommed (daemon to control them all). |
The mactel PPA modules needed on Ubuntu on this MBP are applesmc-dkms (driver for light sensor, temperatures, fans and keyboard backlight), nvidia-bl-dkms (driver for the LCD panel backlight) and pommed (daemon to control them all). ## on maverik we should use nvidia-bl |
Line 68: | Line 69: |
CD eject button is detected. lmsensors detects the sensors, however it does not know what they are yet. One only gets temp2, temp3, temp11, the fan speed indicator is shown, but constantly shows 2000rpm. Also temp3 seems very hot 63-80 degrees C. The creator of the documentation for 10.04 on the MBP 7,1 wrote a script that will probably still work. [[http://bitbucket.org/delijati/mac/src|Fan Control]] {{{ $ hg clone https://delijati@bitbucket.org/delijati/mac $ cd mac $ sudo ./mbfanctr.py #watch $ tail -f /var/log/syslog #or $ watch sensors }}} |
## that should be in Keybord: CD eject button is detected. The program lmsensors detects the sensors, however it does not know what they are yet. But coretemp will allow lm-sensor to detect the others sensors, the rotation speed of the fan and the GPU temperature. {{{ sudo modprobe coretemp }}} Then add '''coretemp''' to the list of modules loaded during the boot process: {{{ sudo gedit /etc/modules }}} ## mjlav@gmx.com: I think we should simplify the installation using only macfanctl, which works pretty well. If you agree, please delete all this paragraph. Thx ##The creator of the documentation for 10.04 on the MBP 7,1 wrote a script that will ##probably still work. ##[[http://bitbucket.org/delijati/mac/src|Fan Control]] ##{{{ ##$ hg clone https://delijati@bitbucket.org/delijati/mac ##$ cd mac ##$ sudo ./mbfanctr.py ###watch ##$ tail -f /var/log/syslog ##or ##$ watch sensors ##}}} It is highly recommended to use the fan controller daemon that is included in the mactel-support ppa called macfanctl. After enabling the ppa as shown above you can add this tool with the following command: {{{ sudo apt-get install macfanctld }}} After installation you there is a config file located at /etc/macfanctl.conf. The default configurations seems to work well. |
Line 86: | Line 104: |
Works without problem. == Screen == Installing the current version of nvidia-bl-dkms (0.17 or greater) will enable the control of the screen backlight with the keyboard keys F1 and F2. The help is then accessible from fn-F1. {{{ sudo apt-get install nvidia-bl-dkms }}} Then promote this module {{{ sudo modprobe nvidia-bl }}} == Colors == MacBook Pros can use a program called xcalib to emulate the screen coloring calibration of OS X: {{{ sudo apt-get install xcalib sudo mount -t hfsplus /dev/sda2 /mnt #(this mounts the mac partition [/dev/sda2] on /mnt) sudo mkdir /etc/xcalib sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /etc/xcalib }}} Then, do an `ls /etc/xcalib` and note the name of the profile (for the next step). Finally, add the following line to the end of either /etc/gdm/Init/Default (for standard Ubuntu/Gnome) or /etc/kde4/kdm/Xsetup (for Kubuntu/KDE), before the final "exit" statement: {{{ /usr/bin/xcalib "/etc/xcalib/<insert name of profile here>" }}} Restart X by logging out and logging back in, or typing `sudo /etc/init.d/gdm restart` and your Mac OS X color profile will load as X starts. == Battery == This is kind of irrelevant, the biggest obstacle to battery life is usage, and everyone uses it differently. == Ethernet == Works without problems, but get crazy regarding the power management: '''WARNING''', this broke my wired connection, apply only if necessary. {{{ sudo gedit /etc/modprobe.d/blacklist.conf }}} and add at the end of the file: {{{ blacklist forcedeth }}} == Reboot == ## should be placed first! Run {{{ gksudo gedit /etc/default/grub }}} and change the line {{{ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" }}} to {{{ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=pci" }}} Now, on the terminal run {{{ sudo update-grub }}} Finally, ask the computer to shutdown, then complete the shutdown by pressing the power button during five seconds '''when the shutdown process is stuck''', wait few more seconds until the hard drive stop spinning and power it on again. Now it should work normally. == Touchpad == Coming soon. This section will document a newish project that enables the multitouch functions fully, including two-finger click and drag. {{{ $ sudo add-apt-repository ppa:mactel-support && sudo apt-get update $ sudo apt-get install bcm5974-dkms xserver-xorg-input-synaptics }}} == FireWire == Works out of the box. ## This is irrelevant, it is a test procedure and should be documented somewhere else. ##Device located in /dev/video1394/0 and /dev/raw1394 (control) by default. ##You can test with a FireWire camera using coriander. ##To run coriander you must belong to video group. Therefore, before connecting the ##FireWire device (otherwise, you will have to reboot), do (taken from ##https://help.ubuntu.com/community/Firewire) ##{{{ ##echo 'KERNEL=="raw1394", GROUP="video", MODE="0664"' | ##sudo tee /etc/udev/rules.d/50-raw1394.rules ##&& sudo restart udev ##}}} == Video == You can enjoy 3D acceleration by using the nVidia proprietary driver which can be retrieved in the Ubuntu Hardware Drivers menu. This operation will change the screen resolution appearing at every boot and shutdown of your laptop. If you want to get back the right resolution do as follow: Install v86d {{{ sudo apt-get install v86d }}} Edit GRUB configuration file {{{ sudo gedit /etc/default/grub }}} Add to the line... {{{ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" }}} The following: {{{ nomodeset video=uvesafb:mode_option=1280x800-24,mtrr=3,scroll=ywrap }}} If you already applied the previous modifications on this line you should get: {{{ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1280x800-24,mtrr=3,scroll=ywrap reboot=pci" }}} Close it and edit initramfs configuration file: {{{ sudo gedit /etc/initramfs-tools/modules }}} Add at the end of the file, {{{ uvesafb mode_option=1280x800-24 mtrr=3 scroll=ywrap }}} Close it and launch the following command, {{{ echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash }}} Update GRUB, {{{ sudo update-grub }}} Update initramfs, {{{ sudo update-initramfs -u }}} == HFS+ == * Read Only: Confirmed working out of the box. * Read/Write: It is necessary to disable journal: 1. Login macos and open a terminal. 1. Identify the partition. 1. Run diskutil to disable journaling. {{{ $ mount /dev/disk0s2 on / [...] $ sudo diskutil disableJournal force /dev/disk0s2 Journaling has been disabled for volume [...] on disk0s2 }}} == Keyboard == ##Coming soon. I'm going to attempt to write the simplest guide for getting the keyboard #and LCD backlight controls working. If you want to invert the Control and Command keys to have the same configuration as Mac OS X you can create the following file: {{{ # gedit ~/.xmodmap }}} and copy the following into it {{{ ! ! xmodmap script to swap right control & right command key ! ! remove both keycodes (to which Control_L & Super_L is attached) ! from previous modifier map remove control = Control_L remove mod4 = Super_L Hyper_L ! swap keysyms keysym Control_L = Super_L Hyper_L keysym Super_L = Control_L ! re-add both keycodes to respective modifier maps add control = Control_L add mod4 = Super_L Hyper_L ! ***** end of source ***** }}} Close this file. Now you can activate it with {{{ # xmodmap ~/.xmodmap }}} Next time you will boot and get to the desktop you will have to choose if this configuration has to loaded at every boot. == External Monitor == With the latest nVidia drivers installed, the Display Port and adapters work out of the box. == Wireless == In the Ubuntu Hardware Drivers menu you can choose a wireless driver. There is a free and a proprietary driver. The proprietary driver is known as working, also with WPA2. You can have difficulties to activate it before general updates have been performed so manage to get a wired connection to make this initial updates: {{{ sudo apt-get update sudo apt-get dist-upgrade }}} I was seeing very bad performance using wireless. I discovered that the default power management state was causing frames to be dropped which in turn caused very high latency. I addressed this by turning off power management on the wireless interface. This probably has a negative effect on battery life but I would prefer a network connection that performs well. You can disable power management manually by running the following command: {{{ /sbin/iwconfig eth1 power off }}} You can automate this by placing a script named wireless in /etc/pm/power.d: {{{ !/bin/sh # /etc/pm/power.d/wifipower # Matt's Macbook Pro 7,1 wifi power adjuster # # I've found that turing off power management fixes performance problems with the # BCM4322 802.11a/b/g/n Wireless Controller found in the Macbook Pro 7,1 # /sbin/iwconfig eth1 power off }}} Make sure to make the script executable: {{{ sudo chmod +x /etc/pm/power.d/wifipower }}} == Bluetooth == |
|
Line 88: | Line 349: |
== Screen == Coming soon. == Battery == This is kind of irrelevant, the biggest obstacle to battery life is usage, and everyone uses it differently. == Ethernet == Works without problems. == Reboot == Ubuntu will freeze partway through reboot I've got a fix by jay.ar.oh: you have to update the boot option to contain "reboot=pci" in /etc/default/grub like this: {{{ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=pci" }}} and generate GRUB's menu.lst file using this command: {{{ sudo update-grub }}} You have to reboot Ubuntu twice until this fix works. == Touch pad == Coming soon. This section will document a newish project that enables the multitouch functions fully, including two-finger click and drag. == FireWire == Works out of the box. Device located in /dev/video1394/0 and /dev/raw1394 (control) by default. You can test with a FireWire camera using coriander. To run coriander you must belong to video group. Therefore, before connecting the FireWire device (otherwise, you will have to reboot), do (taken from https://help.ubuntu.com/community/Firewire) {{{ echo 'KERNEL=="raw1394", GROUP="video", MODE="0664"' | sudo tee /etc/udev/rules.d/50-raw1394.rules && sudo restart udev }}} == Video == You can enjoy 3D acceleration by using the nVidia proprietary driver which can be retrieved in the ubuntu Hardware Drivers menu. == Keyboard == Coming soon. I'm going to attempt to write the simplest guide for getting the keyboard and LCD backlight controls working. == External Monitor == With the latest Nvidia drivers installed, the DisplayPort and adapters work out of the box. == Wireless == In the ubuntu Hardware Drivers menu you can choose a wireless driver. There is a free and a proprietary driver. The proprietary driver is known as working, also with WPA2. == Bluetooth == Coming soon. |
|
Line 158: | Line 355: |
Coming very soon. Sound was a constant problem for me on Lucid. I'm going to get a definitive guide here soon. | ##Coming very soon. Sound was a constant problem for me on Lucid. I'm going to get a ##definitive guide here soon. From the terminal, type: {{{ gksudo gedit /etc/modprobe.d/alsa-base.conf }}} Add the following line to the end of the file. {{{ options snd-hda-intel model=mbp55 }}} Save and close the file, then reboot. Front speakers is initially muted and need to be unmuted, {{{ alsamixer }}} Then use the key '''M''' to mute/unmute the channels front speaker and surround. You can also mute S/PDIF and S/PDIF-D channels if you don't use a digital cable, this will save battery. My alsamixer settings were not restored after reboot. This caused the S/PDIF to come back in an enabled state after every boot. To make it stay off I did the following: Muted S/PDIF using alsamixer Issued the following command: {{{ sudo /sbin/alsactl store 0 }}} Then I added a new startup application using Startup Applications under the System -> Preferences menu. I used the following settings in Startup Applications Preferences: {{{ Click Add Name: Restore Alsa State Command: /sbin/alsactl restore Comment: Turn off Optical Out }}} Now the optical audio out will turn off when you login. |
Line 162: | Line 394: |
The microphone is muted out of the box. Go to System-->Preferences-->Sound-->Input and either move the slider or click the box to unmute. Tested working with Skype. * There is no apparent way to increase the microphone volume in the sound preferences. You can change microphone level over 100% with paman: {{{ sudo apt-get install paman }}} Then run paman, open Devices tab, select alsa_input.pci source, click Properties and change microphone volume. I'm using value 300%. If you are using skype, don't forget to turn off automatic volume adjusting in skype program: Options > Sound Devices > Allow Skype to automatically adjust my mixer levels |
The microphone is muted out of the box. Go to System-->Preferences-->Sound-->Input and either move the slider to 100%. You can snap your finger or speak in front of your laptop to see the capture bar moving and adjust it if needed. ## * There is no apparent way to increase the microphone volume in the sound ##preferences. ##You can change microphone level over 100% with paman: ##{{{ ##sudo apt-get install paman ##}}} ##Then run paman, open Devices tab, select alsa_input.pci source, click Properties and ##change microphone volume. I'm using value 300%. If you are using skype, don't forget to turn off automatic volume adjustment in skype program: Options > Sound Devices > Allow Skype to automatically adjust my mixer levels |
Line 181: | Line 414: |
CategoryMac CategoryHardware | CategoryMac CategoryHardware CategoryXwindowSystem |
MacBook Pro 7,1 Ubuntu 10.10 (Maverick Meerkat)
This page aims to describe the steps needed, to fully enable all features of the 13.3 (MBP 7,1) when using Ubuntu 10.10, Maverick Meerkat.
Much of this page (even the formatting, I admit) is just taken from the guide for Lucid, so thank you to the contributor of that page. My goal is to make this specialized to Maverick and update a couple of the guides and fixes that worked and were documented for Lucid.
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.
Feature
Support status
(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
Package Support for Intel Macs
You need some modules from the MactelSupportTeam/PPA :
sudo add-apt-repository ppa:mactel-support && sudo apt-get update
The mactel PPA modules needed on Ubuntu on this MBP are applesmc-dkms (driver for light sensor, temperatures, fans and keyboard backlight), nvidia-bl-dkms (driver for the LCD panel backlight) and pommed (daemon to control them all).
Sensors
The program lmsensors detects the sensors, however it does not know what they are yet. But coretemp will allow lm-sensor to detect the others sensors, the rotation speed of the fan and the GPU temperature.
sudo modprobe coretemp
Then add coretemp to the list of modules loaded during the boot process:
sudo gedit /etc/modules
It is highly recommended to use the fan controller daemon that is included in the mactel-support ppa called macfanctl. After enabling the ppa as shown above you can add this tool with the following command:
sudo apt-get install macfanctld
After installation you there is a config file located at /etc/macfanctl.conf. The default configurations seems to work well.
Suspend
Works without problem.
Screen
Installing the current version of nvidia-bl-dkms (0.17 or greater) will enable the control of the screen backlight with the keyboard keys F1 and F2. The help is then accessible from fn-F1.
sudo apt-get install nvidia-bl-dkms
Then promote this module
sudo modprobe nvidia-bl
Colors
MacBook Pros can use a program called xcalib to emulate the screen coloring calibration of OS X:
sudo apt-get install xcalib sudo mount -t hfsplus /dev/sda2 /mnt #(this mounts the mac partition [/dev/sda2] on /mnt) sudo mkdir /etc/xcalib sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /etc/xcalib
Then, do an ls /etc/xcalib and note the name of the profile (for the next step).
Finally, add the following line to the end of either /etc/gdm/Init/Default (for standard Ubuntu/Gnome) or /etc/kde4/kdm/Xsetup (for Kubuntu/KDE), before the final "exit" statement:
/usr/bin/xcalib "/etc/xcalib/<insert name of profile here>"
Restart X by logging out and logging back in, or typing sudo /etc/init.d/gdm restart and your Mac OS X color profile will load as X starts.
Battery
This is kind of irrelevant, the biggest obstacle to battery life is usage, and everyone uses it differently.
Ethernet
Works without problems, but get crazy regarding the power management:
WARNING, this broke my wired connection, apply only if necessary.
sudo gedit /etc/modprobe.d/blacklist.conf
and add at the end of the file:
blacklist forcedeth
Reboot
Run
gksudo gedit /etc/default/grub
and change the line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash reboot=pci"
Now, on the terminal run
sudo update-grub
Finally, ask the computer to shutdown, then complete the shutdown by pressing the power button during five seconds when the shutdown process is stuck, wait few more seconds until the hard drive stop spinning and power it on again. Now it should work normally.
Touchpad
Coming soon. This section will document a newish project that enables the multitouch functions fully, including two-finger click and drag.
$ sudo add-apt-repository ppa:mactel-support && sudo apt-get update $ sudo apt-get install bcm5974-dkms xserver-xorg-input-synaptics
FireWire
Works out of the box.
Video
You can enjoy 3D acceleration by using the nVidia proprietary driver which can be retrieved in the Ubuntu Hardware Drivers menu. This operation will change the screen resolution appearing at every boot and shutdown of your laptop. If you want to get back the right resolution do as follow:
Install v86d
sudo apt-get install v86d
Edit GRUB configuration file
sudo gedit /etc/default/grub
Add to the line...
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
The following:
nomodeset video=uvesafb:mode_option=1280x800-24,mtrr=3,scroll=ywrap
If you already applied the previous modifications on this line you should get:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1280x800-24,mtrr=3,scroll=ywrap reboot=pci"
Close it and edit initramfs configuration file:
sudo gedit /etc/initramfs-tools/modules
Add at the end of the file,
uvesafb mode_option=1280x800-24 mtrr=3 scroll=ywrap
Close it and launch the following command,
echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
Update GRUB,
sudo update-grub
Update initramfs,
sudo update-initramfs -u
HFS+
- Read Only: Confirmed working out of the box.
- Read/Write: It is necessary to disable journal:
- Login macos and open a terminal.
- Identify the partition.
- Run diskutil to disable journaling.
$ mount /dev/disk0s2 on / [...] $ sudo diskutil disableJournal force /dev/disk0s2 Journaling has been disabled for volume [...] on disk0s2
Keyboard
If you want to invert the Control and Command keys to have the same configuration as Mac OS X you can create the following file:
# gedit ~/.xmodmap
and copy the following into it
! ! xmodmap script to swap right control & right command key ! ! remove both keycodes (to which Control_L & Super_L is attached) ! from previous modifier map remove control = Control_L remove mod4 = Super_L Hyper_L ! swap keysyms keysym Control_L = Super_L Hyper_L keysym Super_L = Control_L ! re-add both keycodes to respective modifier maps add control = Control_L add mod4 = Super_L Hyper_L ! ***** end of source *****
Close this file. Now you can activate it with
# xmodmap ~/.xmodmap
Next time you will boot and get to the desktop you will have to choose if this configuration has to loaded at every boot.
External Monitor
With the latest nVidia drivers installed, the Display Port and adapters work out of the box.
Wireless
In the Ubuntu Hardware Drivers menu you can choose a wireless driver. There is a free and a proprietary driver. The proprietary driver is known as working, also with WPA2. You can have difficulties to activate it before general updates have been performed so manage to get a wired connection to make this initial updates:
sudo apt-get update sudo apt-get dist-upgrade
I was seeing very bad performance using wireless. I discovered that the default power management state was causing frames to be dropped which in turn caused very high latency. I addressed this by turning off power management on the wireless interface. This probably has a negative effect on battery life but I would prefer a network connection that performs well.
You can disable power management manually by running the following command:
/sbin/iwconfig eth1 power off
You can automate this by placing a script named wireless in /etc/pm/power.d:
!/bin/sh # /etc/pm/power.d/wifipower # Matt's Macbook Pro 7,1 wifi power adjuster # # I've found that turing off power management fixes performance problems with the # BCM4322 802.11a/b/g/n Wireless Controller found in the Macbook Pro 7,1 # /sbin/iwconfig eth1 power off
Make sure to make the script executable:
sudo chmod +x /etc/pm/power.d/wifipower
Bluetooth
Coming soon.
Webcam
The iSight works out of the box. You can test it using cheese or any other of your choice.
Sound
From the terminal, type:
gksudo gedit /etc/modprobe.d/alsa-base.conf
Add the following line to the end of the file.
options snd-hda-intel model=mbp55
Save and close the file, then reboot.
Front speakers is initially muted and need to be unmuted,
alsamixer
Then use the key M to mute/unmute the channels front speaker and surround. You can also mute S/PDIF and S/PDIF-D channels if you don't use a digital cable, this will save battery.
My alsamixer settings were not restored after reboot. This caused the S/PDIF to come back in an enabled state after every boot. To make it stay off I did the following:
Muted S/PDIF using alsamixer
Issued the following command:
sudo /sbin/alsactl store 0
Then I added a new startup application using Startup Applications under the System -> Preferences menu. I used the following settings in Startup Applications Preferences:
Click Add Name: Restore Alsa State Command: /sbin/alsactl restore Comment: Turn off Optical Out
Now the optical audio out will turn off when you login.
Microphone
The microphone is muted out of the box. Go to System-->Preferences-->Sound-->Input and either move the slider to 100%. You can snap your finger or speak in front of your laptop to see the capture bar moving and adjust it if needed.
If you are using skype, don't forget to turn off automatic volume adjustment in skype program: Options > Sound Devices > Allow Skype to automatically adjust my mixer levels
|