Ubuntu 9.04 (Jaunty) en Macbook Pro 5,5

Tras la reciente compra de mi último portátil, un Macbook Pro 5,5, he podido comprobar que Ubuntu 9.04 (Jaunty) no se acopla a la perfección, como si bien hace con muchos otros, con este sistema en particular. Tras varias reinstalaciones, me he hecho un script que recopila todos los pasos necesarios que he ido recogiendo en foros para resolver todos los problemas e incompatibilidades de una sola tajada.


Estos problemas detectados en mi Macbook Pro (5,5) son:

- Activar sonido
- Configurar Tarjeta gráfica
- Activar backlight del teclado
- Remapeo de las teclas de función
- Configuración del touchpad
- Activar el led del bloqueo de mayúsculas

Este es el script, no olvidarse de copiar el fichero el contenido del fichero 11-x11-synaptics.fdi (que se encuentra más abajo) al mismo nivel que este script:

# WARNING: Use at your own risk, only tested on a Macbook pro 5,5 with
# Ubuntu 9.04 (Jaunty)

# Mactel sources
echo "deb http://ppa.launchpad.net/mactel-support/ubuntu jaunty main
deb-src http://ppa.launchpad.net/mactel-support/ubuntu jaunty main" > mactel
sudo mv mactel /etc/apt/sources.list.d/mactel.list
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7A6BC20C4FE04DADD10837608DB7F87A2B97B7B8
# Update & upgrade
sudo apt-get update
sudo apt-get upgrade

# Download needed packages
sudo apt-get -y install mbp-nvidia-bl-dkms applesmc-dkms hal-applesmc bcm5974-dkms pommed nvidia-bl-dkms sensors-applet nvidia-180-kernel-source nvidia-glx-180

# Load needed modules
sudo echo "
coretemp
applesmc
bcm5974
usbhid
nvidia_bl shift=2
" >> /etc/modules

sudo echo "blacklist usbhid" >> /etc/modprobe.d/blacklist.conf

# Backlight
sudo echo "options hid_apple fnmode=2" > /etc/modprobe.d/hid_apple.conf

# Key remaping
sudo echo -n "options hid pb_fnmode=2" > /etc/modprobe.d/function.conf

sudo update-initramfs -u

# Sound (mind to unmute the Front Speaker channel!)
sudo rm -rf /lib/modules/`uname -r`/kernel/sound
sudo aptitude reinstall linux-headers-`uname -r` linux-image-`uname -r` linux-restricted-modules-`uname -r`
wget ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-unstable-snapshot.tar.gz
tar xf alsa-driver-unstable-snapshot.tar.gz
cd alsa-driver-unstable
sudo ./configure --enable-dynamic-minors --without-oss --with-cards="hda-intel"
sudo make
sudo make install

# Touchpad (copy the
11-x11-synaptics.fdi file at the same level)
sudo cp ./11-x11-synaptics.fdi /etc/hal/fdi/policy/

# To enable Caps Lock led
sudo aptitude remove mouseemu

Contenido de 11-x11-synaptics.fdi:


<?xml version="1.0" encoding="ISO-8859-1"?>

<deviceinfo version="0.2">

  <device>

    <match key="info.capabilities" contains="input.touchpad">

      <match key="info.product" contains="Synaptics TouchPad">

        <merge key="input.x11_driver" type="string">synaptics</merge>

        <!-- Arbitrary options can be passed to the driver using

             the input.x11_options property since xorg-server-1.5. -->

        <!-- EXAMPLE:

        <merge key="input.x11_options.LeftEdge" type="string">120</merge>

        -->

      </match>

      <match key="info.product" contains="AlpsPS/2 ALPS">

        <merge key="input.x11_driver" type="string">synaptics</merge>

      </match>

      <match key="info.product" contains="appletouch">

        <merge key="input.x11_driver" type="string">synaptics</merge>

      </match>

      <match key="info.product" contains="bcm5974">

        <merge key="input.x11_driver" type="string">synaptics</merge>

        <merge key="input.x11_options.LeftEdge" type="string">0</merge>

        <merge key="input.x11_options.RightEdge" type="string">1280</merge>

        <merge key="input.x11_options.TopEdge" type="string">0</merge>

        <merge key="input.x11_options.BottomEdge" type="string">800</merge>

        <merge key="input.x11_options.ClickFinger1" type="string">1</merge>

        <merge key="input.x11_options.ClickFinger2" type="string">3</merge>

        <merge key="input.x11_options.ClickFinger3" type="string">2</merge>

        <merge key="input.x11_options.HorizEdgeScroll" type="string">0</merge>

        <merge key="input.x11_options.VertEdgeScroll" type="string">0</merge>

        <merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>

        <merge key="input.x11_options.HorizTwoFingerScroll" type="string">1</merge>

        <merge key="input.x11_options.HorizScrollDelta" type="string">0</merge>

        <merge key="input.x11_options.VertScrollDelta" type="string">40</merge>

        <merge key="input.x11_options.PressureMotionMinZ" type="string">10</merge>

        <merge key="input.x11_options.FingerLow" type="string">16</merge>

        <merge key="input.x11_options.FingerHigh" type="string">80</merge>

        <merge key="input.x11_options.FingerPress" type="string">256</merge>

        <merge key="input.x11_options.PalmDetect" type="string">1</merge>

        <merge key="input.x11_options.PalmMinWidth" type="string">10</merge>

        <merge key="input.x11_options.PalmMinZ" type="string">200</merge>

        <merge key="input.x11_options.MinSpeed" type="string">0.8</merge>

        <merge key="input.x11_options.MaxSpeed" type="string">1.2</merge>

        <merge key="input.x11_options.AccelFactor" type="string">0.10</merge>

        <merge key="input.x11_options.MaxTapMove" type="string">25</merge>

        <merge key="input.x11_options.MaxTapTime" type="string">223</merge>

        <merge key="input.x11_options.MaxDoubleTapTime" type="string">200</merge>

        <merge key="input.x11_options.TapButton1" type="string">1</merge>

        <merge key="input.x11_options.TapButton2" type="string">3</merge>

        <merge key="input.x11_options.TapButton3" type="string">2</merge>

        <merge key="input.x11_options.RTCornerButton" type="string">0</merge>

        <merge key="input.x11_options.RBCornerButton" type="string">0</merge>

        <merge key="input.x11_options.LTCornerButton" type="string">0</merge>

        <merge key="input.x11_options.LBCornerButton" type="string">0</merge>

      </match>

    </match>

  </device>

</deviceinfo>




Posted on 7:43 p. m. by skarvin and filed under | 2 Comments »

2 comentarios:

Unknown dijo... @ 8:33 a. m.

Hola,
Tengo el mismo modelo de MAC y acabo de instalar la misma version de Ubuntu. Tengo los mismos problemas que tenias. Prove tu script y no arreglo nada.
Bueno, el led de la masyusculas si que se enciende. No se que hiciste pero yo solo he hecho un update del sistema y luego he ejecutado tu script sin exito.
Si puedes hecharme un cable te lo agradezco. Ale ! nata

Unknown dijo... @ 2:36 a. m.

Hola,
Al final segui las instrucciones de la wiki de ubuntu que hacen acciones muy parecidas a las tuyas. De hecho, aun no he conseguido habilitar el sonido y el touchpad ha mejorado pero aun tiene un comportamiento estrano.
Que hiciste una vez completadas las acciones de tu script para recuperar el sonido? Si puedes ayudarme es de mucha ayuda, gracias