How to get Backtrack R3 video, sound and backlight working in a MacBook Pro [Updated]
After a lot of research I have finally got my early 2011 13" MBP fully working in a fresh clean install :cool:. These are my MBP's technical specifications:
http://support.apple.com/kb/SP619
So after you installed BT5 R3 in your MBP I would recommend changing the root's password. Open up terminal and type:
passwd
It will ask you to retype the new password. Next we will update intel's video drivers and install all the updates available. Open up terminal and type:
add-apt-repository ppa:glasen/intel-driver
apt-get update
apt-get upgrade
Once the drivers have been updated we would need to restart the computer. But before we do this we could install compiz and emerald (this is optional). Once again open up terminal and type:
apt-get install compiz compiz-fusion-plugins-extra emerald simple-ccsm fusion-icon
so now we can reboot the machine with the following command:
shutdown -r now
Once the machine is up and running, you might get an audio error:
KDE detected that one or more internal sound devices were removed.
Do you want KDE to permanently forget about these devices?
This is the list of devices KDE thinks can be removed:
-Capture: Ensoniq AudioPCI ENS1371 (ES1371 DAC2/ADC)
-Output: Ensoniq AudioPCI ENS1371 (ES1371 DAC2/ADC)
This is what you have to do. You can just ignore this error message and in the menubar you will see the volume icon, click on it and select the Mixer option. This will open up the HDA Intel PCH menu. Go to settings > configure channels. And there you just simply need to move the Front Speacker, Surround Speaker and Mic options from the Available channels list to the Visible channels list and click OK. Now you just need to unmute the Front Speacker and Surround Speacker.
So now we have the video and speakers fully working. Now if you installed Compiz and Emerald to enable it you can go to Backtrack Menu -> System -> Compiz Fusion Icon. You should see the icon in the menubar, right click on it and select "Reload Window Manager". There are many tutorials in the web, you can always google how to cuztomize backtrack with compiz.
If you also want to get your display light working you can install xbacklight using the following commands:
apt-get install xbacklight
Once the application has been installed you can run the following commands:
xbacklight -dec 7
xbacklight -inc 7
The "xbacklight -dec 7" command will decrease the display's brightness and the "xbacklight -inc 7" command will increase the display's brightness.
To get your keyboard backlight working the steps are more complex. You have to open your favorite text editor and copy and paste the following code as is:
BACKLIGHT=$(cat /sys/class/leds/smc::kbd_backlight/brightness)
INCREMENT=15
if [ $UID -ne 0 ]; then
echo "Please run this program as superuser"
exit 1
fi
SET_VALUE=0
case $1 in
up)
TOTAL=`expr $BACKLIGHT + $INCREMENT`
if [ $TOTAL -gt "255" ]; then
exit 1
fi
SET_VALUE=1
;;
down)
TOTAL=`expr $BACKLIGHT - $INCREMENT`
if [ $TOTAL -lt "0" ]; then
exit 1
fi
SET_VALUE=1
;;
total)
TEMP_VALUE=$BACKLIGHT
while [ $TEMP_VALUE -lt "255" ]; do
TEMP_VALUE=`expr $TEMP_VALUE + 1`
if [ $TEMP_VALUE -gt "255" ]; then TEMP_VALUE=255; fi
echo $TEMP_VALUE > /sys/class/leds/smc::kbd_backlight/brightness
done
;;
off)
TEMP_VALUE=$BACKLIGHT
while [ $TEMP_VALUE -gt "0" ]; do
TEMP_VALUE=`expr $TEMP_VALUE - 1`
if [ $TEMP_VALUE -lt "0" ]; then TEMP_VALUE=0; fi
echo $TEMP_VALUE > /sys/class/leds/smc::kbd_backlight/brightness
done
;;
*)
echo "Use: keyboard-light up|down|total|off"
;;
esac
if [ $SET_VALUE -eq "1" ]; then
echo $TOTAL > /sys/class/leds/smc::kbd_backlight/brightness
fi
Save the file as keybacklight and save it in the Desktop. Open up terminal and type:
cd /root/Desktop
chmod 755 keybacklight
mv keybacklight /usr/bin/keybacklight
To increase keyboard backlight:
keybacklight up
To decrease keyboard backlight:
keybacklight down
Hope this was helpful, if you have any questions or comments reply to this post, and remember you can always look at these links, to have a more detailed description.
Compiz and Emerald installation
http://goo.gl/EbEZl
Intel HD 3000 video driver
http://goo.gl/Ip9kH
Display's backlight
https://wiki.archlinux.org/index.php...Macbook_Pro%29
Keyboard's backlight
http://www.mabishu.com/blog/2010/06/...untu-gnulinux/