<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://doc.ubuntu-es.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
		<id>http://doc.ubuntu-es.org/api.php?action=feedcontributions&amp;user=Carsses&amp;feedformat=atom</id>
		<title>doc.ubuntu-es - Contribuciones del usuario [es]</title>
		<link rel="self" type="application/atom+xml" href="http://doc.ubuntu-es.org/api.php?action=feedcontributions&amp;user=Carsses&amp;feedformat=atom"/>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Especial:Contribuciones/Carsses"/>
		<updated>2013-06-19T22:08:58Z</updated>
		<subtitle>Contribuciones del usuario</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://doc.ubuntu-es.org/Introducci%C3%B3n_a_Ubuntu_para_usuarios_Mac_OS_X</id>
		<title>Introducción a Ubuntu para usuarios Mac OS X</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Introducci%C3%B3n_a_Ubuntu_para_usuarios_Mac_OS_X"/>
				<updated>2009-02-11T11:22:29Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: /* GarageBand */  add audacity&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Si estás cambiando a Ubuntu desde Mac OS X, ¡bienvenido y gracias por instalar Ubuntu. OS X y Ubuntu tienen muchas cosas en común, y ambos están diseñados para &amp;quot;just work&amp;quot; (simplemente funciona). Esto probablemente te haga más fácil la transición.&lt;br /&gt;
&lt;br /&gt;
Este documento intenta proporcionar alguna información, recursos y terminología; y ayudarte a discernir entre las similitudes y diferencias entre OS X y Ubuntu.&lt;br /&gt;
&lt;br /&gt;
== Instalar Software ==&lt;br /&gt;
&lt;br /&gt;
Como OS X, Ubuntu viene con una útil selección de aplicaciones por defecto, como una suite de oficina, navegador web, aplicaciones multimedia y juegos. Ambos utilizan paquetes de software para instalar aplicaciones. Con Ubuntu, sin embargo, normalmente necesitas instalar los paquetes, en oposición a descargar los paquetes y usarlos sin instalarlos. Cuando instalas paquetes en Ubuntu necesitas introducir tu contraseña, como cuando instalar actualizaciones o ciertos programas en OS X.&lt;br /&gt;
&lt;br /&gt;
Muchos de los programas que busques están en los repositorios de paquetes de Ubuntu. Esto significa que no necesitas ir a sitios en línea como [http://www.versiontracker.com/ VersionTracker] o [http://www.macupdate.com/ MacUpdate], a menos que busques algo poco común. Si estás buscando algo poco usual, entonces [http://sourceforge.net/ Sourceforge] es un buen sitio para buscar proyectos de código abierto.&lt;br /&gt;
&lt;br /&gt;
Consulta [[instalar aplicaciones]] para más información de cómo instalar software de los repositorios y de fuentes online.&lt;br /&gt;
&lt;br /&gt;
== Alternativas a la Suite iLife ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu ofrece un gran número de alternativas de código abierto para usuarios que migren de Mac OS X y utilicen la suite de Apple iLife.&lt;br /&gt;
&lt;br /&gt;
=== Alternativa a iTunes ===&lt;br /&gt;
&lt;br /&gt;
[[Rhythmbox]] es un reproductor de música con capacidad de escanear e indexar la librería del usuario al inicio de ejecutar la aplicación.  Están soportadas las funciones básicas como la gestión de listas de reproducción, compartir música a través de la red DAAP, y feeds de podcast. Adicionalmente, soporta la sincronización de música con iPod. Para obtener contenidos de música de la web, el store [http://magnatune.com/ Magnatune] y el canal [http://www.jamendo.com/en/ Jamendo] están disponibles a través del menú de plugins (Editar--&amp;gt;Plugins...).  Se debe hacer notar que Rhythmbox viene con soporte para códecs propietarios como aac, wma, y mp3.  Sin embargo, estos formatos de audio pueden ser habilitados siguiendo las instrucciones de la página en [[formatos restrtictivos]]. Rhythmbox está disponible por defecto en el escritorio de Ubuntu GNOME.&lt;br /&gt;
&lt;br /&gt;
=== Alternativa a iPhoto ===&lt;br /&gt;
&lt;br /&gt;
[http://f-spot.org/Main_Page F-Spot] es una completa aplicación para la gestión de fotografías para el escritorio GNOME.  F-Spot un interfaz de usuario simple con capacidad  de edición de fotos fácil de usar, como rotar, cambiar tamaño, ajustes de color y corrección de ojos rojos. Tu colección de fotos es escaneada e indexada para una rápida navegación, gestión y etiquetado de fotos.  Se pueden crear fácilmente CDs de fotos escogiendo &amp;quot;Exportar a CD&amp;quot; desde el menú principal. Los usuarios con cuentas en Flickr, 23, Picasa, o SmugMug serán felices de encontrar soporte nativo para subir fotos en F-Spot.  F-Spot se instala por defecto en escritorio de ubuntu GNOME.&lt;br /&gt;
&lt;br /&gt;
=== iMovie ===&lt;br /&gt;
&lt;br /&gt;
Aunque no hay un editor de video no lineal completo disponible para escritorio GNOME aun, hay bastantes alternativas a iMovie disponibles para Linux en general. Cada una tiene sus pros y sus contras, los cuales son comentados a continuación:&lt;br /&gt;
&lt;br /&gt;
* [http://www.pitivi.org Pitivi] está pensado para llenar ese hueco en el escritorio de Gnome.  Sin embargo, Pitivi aun está bajo desarrollo y no está indicado para usuarios regulares. Pitiví está recomendado actualmente únicamente para desarrolladores.&lt;br /&gt;
&lt;br /&gt;
* [http://www.kdenlive.org/ Kdenlive] es un editor de vídeo no lineal para KDE.  Actualmente, Kdenlive no está disponible en los repositorios de Ubuntu, así que este debe ser [http://en.wikibooks.org/wiki/Kdenlive/Getting_and_installing#Installing_from_source_code compilado del código fuente]. Compilar código fuente puede ser dificultoso para usuarios nuevos de Ubuntu, así que Kdenlive no está recomendado hasta que esté disponible un paquete instalable en los repositorios de Ubuntu. Kdenlive está pensado para ser un editor de video user-friendly el cual importe y exporte la mayoría de formatos de audio, vídeo e imagen..  Los efectos de audio y video están disponibles, como blur, sepia, volumen, y brillo.  Kdenlive importa video desde cámaras DV firewire.&lt;br /&gt;
&lt;br /&gt;
*[http://www.kinodv.org Kino] es un editor de vídeo no lineal.  El soporte de formatos de video básicos está disponible  para algunos ficheros AVI y ficheros raw DV.  Aunque le desarrollo para nuevas características en Kino ha [http://www.kinodv.org/article/view/157/1/7/ cesado], la edición básica de un único track de vídeo puede ser hecha con kino. Se ofrecen algunos efectos de audio y video, así como transiciones de escenas. Soporta subidas a [http://www.blip.tv blip.tv].  Kino está disponible en el repositorio Main de Ubuntu.&lt;br /&gt;
&lt;br /&gt;
* '''Avidemux''' es un programa libre diseñado para la edición y procesado de vídeo multipropósito. Esta disponible en los repositorios de Ubuntu. Entre las características se incluyen cortado WYSIWYG, adición, filtros y recodificación entre varios formatos. &lt;br /&gt;
También puede multiplexar y desmultiplexar corrientes de audio dentro y fuera de ficheros de vídeo, en cualquier formato a través de recodificación o usando un modo de copia directa.&lt;br /&gt;
Si quieres cortar vídeo, convertir de un formato a otro, incrustar subtítulos permanentemente o quitar las bandas negras de tus vídeos favoritos, Avidemux te ayudará. Es muy intuitivo y en la sección de Filtros encontrarás muchos complementos. &lt;br /&gt;
&lt;br /&gt;
Si alguna vez usaste Virtualdub en Windows o bien MPEGStreamclip en MacOsx, Avidemux te agradará.&lt;br /&gt;
&lt;br /&gt;
Para usuarios avanzados que busquen una aplicación ponderosa de edición de vídeo y que no teman utilizar interfaces que no estén pensadas para usuarios noveles, se recomienda [http://lives.sourceforge.net/ LiVES] y [http://heroinewarrior.com/cinelerra.php3 Cinelerra].&lt;br /&gt;
&lt;br /&gt;
=== iDVD ===&lt;br /&gt;
&lt;br /&gt;
[http://www.rastersoft.com/programas/devede.html DeVeDe] es una herramienta básica de DVD para la creación de DVDs desde clips de vídeo. Los subtítulos, resolución de video y caja de letras son personalizables por el usuario para crear un disco de vídeo DVD que funcione en reproductores de DVD PAL y NTSC. DeVeDe está disponible en los repositorios Universe de Ubuntu. Consulta [https://help.ubuntu.com/community/DVDAuthoring DVDAuthoring] para detalles en otras soluciones de creación de DVDs.&lt;br /&gt;
&lt;br /&gt;
=== GarageBand ===&lt;br /&gt;
&lt;br /&gt;
[http://jokosher.org/ Jokosher] es un sencillo grabador y editor de audio multi-track. Aunque bajo un duro desarrollo, Jokosher ya ofrece un  interfaz amigable con opciones de edición de audio esenciales como mover, copiar, pegar clips, etc.  Los formatos que pueden ser importados  en Jokosher son Ogg Vorbis, MP3, FLAC, y WAV, con los [https://help.ubuntu.com/6.10/ubuntu/desktopguide/C/codecs.html multimedia codecs] instalados.  Se pueden añadir perfiles de instrumentos al proyecto de audio, cada uno con una selección de efectos si LADSPA está instalado.  Jokosher está disponible en el repositorio Universe de Ubuntu para Ubuntu 7.04.&lt;br /&gt;
&lt;br /&gt;
Otra alternativa libre es Audacity&lt;br /&gt;
&lt;br /&gt;
=== iWeb ===&lt;br /&gt;
&lt;br /&gt;
== Formato de Archivos ==&lt;br /&gt;
En OS X, los principales tipos de archivos comprimidos para ficheros y directorios son .dmg (Disk Image) y .sit/.sitx (Stuffit). Ubuntu no puede leer nativamente archivos .dmg, pero la utilidad libre [http://vu1tur.eu.org/tools/ dmg2iso] puede convertir archivos .dmg a .iso.  Ubuntu puede leer .sit, .sitx, .zip, .tar, .gz, .tar.gz, .bzip y un gran número de otros formatos de archivo. &lt;br /&gt;
&lt;br /&gt;
== Software Esencial==&lt;br /&gt;
&lt;br /&gt;
* La lista de '''Ubuntu esenciales''' de Mark Pilgrim para aquellos que vienen de Mac OS X. Incluye equivalents de programas populares de Mac y la opinion de Mark de las diferentes aplicaciones de Linux. [http://diveintomark.org/archives/2006/06/26/essentials-2006 Essentials, 2006 Edition]&lt;br /&gt;
&lt;br /&gt;
== Importar música capada con DRM ==&lt;br /&gt;
&lt;br /&gt;
Se pueden utilizar algunas utilidades privativas, que no mencionamos para no hacer publicidad gratuita, para restaurar derechos en música capada con DRM. De todas formas, Apple y otros comerciantes de música están quitando las restricciones de sus tiendas virtuales paulatinamente, ya que estas canciones pueden conseguirse de muchas otras formas, y varias empresas ajenas a Apple están haciendo negocio gracias a sus protecciones vendiendo software que lo elimina. En nuestro país, si te apetece escuchar música en cualquier parte, simplemente, tienes el derecho de compartirla con utilidades como el aMule.&lt;br /&gt;
&lt;br /&gt;
Fuente: http://ocio.barrapunto.com/article.pl?sid=07/04/02/1422210&lt;br /&gt;
&lt;br /&gt;
Fuente: https://help.ubuntu.com/community/SwitchingToUbuntu/FromMacOSX&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Categorías --&amp;gt;&lt;br /&gt;
[[Categoría:Migración desde otros S.O.]][[Categoría:Completar]]&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Hardware_compatible</id>
		<title>Hardware compatible</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Hardware_compatible"/>
				<updated>2009-02-11T11:03:42Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: Añadir Tarjeta en el enlace a wikipedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;En esta sección encontrarás el hardware compatible con Ubuntu y, si es necesario, una sencilla guía para instalarlo. La base de datos se divide en tipos de componentes, fabricantes, modelos y/o versiones y por último el manual de instalación del control para cada versión de Ubuntu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Discos_Duros| '''Discos duros''']&lt;br /&gt;
* internos&lt;br /&gt;
* externos (usb)&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Tarjeta_gr%C3%A1fica| '''Tarjetas gráficas''']&lt;br /&gt;
* Ati&lt;br /&gt;
* [[Nvidia:Soporte|Nvidia]]&lt;br /&gt;
* Intel&lt;br /&gt;
* Sis&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Tarjeta_Capturadora_de_Video '''Tarjetas capturadoras de Video''']&lt;br /&gt;
* internas&lt;br /&gt;
* externas&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Capturadora_de_televisi%C3%B3n '''Tarjetas de TV''']&lt;br /&gt;
* internas&lt;br /&gt;
* externas&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Tarjeta_de_sonido '''Tarjetas de sonido''']&lt;br /&gt;
* internas&lt;br /&gt;
* externas&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Placa_base '''Placas base''']&lt;br /&gt;
* Intel&lt;br /&gt;
* Amd&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/C%C3%A1mara_web '''Cámaras web/WebCams''']&lt;br /&gt;
* internas&lt;br /&gt;
* externas&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/C%C3%A1mara_digital '''Cámaras fotográficas digitales''']&lt;br /&gt;
* USB&lt;br /&gt;
&lt;br /&gt;
'''[[Hardware compatible/Impresoras|Impresoras]]'''&lt;br /&gt;
* USB&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Esc%C3%A1ner_de_ordenador '''Escáneres''']&lt;br /&gt;
* USB&lt;br /&gt;
* Puerto paralelo&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Teclado_de_computadora '''Teclados''']&lt;br /&gt;
* PS/2&lt;br /&gt;
* USB&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Mouse '''Ratones''']&lt;br /&gt;
* PS/2&lt;br /&gt;
* USB&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/M%C3%B3dem '''Modems''']&lt;br /&gt;
* internos&lt;br /&gt;
* externos (usb)&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Tarjeta_de_red '''Tarjetas de red inalámbricas/Wireless/Wi-Fi''']&lt;br /&gt;
* internas&lt;br /&gt;
== ver también ==&lt;br /&gt;
* [[Hardware]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Categorías --&amp;gt;&lt;br /&gt;
[[Categoría:Hardware compatible con Ubuntu]]&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Hardware_compatible</id>
		<title>Hardware compatible</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Hardware_compatible"/>
				<updated>2009-02-11T10:49:57Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: Insertar bloque de discpositivos &amp;quot;capturadoras de video&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;En esta sección encontrarás el hardware compatible con Ubuntu y, si es necesario, una sencilla guía para instalarlo. La base de datos se divide en tipos de componentes, fabricantes, modelos y/o versiones y por último el manual de instalación del control para cada versión de Ubuntu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Discos_Duros| '''Discos duros''']&lt;br /&gt;
* internos&lt;br /&gt;
* externos (usb)&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Tarjeta_gr%C3%A1fica| '''Tarjetas gráficas''']&lt;br /&gt;
* Ati&lt;br /&gt;
* [[Nvidia:Soporte|Nvidia]]&lt;br /&gt;
* Intel&lt;br /&gt;
* Sis&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Capturadora_de_Video '''Tarjetas capturadoras de Video''']&lt;br /&gt;
* internas&lt;br /&gt;
* externas&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Capturadora_de_televisi%C3%B3n '''Tarjetas de TV''']&lt;br /&gt;
* internas&lt;br /&gt;
* externas&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Tarjeta_de_sonido '''Tarjetas de sonido''']&lt;br /&gt;
* internas&lt;br /&gt;
* externas&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Placa_base '''Placas base''']&lt;br /&gt;
* Intel&lt;br /&gt;
* Amd&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/C%C3%A1mara_web '''Cámaras web/WebCams''']&lt;br /&gt;
* internas&lt;br /&gt;
* externas&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/C%C3%A1mara_digital '''Cámaras fotográficas digitales''']&lt;br /&gt;
* USB&lt;br /&gt;
&lt;br /&gt;
'''[[Hardware compatible/Impresoras|Impresoras]]'''&lt;br /&gt;
* USB&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Esc%C3%A1ner_de_ordenador '''Escáneres''']&lt;br /&gt;
* USB&lt;br /&gt;
* Puerto paralelo&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Teclado_de_computadora '''Teclados''']&lt;br /&gt;
* PS/2&lt;br /&gt;
* USB&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Mouse '''Ratones''']&lt;br /&gt;
* PS/2&lt;br /&gt;
* USB&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/M%C3%B3dem '''Modems''']&lt;br /&gt;
* internos&lt;br /&gt;
* externos (usb)&lt;br /&gt;
&lt;br /&gt;
[http://es.wikipedia.org/wiki/Tarjeta_de_red '''Tarjetas de red inalámbricas/Wireless/Wi-Fi''']&lt;br /&gt;
* internas&lt;br /&gt;
== ver también ==&lt;br /&gt;
* [[Hardware]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Categorías --&amp;gt;&lt;br /&gt;
[[Categoría:Hardware compatible con Ubuntu]]&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T19:36:20Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: /* Instrucciones básicas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
&lt;br /&gt;
Esta guía le ayudará con los pasos necesarios para la instalación de Ubuntu en un MacBook. Esta guía ha sido realizada para Ubuntu 7.10 (Gutsy Gibbon), pero está siendo adaptada para Ubuntu 8.04 (Hardy heron).&lt;br /&gt;
&lt;br /&gt;
Si tienes un MacBook Pro te recomendamos que veas esta otra guía: https://wiki.ubuntu.com/MacBookPro, tenga en cuenta que es casi todo igual , aunque esta página es tambien relevante.&lt;br /&gt;
&lt;br /&gt;
Si tienes el nuevo Macbook (Santa Rosa v3.1) veer esta guía: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
Para la discusión adicional de este asunto, vea: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
Para una guía de tripe arranque vea: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Las instrucciones abajo se refieren a la aplicación BootCamp de Apple que está disponible de forma pública excepto si usas Leopard Mac OS X 10.5. Otra opción, sin embargo, es redimensionar la partición Mac OS X utilizando las utilidades de disco o reinstalar Mac Os X haciendo más pequeña la partición de Mac OS X, dejando el espacion libre necesario para Ubuntu'''&lt;br /&gt;
&lt;br /&gt;
== Instrucciones básicas ==&lt;br /&gt;
 1. Actualizar el software de tu sistema Mac Os X [http://www.apple.com/support/downloads/ firmware] a la versión más reciente.&amp;lt;br&amp;gt; Tambien puede hacerlo de la manera estandard pulsando en la manzana y luego &amp;quot;Actualización de software&amp;quot;&amp;lt;br&amp;gt;(Accesible desde el escritorio de su sistema Mac OS X)&amp;lt;br&amp;gt;&lt;br /&gt;
 2. Baja tu Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD]. Para los primeros Macbooks tu debes seleccionar `i386`; Para los  Macbooks Core 2 Duo &amp;lt;br&amp;gt;(posterioes a 2006) puedes seleccionar `amd64` si tu estás interesado en arrancar a 64-bit OS,si no seleccionar ` i386`.&amp;lt;br&amp;gt;&lt;br /&gt;
 3. Instalar [http://refit.sourceforge.net/ rEFIt] si tu quieres un menu de arranque (para poder seleccionar OS X/Ubuntu) seleccionar el arranque.&amp;lt;br&amp;gt;Puedes hacer que el arranque a Ubuntu sea por defecto y cargar la cuenta atras editando el fichero &amp;quot;refit.conf&amp;quot;&amp;lt;br&amp;gt;(Según está descrito en el anterior web site [http://refit.sourceforge.net/ rEFIt]).&amp;lt;br&amp;gt;&lt;br /&gt;
 4. Si es necesario, use Boot Camp para redimensionar la partición OSX para dejar espacio para tu Ubuntu.&amp;lt;br&amp;gt;Don't waste a CD creating a Windows driver disk. Reboot.&amp;lt;br&amp;gt;&lt;br /&gt;
 5. Pulsa la tecla &amp;quot;C&amp;quot; para iniciar desde el CD.&amp;lt;br&amp;gt;&lt;br /&gt;
 6. Instalar Ubuntu de la forma usual, excepto:&lt;br /&gt;
  * En la particion, selecciona ''Editar manualmente la tabla de particiones''&lt;br /&gt;
  * Borra /dev/sda3 y /dev/sda4 si existe&lt;br /&gt;
  * Crea una nueva partición ext3 para tu usuario root&lt;br /&gt;
  * Monte la reción creada partición ext3 en '/'&lt;br /&gt;
  * Tenga en cuenta que con Boot Camp puede darle problemas si hace más de dos particiones.&amp;lt;br&amp;gt; &lt;br /&gt;
 7. Finaliza la instalación y reinicia.&amp;lt;br&amp;gt;&lt;br /&gt;
 8. Si has instalado rEFIT, deberíaa tener la posibilidad de elegir entre el arranque OS X y Ubuntu. &amp;lt;br&amp;gt;Utilice las teclas de flecha y ENTER para seleccionar Ubuntu.&amp;lt;br&amp;gt;&lt;br /&gt;
 9. Aleternativamente, si no has instalado rEFIT, mantenga pulsada Alt/Opción para decidir si desea arrancar en OSX / Ubuntu.&amp;lt;br&amp;gt;  El menú de arranque del Bootcamp instalado reconocerá la instalación de Ubuntu como si fuera de Window$&amp;lt;br&amp;gt; pero en realidad arrancará Ubuntu sin problemas.&lt;br /&gt;
 10. Entre en su sistema.&lt;br /&gt;
 11. Siga las instrucciones que aparecen a continuación para configurar los distintos componentes de hardware que no funciona&amp;lt;br&amp;gt; de forma estandard en Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T19:34:20Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: traduccion macbook continuación&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
&lt;br /&gt;
Esta guía le ayudará con los pasos necesarios para la instalación de Ubuntu en un MacBook. Esta guía ha sido realizada para Ubuntu 7.10 (Gutsy Gibbon), pero está siendo adaptada para Ubuntu 8.04 (Hardy heron).&lt;br /&gt;
&lt;br /&gt;
Si tienes un MacBook Pro te recomendamos que veas esta otra guía: https://wiki.ubuntu.com/MacBookPro, tenga en cuenta que es casi todo igual , aunque esta página es tambien relevante.&lt;br /&gt;
&lt;br /&gt;
Si tienes el nuevo Macbook (Santa Rosa v3.1) veer esta guía: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
Para la discusión adicional de este asunto, vea: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
Para una guía de tripe arranque vea: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Las instrucciones abajo se refieren a la aplicación BootCamp de Apple que está disponible de forma pública excepto si usas Leopard Mac OS X 10.5. Otra opción, sin embargo, es redimensionar la partición Mac OS X utilizando las utilidades de disco o reinstalar Mac Os X haciendo más pequeña la partición de Mac OS X, dejando el espacion libre necesario para Ubuntu'''&lt;br /&gt;
&lt;br /&gt;
== Instrucciones básicas ==&lt;br /&gt;
 1. Actualizar el software de tu sistema Mac Os X [http://www.apple.com/support/downloads/ firmware] a la versión más reciente.&amp;lt;br&amp;gt; Tambien puede hacerlo de la manera estandard pulsando en la manzana y luego &amp;quot;Actualización de software&amp;quot;&amp;lt;br&amp;gt;(Accesible desde el escritorio de su sistema Mac OS X)&amp;lt;br&amp;gt;&lt;br /&gt;
 2. Baja tu Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD]. Para los primeros Macbooks tu debes seleccionar `i386`; Para los  Macbooks Core 2 Duo &amp;lt;br&amp;gt;(posterioes a 2006) puedes seleccionar `amd64` si tu estás interesado en arrancar a 64-bit OS,si no seleccionar ` i386`.&amp;lt;br&amp;gt;&lt;br /&gt;
 3. Instalar [http://refit.sourceforge.net/ rEFIt] si tu quieres un menu de arranque (para poder seleccionar OS X/Ubuntu) seleccionar el arranque.&amp;lt;br&amp;gt;Puedes hacer que el arranque a Ubuntu sea por defecto y cargar la cuenta atras editando el fichero &amp;quot;refit.conf&amp;quot;&amp;lt;br&amp;gt;(Según está descrito en el anterior web site [http://refit.sourceforge.net/ rEFIt]).&amp;lt;br&amp;gt;&lt;br /&gt;
 4. Si es necesario, use Boot Camp para redimensionar la partición OSX para dejar espacio para tu Ubuntu.&amp;lt;br&amp;gt;Don't waste a CD creating a Windows driver disk. Reboot.&amp;lt;br&amp;gt;&lt;br /&gt;
 5. Pulsa la tecla &amp;quot;C&amp;quot; para iniciar desde el CD.&amp;lt;br&amp;gt;&lt;br /&gt;
 6. Instalar Ubuntu de la forma usual, excepto:&lt;br /&gt;
  * En la particion, selecciona ''Editar manualmente la tabla de particiones''&lt;br /&gt;
  * Borra /dev/sda3 y /dev/sda4 si existe&lt;br /&gt;
  * Crea una nueva partición ext3 para tu usuario root&lt;br /&gt;
  * Monte la reción creada partición ext3 en '/'&lt;br /&gt;
  * Tenga en cuenta que con Boot Camp puede darle problemas si hace más de dos particiones.&amp;lt;br&amp;gt; &lt;br /&gt;
 7. Finaliza la instalación y reinicia.&amp;lt;br&amp;gt;&lt;br /&gt;
 8. Si has instalado rEFIT, deberíaa tener la posibilidad de elegir entre el arranque OS X y Ubuntu. Utilice las teclas de flecha y ENTER para seleccionar Ubuntu.&amp;lt;br&amp;gt;&lt;br /&gt;
 9. Aleternativamente, si no has instalado rEFIT, mantenga pulsada Alt/Opción para decidir si desea arrancar en OSX / Ubuntu.  El menú de arranque del Bootcamp instalado reconocerá la instalación de Ubuntu como si fuera de Window$ pero en realidad arrancará Ubuntu sin problemas.&lt;br /&gt;
 10. Entre en su sistema.&lt;br /&gt;
 11. Siga las instrucciones que aparecen a continuación para configurar los distintos componentes de hardware que no trabajan de forma estandard en Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T19:11:15Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: /* Instrucciones básicas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
&lt;br /&gt;
Esta guía le ayudará con los pasos necesarios para la instalación de Ubuntu en un MacBook. Esta guía ha sido realizada para Ubuntu 7.10 (Gutsy Gibbon), pero está siendo adaptada para Ubuntu 8.04 (Hardy heron).&lt;br /&gt;
&lt;br /&gt;
Si tienes un MacBook Pro te recomendamos que veas esta otra guía: https://wiki.ubuntu.com/MacBookPro, tenga en cuenta que es casi todo igual , aunque esta página es tambien relevante.&lt;br /&gt;
&lt;br /&gt;
Si tienes el nuevo Macbook (Santa Rosa v3.1) veer esta guía: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
Para la discusión adicional de este asunto, vea: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
Para una guía de tripe arranque vea: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Las instrucciones abajo se refieren a la aplicación BootCamp de Apple que está disponible de forma pública excepto si usas Leopard Mac OS X 10.5. Otra opción, sin embargo, es redimensionar la partición Mac OS X utilizando las utilidades de disco o reinstalar Mac Os X haciendo más pequeña la partición de Mac OS X, dejando el espacion libre necesario para Ubuntu'''&lt;br /&gt;
&lt;br /&gt;
== Instrucciones básicas ==&lt;br /&gt;
 1. Actualizar el software de tu sistema Mac Os X [http://www.apple.com/support/downloads/ firmware] a la versión más reciente.&amp;lt;br&amp;gt; Tambien puede hacerlo de la manera estandard pulsando en la manzana y luego &amp;quot;Actualización de software&amp;quot;&amp;lt;br&amp;gt;(Accesible desde el escritorio de su sistema Mac OS X)&amp;lt;br&amp;gt;&lt;br /&gt;
 2. Baja tu Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD]. Para los primeros Macbooks tu debes seleccionar `i386`; Para los  Macbooks Core 2 Duo &amp;lt;br&amp;gt;(posterioes a 2006) puedes seleccionar `amd64` si tu estás interesado en arrancar a 64-bit OS,si no seleccionar ` i386`.&amp;lt;br&amp;gt;&lt;br /&gt;
 3. Instalar [http://refit.sourceforge.net/ rEFIt] si tu quieres un menu de arranque (para poder seleccionar OS X/Ubuntu) seleccionar el arranque.&amp;lt;br&amp;gt;Puedes hacer que el arranque a Ubuntu sea por defecto y cargar la cuenta atras editando el fichero &amp;quot;refit.conf&amp;quot;&amp;lt;br&amp;gt;(Según está descrito en el anterior web site [http://refit.sourceforge.net/ rEFIt]).&amp;lt;br&amp;gt;&lt;br /&gt;
 4. Si es necesario, use Boot Camp para redimensionar la partición OSX para dejar espacio para tu Ubuntu.&amp;lt;br&amp;gt;Don't waste a CD creating a Windows driver disk. Reboot.&amp;lt;br&amp;gt;&lt;br /&gt;
 5. Pulsa la tecla &amp;quot;C&amp;quot; para iniciar desde el CD.&amp;lt;br&amp;gt;&lt;br /&gt;
 6. Instalar Ubuntu de la forma usual, excepto:&lt;br /&gt;
  * En la particion, selecciona ''Editar manualmente la tabla de particiones''&lt;br /&gt;
  * Borra /dev/sda3 y /dev/sda4 si existe&lt;br /&gt;
  * Crea una nueva partición ext3 para tu usuario root&lt;br /&gt;
  * Monte la reción creada partición ext3 en '/'&lt;br /&gt;
  * Tenga en cuenta que con Boot Camp puede darle problemas si hace más de dos particiones.&amp;lt;br&amp;gt; &lt;br /&gt;
 7. Finaliza la instalación y reinicia.&amp;lt;br&amp;gt;&lt;br /&gt;
 8. Si has instalado rEFIT, deberíaa tener la posibilidad de elegir entre el arranque OS X y Ubuntu. Utilice las teclas de flecha y ENTER para seleccionar Ubuntu.&amp;lt;br&amp;gt;&lt;br /&gt;
 9. Alternatively, if you did not install rEFIt, hold down Alt/Option to choose whether to boot into OSX / Ubuntu.  The Boot Camp-installed boot menu will recognize the Ubuntu installation as &amp;quot;Windows,&amp;quot; but will boot Ubuntu normally regardless.&lt;br /&gt;
 10. Log in to your system.&lt;br /&gt;
 11. Follow the instructions below to set up the various hardware components that don't work out-of-the-box on Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T18:23:24Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: /* Instrucciones básicas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
&lt;br /&gt;
Esta guía le ayudará con los pasos necesarios para la instalación de Ubuntu en un MacBook. Esta guía ha sido realizada para Ubuntu 7.10 (Gutsy Gibbon), pero está siendo adaptada para Ubuntu 8.04 (Hardy heron).&lt;br /&gt;
&lt;br /&gt;
Si tienes un MacBook Pro te recomendamos que veas esta otra guía: https://wiki.ubuntu.com/MacBookPro, tenga en cuenta que es casi todo igual , aunque esta página es tambien relevante.&lt;br /&gt;
&lt;br /&gt;
Si tienes el nuevo Macbook (Santa Rosa v3.1) veer esta guía: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
Para la discusión adicional de este asunto, vea: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
Para una guía de tripe arranque vea: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Las instrucciones abajo se refieren a la aplicación BootCamp de Apple que está disponible de forma pública excepto si usas Leopard Mac OS X 10.5. Otra opción, sin embargo, es redimensionar la partición Mac OS X utilizando las utilidades de disco o reinstalar Mac Os X haciendo más pequeña la partición de Mac OS X, dejando el espacion libre necesario para Ubuntu'''&lt;br /&gt;
&lt;br /&gt;
== Instrucciones básicas ==&lt;br /&gt;
 1. Actualizar el software de tu sistema Mac Os X [http://www.apple.com/support/downloads/ firmware] a la versión más reciente.&amp;lt;br&amp;gt; Tambien puede hacerlo de la manera estandard pulsando en la manzana y luego &amp;quot;Actualización de software&amp;quot;&amp;lt;br&amp;gt;(Accesible desde el escritorio de su sistema Mac OS X)&amp;lt;br&amp;gt;&lt;br /&gt;
 2. Baja tu Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD]. Para los primeros Macbooks tu debes seleccionar `i386`; Para los  Macbooks Core 2 Duo &amp;lt;br&amp;gt;(posterioes a 2006) puedes seleccionar `amd64` si tu estás interesado en arrancar a 64-bit OS,si no seleccionar ` i386`.&amp;lt;br&amp;gt;&lt;br /&gt;
 3. Instalar [http://refit.sourceforge.net/ rEFIt] si tu quieres un menu de arranque (para poder seleccionar OS X/Ubuntu) seleccionar el arranque.&amp;lt;br&amp;gt;Puedes hacer que el arranque a Ubuntu sea por defecto y cargar la cuenta atras editando el fichero &amp;quot;refit.conf&amp;quot;&amp;lt;br&amp;gt;(Según está descrito en el anterior web site [http://refit.sourceforge.net/ rEFIt]).&amp;lt;br&amp;gt;&lt;br /&gt;
 4. If necessary, use Boot Camp to resize your OSX partition and make space for Ubuntu. Don't waste a CD creating a Windows driver disk. Reboot.&lt;br /&gt;
 5. Hold down &amp;quot;C&amp;quot; to boot from the CD.&lt;br /&gt;
 6. Install Ubuntu as usual, except:&lt;br /&gt;
  * In the partitioner, select ''Manually edit partition table''&lt;br /&gt;
  * Delete /dev/sda3 and /dev/sda4 if they exist&lt;br /&gt;
  * Create a new ext3 partition for your root&lt;br /&gt;
  * Mount the newly created ext3 partition on '/'&lt;br /&gt;
  * Note that Boot Camp will cause problems if you make more than two partitions in total.&lt;br /&gt;
 7. Finish the install and reboot.&lt;br /&gt;
 8. If you installed rEFIt, you should have a choice between booting OS X and Ubuntu.  Use the arrow keys and Enter to select Ubuntu.  &lt;br /&gt;
 9. Alternatively, if you did not install rEFIt, hold down Alt/Option to choose whether to boot into OSX / Ubuntu.  The Boot Camp-installed boot menu will recognize the Ubuntu installation as &amp;quot;Windows,&amp;quot; but will boot Ubuntu normally regardless.&lt;br /&gt;
 10. Log in to your system.&lt;br /&gt;
 11. Follow the instructions below to set up the various hardware components that don't work out-of-the-box on Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T14:36:08Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: /* Instrucciones básicas */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
&lt;br /&gt;
Esta guía le ayudará con los pasos necesarios para la instalación de Ubuntu en un MacBook. Esta guía ha sido realizada para Ubuntu 7.10 (Gutsy Gibbon), pero está siendo adaptada para Ubuntu 8.04 (Hardy heron).&lt;br /&gt;
&lt;br /&gt;
Si tienes un MacBook Pro te recomendamos que veas esta otra guía: https://wiki.ubuntu.com/MacBookPro, tenga en cuenta que es casi todo igual , aunque esta página es tambien relevante.&lt;br /&gt;
&lt;br /&gt;
Si tienes el nuevo Macbook (Santa Rosa v3.1) veer esta guía: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
Para la discusión adicional de este asunto, vea: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
Para una guía de tripe arranque vea: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Las instrucciones abajo se refieren a la aplicación BootCamp de Apple que está disponible de forma pública excepto si usas Leopard Mac OS X 10.5. Otra opción, sin embargo, es redimensionar la partición Mac OS X utilizando las utilidades de disco o reinstalar Mac Os X haciendo más pequeña la partición de Mac OS X, dejando el espacion libre necesario para Ubuntu'''&lt;br /&gt;
&lt;br /&gt;
== Instrucciones básicas ==&lt;br /&gt;
 1. Actualizar el software de tu sistema Mac Os X [http://www.apple.com/support/downloads/ firmware] a la versión más reciente.&amp;lt;br&amp;gt; Tambien puede hacerlo de la manera estandard pulsando en la manzana y luego &amp;quot;Actualización de software&amp;quot;&amp;lt;br&amp;gt;(Accesible desde el escritorio de su sistema Mac OS X)&amp;lt;br&amp;gt;&lt;br /&gt;
 2. Baja tu Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD]. Para los primeros Macbooks tu debes seleccionar `i386`; Para los  Macbooks Core 2 Duo &amp;lt;br&amp;gt;(posterioes a 2006) puedes seleccionar `amd64` si tu estás interesado en arrancar a 64-bit OS,si no seleccionar ` i386`.&amp;lt;br&amp;gt;&lt;br /&gt;
 3. Instalar [http://refit.sourceforge.net/ rEFIt] si tu quieres un menu de arranque (para poder seleccionar OS X/Ubuntu) seleccionar el arranque.&amp;lt;br&amp;gt;Puedes hacer que el arranque a Ubuntu sea por defecto y cargar la cuenta atras editando el fichero &amp;quot;refit.conf&amp;quot;&amp;lt;br&amp;gt;(Según está descrito en el anterior web site).&lt;br /&gt;
 4. If necessary, use Boot Camp to resize your OSX partition and make space for Ubuntu. Don't waste a CD creating a Windows driver disk. Reboot.&lt;br /&gt;
 5. Hold down &amp;quot;C&amp;quot; to boot from the CD.&lt;br /&gt;
 6. Install Ubuntu as usual, except:&lt;br /&gt;
  * In the partitioner, select ''Manually edit partition table''&lt;br /&gt;
  * Delete /dev/sda3 and /dev/sda4 if they exist&lt;br /&gt;
  * Create a new ext3 partition for your root&lt;br /&gt;
  * Mount the newly created ext3 partition on '/'&lt;br /&gt;
  * Note that Boot Camp will cause problems if you make more than two partitions in total.&lt;br /&gt;
 7. Finish the install and reboot.&lt;br /&gt;
 8. If you installed rEFIt, you should have a choice between booting OS X and Ubuntu.  Use the arrow keys and Enter to select Ubuntu.  &lt;br /&gt;
 9. Alternatively, if you did not install rEFIt, hold down Alt/Option to choose whether to boot into OSX / Ubuntu.  The Boot Camp-installed boot menu will recognize the Ubuntu installation as &amp;quot;Windows,&amp;quot; but will boot Ubuntu normally regardless.&lt;br /&gt;
 10. Log in to your system.&lt;br /&gt;
 11. Follow the instructions below to set up the various hardware components that don't work out-of-the-box on Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T14:28:30Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: mas Traducciones&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
&lt;br /&gt;
Esta guía le ayudará con los pasos necesarios para la instalación de Ubuntu en un MacBook. Esta guía ha sido realizada para Ubuntu 7.10 (Gutsy Gibbon), pero está siendo adaptada para Ubuntu 8.04 (Hardy heron).&lt;br /&gt;
&lt;br /&gt;
Si tienes un MacBook Pro te recomendamos que veas esta otra guía: https://wiki.ubuntu.com/MacBookPro, tenga en cuenta que es casi todo igual , aunque esta página es tambien relevante.&lt;br /&gt;
&lt;br /&gt;
Si tienes el nuevo Macbook (Santa Rosa v3.1) veer esta guía: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
Para la discusión adicional de este asunto, vea: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
Para una guía de tripe arranque vea: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Las instrucciones abajo se refieren a la aplicación BootCamp de Apple que está disponible de forma pública excepto si usas Leopard Mac OS X 10.5. Otra opción, sin embargo, es redimensionar la partición Mac OS X utilizando las utilidades de disco o reinstalar Mac Os X haciendo más pequeña la partición de Mac OS X, dejando el espacion libre necesario para Ubuntu'''&lt;br /&gt;
&lt;br /&gt;
== Instrucciones básicas ==&lt;br /&gt;
 1. Actualizar el software de tu sistema Mac Os X [http://www.apple.com/support/downloads/ firmware] a la versión más reciente.&amp;lt;br&amp;gt; Tambien puede hacerlo de la manera estandard pulsando en la manzana y luego &amp;quot;Actualización de software&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
 (Accesible desde el escritorio de su sistema Mac OS X)&lt;br /&gt;
 2. Baja tu Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD]. Para los primeros Macbooks tu debes seleccionar `i386`; Para los  Macbooks Core 2 Duo (posterioes a 2006) puedes seleccionar `amd64` si tu estás interesado en arrancar a 64-bit OS,si no seleccionar ` i386`.&lt;br /&gt;
 3. Instalar [http://refit.sourceforge.net/ rEFIt] si tu quieres un menu de arranque (para poder seleccionar OS X/Ubuntu) seleccionar el arranque.   Puedes hacer que el arranque a Ubuntu sea por defecto y cargar la cuenta atras editando el fichero &amp;quot;refit.conf&amp;quot;(Según está descrito en el anterior web site).&lt;br /&gt;
 4. If necessary, use Boot Camp to resize your OSX partition and make space for Ubuntu. Don't waste a CD creating a Windows driver disk. Reboot.&lt;br /&gt;
 5. Hold down &amp;quot;C&amp;quot; to boot from the CD.&lt;br /&gt;
 6. Install Ubuntu as usual, except:&lt;br /&gt;
  * In the partitioner, select ''Manually edit partition table''&lt;br /&gt;
  * Delete /dev/sda3 and /dev/sda4 if they exist&lt;br /&gt;
  * Create a new ext3 partition for your root&lt;br /&gt;
  * Mount the newly created ext3 partition on '/'&lt;br /&gt;
  * Note that Boot Camp will cause problems if you make more than two partitions in total.&lt;br /&gt;
 7. Finish the install and reboot.&lt;br /&gt;
 8. If you installed rEFIt, you should have a choice between booting OS X and Ubuntu.  Use the arrow keys and Enter to select Ubuntu.  &lt;br /&gt;
 9. Alternatively, if you did not install rEFIt, hold down Alt/Option to choose whether to boot into OSX / Ubuntu.  The Boot Camp-installed boot menu will recognize the Ubuntu installation as &amp;quot;Windows,&amp;quot; but will boot Ubuntu normally regardless.&lt;br /&gt;
 10. Log in to your system.&lt;br /&gt;
 11. Follow the instructions below to set up the various hardware components that don't work out-of-the-box on Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T14:08:39Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: Instrucciones báscias I (Traduccion)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
&lt;br /&gt;
Esta guía le ayudará con los pasos necesarios para la instalación de Ubuntu en un MacBook. Esta guía ha sido realizada para Ubuntu 7.10 (Gutsy Gibbon), pero está siendo adaptada para Ubuntu 8.04 (Hardy heron).&lt;br /&gt;
&lt;br /&gt;
Si tienes un MacBook Pro te recomendamos que veas esta otra guía: https://wiki.ubuntu.com/MacBookPro, tenga en cuenta que es casi todo igual , aunque esta página es tambien relevante.&lt;br /&gt;
&lt;br /&gt;
Si tienes el nuevo Macbook (Santa Rosa v3.1) veer esta guía: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
Para la discusión adicional de este asunto, vea: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
Para una guía de tripe arranque vea: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
Las instrucciones abajo se refieren a la aplicación BootCamp de Apple que está disponible de forma pública excepto si usas Leopard Mac OS X 10.5. Otra opción, sin embargo, es redimensionar la partición Mac OS X utilizando las utilidades de disco o reinstalar Mac Os X haciendo más pequeña la partición de Mac OS X, dejando el espacion libre necesario para Ubuntu'''&lt;br /&gt;
&lt;br /&gt;
== Instrucciones básicas ==&lt;br /&gt;
 1. Actualizar el software de tu sistema Mac Os X [http://www.apple.com/support/downloads/ firmware] a la versión más reciente. Tambien puede hacerlo de la manera estandard pulsando en la manzana y luego &amp;quot;Actualización de software&amp;quot; (Accesible desde el escritorio de su sistema Mac OS X)&lt;br /&gt;
 2. Get your Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD] ready. For older MacBooks you must select `i386`; for Core 2 Duo MacBooks (post 2006) you can select `amd64` if you're interested in running a 64-bit OS, otherwise `i386` may be selected.&lt;br /&gt;
 3. Install [http://refit.sourceforge.net/ rEFIt] if you want a boot menu (to select between OS X/Ubuntu) to appear on every boot.   You can make Ubuntu boot by default and change the menu timeout by editing the &amp;quot;refit.conf&amp;quot; file (described on the above website).&lt;br /&gt;
 4. If necessary, use Boot Camp to resize your OSX partition and make space for Ubuntu. Don't waste a CD creating a Windows driver disk. Reboot.&lt;br /&gt;
 5. Hold down &amp;quot;C&amp;quot; to boot from the CD.&lt;br /&gt;
 6. Install Ubuntu as usual, except:&lt;br /&gt;
  * In the partitioner, select ''Manually edit partition table''&lt;br /&gt;
  * Delete /dev/sda3 and /dev/sda4 if they exist&lt;br /&gt;
  * Create a new ext3 partition for your root&lt;br /&gt;
  * Mount the newly created ext3 partition on '/'&lt;br /&gt;
  * Note that Boot Camp will cause problems if you make more than two partitions in total.&lt;br /&gt;
 7. Finish the install and reboot.&lt;br /&gt;
 8. If you installed rEFIt, you should have a choice between booting OS X and Ubuntu.  Use the arrow keys and Enter to select Ubuntu.  &lt;br /&gt;
 9. Alternatively, if you did not install rEFIt, hold down Alt/Option to choose whether to boot into OSX / Ubuntu.  The Boot Camp-installed boot menu will recognize the Ubuntu installation as &amp;quot;Windows,&amp;quot; but will boot Ubuntu normally regardless.&lt;br /&gt;
 10. Log in to your system.&lt;br /&gt;
 11. Follow the instructions below to set up the various hardware components that don't work out-of-the-box on Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T14:01:27Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: mas traducciones&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
&lt;br /&gt;
Esta guía le ayudará con los pasos necesarios para la instalación de Ubuntu en un MacBook. Esta guía ha sido realizada para Ubuntu 7.10 (Gutsy Gibbon), pero está siendo adaptada para Ubuntu 8.04 (Hardy heron).&lt;br /&gt;
&lt;br /&gt;
Si tienes un MacBook Pro te recomendamos que veas esta otra guía: https://wiki.ubuntu.com/MacBookPro, tenga en cuenta que es casi todo igual , aunque esta página es tambien relevante.&lt;br /&gt;
&lt;br /&gt;
Si tienes el nuevo Macbook (Santa Rosa v3.1) veer esta guía: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
Para la discusión adicional de este asunto, vea: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
Para una guía de tripe arranque vea: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
Las instrucciones abajo se refieren a la aplicación BootCamp de Apple que está disponible de forma pública excepto si usas Leopard Mac OS X 10.5. Otra opción, sin embargo, es redimensionar la partición Mac OS X utilizando las utilidades de disco o reinstalar Mac Os X haciendo más pequeña la partición de Mac OS X, dejando el espacion libre necesario para Ubuntu'''&lt;br /&gt;
&lt;br /&gt;
== Instrucciones básicas ==&lt;br /&gt;
 1. Update the [http://www.apple.com/support/downloads/ firmware] to the latest version. If you prefer, you may use the standard &amp;quot;Software Update&amp;quot; (accessible from your OS X partition, if you have one)&lt;br /&gt;
 1. Get your Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD] ready. For older MacBooks you must select `i386`; for Core 2 Duo MacBooks (post 2006) you can select `amd64` if you're interested in running a 64-bit OS, otherwise `i386` may be selected.&lt;br /&gt;
 1. Install [http://refit.sourceforge.net/ rEFIt] if you want a boot menu (to select between OS X/Ubuntu) to appear on every boot.   You can make Ubuntu boot by default and change the menu timeout by editing the &amp;quot;refit.conf&amp;quot; file (described on the above website).&lt;br /&gt;
 1. If necessary, use Boot Camp to resize your OSX partition and make space for Ubuntu. Don't waste a CD creating a Windows driver disk. Reboot.&lt;br /&gt;
 1. Hold down &amp;quot;C&amp;quot; to boot from the CD.&lt;br /&gt;
 1. Install Ubuntu as usual, except:&lt;br /&gt;
  * In the partitioner, select ''Manually edit partition table''&lt;br /&gt;
  * Delete /dev/sda3 and /dev/sda4 if they exist&lt;br /&gt;
  * Create a new ext3 partition for your root&lt;br /&gt;
  * Mount the newly created ext3 partition on '/'&lt;br /&gt;
  * Note that Boot Camp will cause problems if you make more than two partitions in total.&lt;br /&gt;
 1. Finish the install and reboot.&lt;br /&gt;
 1. If you installed rEFIt, you should have a choice between booting OS X and Ubuntu.  Use the arrow keys and Enter to select Ubuntu.  &lt;br /&gt;
 1. Alternatively, if you did not install rEFIt, hold down Alt/Option to choose whether to boot into OSX / Ubuntu.  The Boot Camp-installed boot menu will recognize the Ubuntu installation as &amp;quot;Windows,&amp;quot; but will boot Ubuntu normally regardless.&lt;br /&gt;
 1. Log in to your system.&lt;br /&gt;
 1. Follow the instructions below to set up the various hardware components that don't work out-of-the-box on Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T13:35:32Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: traducciendo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
&lt;br /&gt;
Esta guía le ayudará con los pasos necesarios para la instalación de Ubuntu en un MacBook. Esta guía ha sido realizada para Ubuntu 7.10 (Gutsy Gibbon), pero está siendo adaptada para Ubuntu 8.04 (Hardy heron).&lt;br /&gt;
&lt;br /&gt;
Si tienes un MacBook Pro te recomendamos que veas esta otra guía: https://wiki.ubuntu.com/MacBookPro, tenga en cuenta que es casi todo igual , aunque esta página es tambien relevante.&lt;br /&gt;
&lt;br /&gt;
Si tienes el nuevo Macbook (Santa Rosa v3.1) veer esta guía: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
Para la discusión adicional de este asunto, vea: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
Para una guía de tripe arranque vea: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
'''The instructions below refer to Apple's BootCamp application which is no longer publicly available unless you use / upgrade to OSX 10.5 Leopard.  Another option, however, is to resize Mac OS X partition using ''diskutil'' or re-install Mac OS X from scratch and use Disk Utility to make a smaller Mac OS X partition, leaving free space for Ubuntu.'''&lt;br /&gt;
&lt;br /&gt;
== Basic instructions ==&lt;br /&gt;
 1. Update the [http://www.apple.com/support/downloads/ firmware] to the latest version. If you prefer, you may use the standard &amp;quot;Software Update&amp;quot; (accessible from your OS X partition, if you have one)&lt;br /&gt;
 1. Get your Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD] ready. For older MacBooks you must select `i386`; for Core 2 Duo MacBooks (post 2006) you can select `amd64` if you're interested in running a 64-bit OS, otherwise `i386` may be selected.&lt;br /&gt;
 1. Install [http://refit.sourceforge.net/ rEFIt] if you want a boot menu (to select between OS X/Ubuntu) to appear on every boot.   You can make Ubuntu boot by default and change the menu timeout by editing the &amp;quot;refit.conf&amp;quot; file (described on the above website).&lt;br /&gt;
 1. If necessary, use Boot Camp to resize your OSX partition and make space for Ubuntu. Don't waste a CD creating a Windows driver disk. Reboot.&lt;br /&gt;
 1. Hold down &amp;quot;C&amp;quot; to boot from the CD.&lt;br /&gt;
 1. Install Ubuntu as usual, except:&lt;br /&gt;
  * In the partitioner, select ''Manually edit partition table''&lt;br /&gt;
  * Delete /dev/sda3 and /dev/sda4 if they exist&lt;br /&gt;
  * Create a new ext3 partition for your root&lt;br /&gt;
  * Mount the newly created ext3 partition on '/'&lt;br /&gt;
  * Note that Boot Camp will cause problems if you make more than two partitions in total.&lt;br /&gt;
 1. Finish the install and reboot.&lt;br /&gt;
 1. If you installed rEFIt, you should have a choice between booting OS X and Ubuntu.  Use the arrow keys and Enter to select Ubuntu.  &lt;br /&gt;
 1. Alternatively, if you did not install rEFIt, hold down Alt/Option to choose whether to boot into OSX / Ubuntu.  The Boot Camp-installed boot menu will recognize the Ubuntu installation as &amp;quot;Windows,&amp;quot; but will boot Ubuntu normally regardless.&lt;br /&gt;
 1. Log in to your system.&lt;br /&gt;
 1. Follow the instructions below to set up the various hardware components that don't work out-of-the-box on Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T02:50:11Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: insercion del texto a traducir&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
||&amp;lt;tablestyle=&amp;quot;float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;&amp;quot; style=&amp;quot;padding:0.5em;&amp;quot;&amp;gt;'''Contents'''[[BR]][[TableOfContents(2)]]||&lt;br /&gt;
&lt;br /&gt;
= Como instalar Ubuntu en un Macbook =&lt;br /&gt;
This guide will help you through all the steps necessary for installing Ubuntu on a MacBook. This guide is currently aimed at Ubuntu 7.10 (Gutsy Gibbon), but is going to be adapted for Ubuntu 8.04 (Hardy Heron).&lt;br /&gt;
&lt;br /&gt;
If you own a MacBook Pro see this guide: https://wiki.ubuntu.com/MacBookPro, but note that almost everything is the same, and that this page is also relevant.&lt;br /&gt;
&lt;br /&gt;
If you own a new MacBook (Santa Rosa v3.1) see this guide: https://help.ubuntu.com/community/MacBook_Santa_Rosa&lt;br /&gt;
&lt;br /&gt;
For further discussion of this topic, see: http://ubuntuforums.org/showthread.php?p=1699961&lt;br /&gt;
&lt;br /&gt;
For a guide to Triple Booting, see: http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp_Ubuntu&lt;br /&gt;
&lt;br /&gt;
'''The instructions below refer to Apple's BootCamp application which is no longer publicly available unless you use / upgrade to OSX 10.5 Leopard.  Another option, however, is to resize Mac OS X partition using ''diskutil'' or re-install Mac OS X from scratch and use Disk Utility to make a smaller Mac OS X partition, leaving free space for Ubuntu.'''&lt;br /&gt;
&lt;br /&gt;
== Basic instructions ==&lt;br /&gt;
 1. Update the [http://www.apple.com/support/downloads/ firmware] to the latest version. If you prefer, you may use the standard &amp;quot;Software Update&amp;quot; (accessible from your OS X partition, if you have one)&lt;br /&gt;
 1. Get your Ubuntu [http://www.ubuntu.com/getubuntu/download Live CD] ready. For older MacBooks you must select `i386`; for Core 2 Duo MacBooks (post 2006) you can select `amd64` if you're interested in running a 64-bit OS, otherwise `i386` may be selected.&lt;br /&gt;
 1. Install [http://refit.sourceforge.net/ rEFIt] if you want a boot menu (to select between OS X/Ubuntu) to appear on every boot.   You can make Ubuntu boot by default and change the menu timeout by editing the &amp;quot;refit.conf&amp;quot; file (described on the above website).&lt;br /&gt;
 1. If necessary, use Boot Camp to resize your OSX partition and make space for Ubuntu. Don't waste a CD creating a Windows driver disk. Reboot.&lt;br /&gt;
 1. Hold down &amp;quot;C&amp;quot; to boot from the CD.&lt;br /&gt;
 1. Install Ubuntu as usual, except:&lt;br /&gt;
  * In the partitioner, select ''Manually edit partition table''&lt;br /&gt;
  * Delete /dev/sda3 and /dev/sda4 if they exist&lt;br /&gt;
  * Create a new ext3 partition for your root&lt;br /&gt;
  * Mount the newly created ext3 partition on '/'&lt;br /&gt;
  * Note that Boot Camp will cause problems if you make more than two partitions in total.&lt;br /&gt;
 1. Finish the install and reboot.&lt;br /&gt;
 1. If you installed rEFIt, you should have a choice between booting OS X and Ubuntu.  Use the arrow keys and Enter to select Ubuntu.  &lt;br /&gt;
 1. Alternatively, if you did not install rEFIt, hold down Alt/Option to choose whether to boot into OSX / Ubuntu.  The Boot Camp-installed boot menu will recognize the Ubuntu installation as &amp;quot;Windows,&amp;quot; but will boot Ubuntu normally regardless.&lt;br /&gt;
 1. Log in to your system.&lt;br /&gt;
 1. Follow the instructions below to set up the various hardware components that don't work out-of-the-box on Gutsy.&lt;br /&gt;
&lt;br /&gt;
== Sound ==&lt;br /&gt;
&lt;br /&gt;
Sound on MacBooks is provided by an Intel HDA-based integrated chipset, and should work out-of-the-box. However, in Ubuntu 8.04 alsa drivers 1.0.15 will not work with some chipsets, like SigmaTel STAC9221. In such cases everything seems to work fine but no sound is present (even unmuting all controls). Alsa drivers 1.0.16 should work fine, to install them:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source&lt;br /&gt;
sudo dpkg-reconfigure alsa-source&lt;br /&gt;
sudo module-assistant a-i   alsa-source&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
This may disable Madwifi drivers for the wireless card, hence you want to compile alsa first.&lt;br /&gt;
&lt;br /&gt;
The volume control will not work correctly out-of-the-box - in particular, reducing the default volume will result in sound distortion at lower volume levels, and volume control changes won't effect the headphone volume level.&lt;br /&gt;
&lt;br /&gt;
To fix this, do the following&lt;br /&gt;
&lt;br /&gt;
1. Add the following line to /etc/modprobe.d/alsa-base:&lt;br /&gt;
{{{&lt;br /&gt;
install snd-hda-intel position_fix=1 /sbin/modprobe --ignore-install snd-hda-intel $CMDLINE_OPTS &amp;amp;&amp;amp; /lib/alsa/modprobe-post-install snd-hda-intel&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
2. Increase the volume (both using the key combination and the system tray applet) to its maximum possible value.&lt;br /&gt;
&lt;br /&gt;
3. Right-click on the volume applet and choose Preferences.  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
4. Open the Sound preferences (System-Preferences-Sound in GNOME).  Select &amp;quot;PCM&amp;quot; as the device to control.&lt;br /&gt;
&lt;br /&gt;
The above setting changes (step 3 and 4) can be done via the command line using these two gconftool-2 commands:&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type list --list-type string --set /desktop/gnome/sound/default_mixer_tracks [PCM]&lt;br /&gt;
gconftool-2 --type string  --set /apps/panel/applets/mixer_screen0/prefs/active-track PCM&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Step 1. may be necessary in Hardy even if you don't appreciate this issue.&lt;br /&gt;
&lt;br /&gt;
== Microphone ==&lt;br /&gt;
&lt;br /&gt;
The built-in iSight microphone (above the LCD screen) will not record out of the box, but is really easy to get working.  The steps that I took to get the microphone working were:&lt;br /&gt;
&lt;br /&gt;
1. right-click on the volume applet and select &amp;quot;Open Volume Control&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
2. within the volume control application select &amp;quot;Edit &amp;gt; Preferences&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
3. select &amp;quot;Mux&amp;quot; and &amp;quot;Input Source&amp;quot; at the bottom of the list, and close.&lt;br /&gt;
&lt;br /&gt;
4. select the &amp;quot;Recording&amp;quot; tab and set &amp;quot;Mux&amp;quot; at about 1/3 full volume (higher results in static).&lt;br /&gt;
&lt;br /&gt;
5. make sure mic is unmuted!&lt;br /&gt;
&lt;br /&gt;
6. select the &amp;quot;Options&amp;quot; tab and select &amp;quot;Mic&amp;quot; as the input source.&lt;br /&gt;
&lt;br /&gt;
note: the only options I have checked in &amp;quot;Edit &amp;gt; Preferences&amp;quot; (step 2 above) are: PCM, Input source, and Mux.&lt;br /&gt;
&lt;br /&gt;
The above settings, minus the 1/3 volume level setting, can be toggled using the below commands:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerMux --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerPCM --type bool 1&lt;br /&gt;
gconftool-2 --set /apps/gnome-volume-control/HDAIntelAlsamixerInputSource --type bool 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Wireless ==&lt;br /&gt;
&lt;br /&gt;
If you have a first generation MacBook (Core Duo) then your wireless should just start working, though you may want to update to the latest version as illustrated below for better power efficiency and signal strength. Second generation Mac``Books (Core 2 Duo) have a newer version of the Atheros Wifi chipset which requires the installation of the latest Atheros Mad``Wifi drivers. [https://bugs.launchpad.net/madwifi/+bug/122703 bug #122703]&lt;br /&gt;
&lt;br /&gt;
Please note that the current Mad``Wifi drivers depend on a proprietary binary, the Atheros HAL, and therefore are not open-source software.  A free software implementation, [http://madwifi.org/wiki/About/OpenHAL OpenHAL], is currently being developed by the Madwifi devs, but unfortunately it does not support the Atheros chipset in the MacBooks yet.&lt;br /&gt;
&lt;br /&gt;
The following commands compile and install the prerelease Mad``Wifi driver, insert it into the kernel, and disable background scanning for better stability. For installation, you can choose to use daily snapshots or Subversion.&lt;br /&gt;
&lt;br /&gt;
Using daily snapshots:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential autoconf automake&lt;br /&gt;
wget http://snapshots.madwifi.org/madwifi-trunk-current.tar.gz&lt;br /&gt;
tar -zxvf madwifi-trunk-current.tar.gz&lt;br /&gt;
cd madwifi-trunk-r*&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, using Subversion (be patient with the checkout, it may take a while):&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential subversion autoconf automake&lt;br /&gt;
svn co http://svn.madwifi.org/madwifi/trunk madwifi&lt;br /&gt;
cd madwifi&lt;br /&gt;
make&lt;br /&gt;
sudo make install-modules&lt;br /&gt;
echo -e '#!/bin/sh\n/sbin/iwpriv ath0 bgscan 0' | sudo tee -a /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
sudo chmod 755 /etc/acpi/resume.d/99-madwifi-bgscan.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
At this point the driver should be installed and will be enabled after a reboot. Alternatively, you can skip the reboot and use the following commands to insert the driver into the running kernel: &lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe ath_pci&lt;br /&gt;
sudo iwpriv ath0 bgscan 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Additionally, the Mad``Wifi drivers are sometimes unstable under certain circumstances when using the standard NetworkManager tool for managing networks.  Because of these reasons, you may want to disable the drivers if you aren't using wireless.  To do this, edit the /etc/modprobe.d/blacklist file and add &amp;quot;blacklist ath_pci&amp;quot; at the bottom.  Additionally, you can deselect the Atheros HAL in the Restricted Manager (System-Administration-Restricted Drivers Manager).&lt;br /&gt;
&lt;br /&gt;
To disallow replacement of just installed modules by installing linux-restricted-modules package update you can edit /etc/default/linux-restricted-modules-common and insert ath_hal into DISABLED_MODULES list:&lt;br /&gt;
{{{&lt;br /&gt;
sudo sed -i~ -e 's/^\(DISABLED_MODULES=&amp;quot;\)\(.*&amp;quot;\)/\1ath_hal \2/' -e 's/ &amp;quot;$/&amp;quot;/' /etc/default/linux-restricted-modules-common&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
More information can be obtained at&lt;br /&gt;
http://madwifi.org/wiki/UserDocs/FirstTimeHowTo&lt;br /&gt;
&lt;br /&gt;
If you need to connect to a channel that's not allowed in the regulatory domain in which you bought your laptop, you'll need to follow these instructions: http://tumbleweed.org.za/2008/02/11/madwifi-regdomain-issues&lt;br /&gt;
&lt;br /&gt;
=== Ndiswrapper ===&lt;br /&gt;
If you instead want to use ndiswrapper to use the Windows wireless drivers on Ubuntu (only for 32-bit) these are the instructions: &lt;br /&gt;
&lt;br /&gt;
You have to have the XP drivers on your hard disk.  If you don't have a Windows XP installation on an alternate partition, you can get the drivers from the Boot Camp driver disk.  The drivers from the Boot Camp disk can be uncompressed using the non-free unrar in the multiverse repository:&lt;br /&gt;
 * Enable multiverse ( see https://help.ubuntu.com/community/Repositories/Ubuntu ) &lt;br /&gt;
 * Install the packages {{{rar unrar}}} (actually only unrar is truly necessary)&lt;br /&gt;
 * Uncompress the Windows XP Atheros driver installer:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
mkdir ~/atheros&lt;br /&gt;
unrar x atherosxpinstaller.exe ~/atheros/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 * Install the atheros drivers using ndiswrapper:&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ndiswrapper-utils-1.8&lt;br /&gt;
&lt;br /&gt;
#install the driver into ndiswrapper:&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;~/atheros/net5416.inf&amp;quot;&lt;br /&gt;
#--or--&lt;br /&gt;
sudo mount /dev/sda4 /mnt&lt;br /&gt;
sudo ndiswrapper -i &amp;quot;/mnt/Program Files/Macintosh Drivers for Windows XP 1.1.2/net5416/net5416.inf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
sudo modprobe ndiswrapper&lt;br /&gt;
sudo echo &amp;gt;&amp;gt; /etc/modules &amp;quot;ndiswrapper&amp;quot;&lt;br /&gt;
sudo umount /mnt&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Reference: http://paulglover.net/20061210/triple-booting-macbook-os-x-ubuntu-edgy-windows-xp/&lt;br /&gt;
&lt;br /&gt;
=== Wicd ===&lt;br /&gt;
&lt;br /&gt;
In order to fix the wireless for the most recent Linux kernels, you may want to install wicd (http://wicd.net) instead of using network-manager. Follow the instructions for installation on Ubuntu on their website, then use these preferences:&lt;br /&gt;
&lt;br /&gt;
WPA Supplicant Driver: wext&lt;br /&gt;
Wireless Interface: ath0&lt;br /&gt;
Wired Interface: eth0&lt;br /&gt;
&lt;br /&gt;
All of the rest should not matter, except for your specific network settings, you should just leave them alone.&lt;br /&gt;
&lt;br /&gt;
== Brightness ==&lt;br /&gt;
&lt;br /&gt;
Brightness controls should work out-of-the box using HAL and GNOME Power Manager in Ubuntu 7.10.  However, there are a few issues with automatic dimming.  In particular, the automatic dimming feature actually *brightens* the MacBook screen when on AC, and on battery it brightens the screen if the screen brightness has been adjusted to a value below the standard level for battery power.  This is documented in bug [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/137598 #137598] and [https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/63543 #63543]. &lt;br /&gt;
&lt;br /&gt;
Due to these issues, you may want to disable auto-dimming.  This can be done by opening the Gconf Editor (gconf-editor in a Terminal will open it), and unchecking the key &amp;quot;enable&amp;quot; in &amp;quot;apps/gnome-power-manager/backlight&amp;quot;.  If at a later time you want to re-enable this feature (i.e. if the bug is fixed in a future update) simply return to this key and check it instead of unchecking it.&lt;br /&gt;
&lt;br /&gt;
** Easy fix for Macbook Pro Gutsy&lt;br /&gt;
&lt;br /&gt;
I simply went into System &amp;gt; Preferences &amp;gt; Power Management&lt;br /&gt;
 1) I unchecked &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 2) In the &amp;quot;On Battery Power&amp;quot; tab, uncheck &amp;quot;Dim Display when idle&amp;quot;&lt;br /&gt;
 3) in the &amp;quot;General&amp;quot; tab, uncheck &amp;quot;use ambient light to adjust LCD brightness&amp;quot; &amp;lt;&amp;lt;-- This seems to be the main problem, but I kept the other two unchecked just to be sure ;-)&lt;br /&gt;
&lt;br /&gt;
== Suspend ==&lt;br /&gt;
&lt;br /&gt;
Suspend is broken in Ubuntu 7.10 on many first-generation MacBooks as well as some later-generation MacBooks and MacBook Pros [https://bugs.launchpad.net/bugs/151016 #151016].  In particular, these machines will go into suspend, but will not come out of suspend.  This is because the 32bit kernel supplied with 7.10 has some issues which prevent this from working (the x86_64 kernel works correctly out of the box). To fix this you will have to download an older version of the Linux kernel that is known to work.  The latest known version to work is 2.6.22-12, which you can download by installing the packages at the locations pointed to below.  Be sure to install them in the order as they appear here.&lt;br /&gt;
&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-image-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-headers-2.6.22-12-generic/2.6.22-12.39&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-ubuntu-modules-2.6.22-12-generic/2.6.22-12.32&lt;br /&gt;
https://launchpad.net/ubuntu/gutsy/i386/linux-restricted-modules-2.6.22-12-generic/2.6.22.4-12.3&lt;br /&gt;
&lt;br /&gt;
After installing, edit /boot/grub/menu.lst and change the default=0 line to default=2 (if the newly-installed kernel is the third listed in the menu.lst file, which it should be when installed on a stock Gutsy install).&lt;br /&gt;
&lt;br /&gt;
Restart your MacBook for the update to take effect.  You will have to reinstall any wireless drivers you may have installed in the past.&lt;br /&gt;
&lt;br /&gt;
Alternatively, users who prefer a newer kernel to an older one can install the 2.6.24 kernel packages from the upcoming Ubuntu 8.04 release by adding the hardy repositories to their software sources:&lt;br /&gt;
{{{&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy main restricted&lt;br /&gt;
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted&lt;br /&gt;
deb http://security.ubuntu.com/ubuntu hardy-security main restricted&lt;br /&gt;
}}}&lt;br /&gt;
Note: These should not replace the existing gutsy sources, but should be in addition to them.  See the Repositories Howto for more information.&lt;br /&gt;
&lt;br /&gt;
Once the new repositories have been added, and the package list reloaded, installing the new linux-generic should get all the necessary kernel packages from hardy, including linux-image, linux-ubuntu-modules, and linux-restricted-modules.  Once the new packages are installed, disable (but don't remove) the hardy repositories, so that upgrades using apt or synaptic don't result in a complete upgrade to hardy.  The user can periodically re-enable these repositories in order to check for updated kernel packages.&lt;br /&gt;
&lt;br /&gt;
Rebooting into the new kernel ''should'' result in a perfectly suspending MacBook.&lt;br /&gt;
&lt;br /&gt;
On my Macbook (2007), I need to edit /etc/default/acpi-support in the following way:&lt;br /&gt;
&lt;br /&gt;
- change POST_VIDEO=true into POST_VIDEO=false&lt;br /&gt;
&lt;br /&gt;
- Add sky2 in the modules to be removed before suspend and reloaded after: MODULES=&amp;quot;sky2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Note: on my MacBook (2nd gen: Nov 2006), using the hardy kernel as explained above, no change to /etc/default/acpi-support was required.&lt;br /&gt;
&lt;br /&gt;
== Whining noise ==&lt;br /&gt;
&lt;br /&gt;
In order to fix the whining noise that some MacBooks make, you need to install the iSight firmware. To install the iSight firmware, follow the steps listed below under &amp;quot;iSight&amp;quot;.  After installing the firmware and restarting, your MacBook should be whine-free.&lt;br /&gt;
&lt;br /&gt;
Note: The above does not always work. In that case, add the following to /etc/init.d/acpid before exit 0.&lt;br /&gt;
{{{&lt;br /&gt;
echo 2 &amp;gt; /sys/module/processor/parameters/max_cstate&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Fonts &amp;amp; Desktop Effects ==&lt;br /&gt;
&lt;br /&gt;
When using desktop effects (which are enabled by default on most MacBooks), the fonts used for menu bar titles will sometimes be larger than normal.  This issue is described in detail in bug [https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141001 #141001]. &lt;br /&gt;
&lt;br /&gt;
To fix this, in /etc/gdm/gdm.conf change:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
[server-Standard]&lt;br /&gt;
name=Standard server&lt;br /&gt;
-command=/usr/bin/X -br -audit 0 -dpi 96&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X for this to take effect.&lt;br /&gt;
&lt;br /&gt;
== iSight ==&lt;br /&gt;
&lt;br /&gt;
The iSight is currently broken in Ubuntu Hardy, please see&lt;br /&gt;
https://bugs.launchpad.net/ubuntu/+source/linux-ubuntu-modules-2.6.24/+bug/185634&lt;br /&gt;
&lt;br /&gt;
iSight works on Gutsy as long as you either 1) boot OS X before booting Gutsy or 2) install the iSight firmware in Gutsy.&lt;br /&gt;
To install the iSight firmware, perform the following steps, substituting your Mac OS X partition for sda2 and your kernel for 2.6.22-14-generic.  Please note that you need a Mac OS X partition to extract the firmware.&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo mount -t hfsplus /dev/sdax /mnt&lt;br /&gt;
sudo cp /mnt/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/* /lib/firmware/2.6.22-14-generic/&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Also, in /etc/default/acpi-support, edit the line that begins with MODULES such that it reads:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
MODULES=&amp;quot;isight_usb&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart for this to take effect. Once the firmware is functional, the iSight may be used with the &amp;quot;ekiga&amp;quot; program.&lt;br /&gt;
&lt;br /&gt;
To install prerequisites and launch Ekiga (Ekiga may also be launched through the menus), do the following:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install ekiga libpt-plugins-v4l2&lt;br /&gt;
ekiga&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
 1. Configuration. You may have to select the iSight device. Edit &amp;gt; Preferences &amp;gt; Devices &amp;gt; Video Devices &amp;gt;&lt;br /&gt;
 1. Video plugin: V4L2&lt;br /&gt;
 1. Input device: Built-in iSight&lt;br /&gt;
&lt;br /&gt;
If you want to use it in 640x480 mode, then:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
gconftool-2 --type integer --set /apps/ekiga/devices/video/size 1&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Minimum Fan Speed ==&lt;br /&gt;
&lt;br /&gt;
To set a minimum fan speed which may help your MacBook run cooler. Substitute your speed of choice (in RPM) for 3000 if you wish.&lt;br /&gt;
&lt;br /&gt;
First you need to load the appropriate module:&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
then add the following line to /etc/init.d/acpid just before the exit statement:&lt;br /&gt;
{{{&lt;br /&gt;
echo 3000 &amp;gt; /sys/devices/platform/applesmc.768/fan1_min&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Power Consumption ==&lt;br /&gt;
&lt;br /&gt;
PowerTOP is a program that monitors a Linux system and gives suggestions on reducing power consumption. To install PowerTOP, enter this command in a terminal:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo apt-get install build-essential libncurses5-dev libncursesw5-dev&lt;br /&gt;
wget -c http://www.lesswatts.org/projects/powertop/download/powertop-1.9.tar.gz&lt;br /&gt;
tar -xvf powertop-1.9.tar.gz&lt;br /&gt;
cd powertop-1.9&lt;br /&gt;
sudo make&lt;br /&gt;
sudo make install&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
You can also use “checkinstall” instead of “make install” to create a simple .deb for easier removal.&lt;br /&gt;
&lt;br /&gt;
PowerTOP must always be run as root, so use the following command to run it:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo powertop&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== Reducing Drive Load/Unload Cycles ==&lt;br /&gt;
&lt;br /&gt;
My Second Generation (C2D) MacBook is susceptible to a high load/unload cycle count on the hard drive.  This is a workaround to lower the drive cycles and extend the drive life.  Generate the following three files using the commands below:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
echo -e '#!/bin/sh\nhdparm -B 254 /dev/sda' | sudo tee -a /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Add execute permissions to the files:&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo chmod a+x /etc/acpi/start.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/resume.d/99-macbook-fix.sh&lt;br /&gt;
sudo chmod a+x /etc/acpi/suspend.d/99-macbook-fix.sh&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
To have these changes take effect immediately (without requiring a reboot):&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo hdparm -B 254 /dev/sda&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
See [https://bugs.launchpad.net/ubuntu/+source/acpi-support/+bug/59695 this bug] for more details.&lt;br /&gt;
&lt;br /&gt;
note: this is Ubuntu 8.04 &amp;quot;Hardy&amp;quot; on the Second Generation (C2D) MacBook.  I have not tested on previous releases or other models.&lt;br /&gt;
&lt;br /&gt;
== Right/Middle Clicking ==&lt;br /&gt;
&lt;br /&gt;
There are two main approaches to right/middle clicking:&lt;br /&gt;
 * Two/three finger taps via the synaptics touchpad driver by editing xorg.conf&lt;br /&gt;
 * Remapping the functions of keys on the keyboard by editing system keyboard layouts or using xmodmap and a local configuration file&lt;br /&gt;
&lt;br /&gt;
=== Multi-finger taps ===&lt;br /&gt;
See [#touchpadtweaks More touchpad tweaks].&lt;br /&gt;
&lt;br /&gt;
=== Keyboard keys ===&lt;br /&gt;
Enable mouse emulation:&lt;br /&gt;
 * On Ubuntu: Go to '''System ▸ Preferences ▸ Keyboard ▸ Accessibility''' in the Main menu. Check '''Enable keyboard accessibility features'''. Click the ''Mouse Keys'' tab and check '''Enable Mouse Keys''' also. &lt;br /&gt;
 * On Kubuntu: bring up ''System Settings'', find ''Keyboard &amp;amp; Mouse'', choose ''Mouse'' on the left, than the ''Mouse Navigation'' tab, and check the checkbox beside ''Move pointer with keyboard (using the num pad)''. Please note that on Kubuntu you will lose your numpad.&lt;br /&gt;
 * On Xubuntu: Go to '''Applications ▸ Settings ▸ Mouse Settings''' and on the '''Accessibility''' tab, enable the '''Enable mouse emulation''' check box.&lt;br /&gt;
Then '''either''' edit the system files '''or''' use a local configuration file and xmodmap:&lt;br /&gt;
 * Editing system files (choose '''one''' of the following options):&lt;br /&gt;
  * '''option 1:''' lower Enter key = Right Mouse Button, Shift + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
  * '''option 2:''' lower Enter key = Right Mouse Button, Alt Gr key + lower Enter key = Middle Mouse Button&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/KP_Enter/Pointer_Button3, Pointer_Button3, Pointer_Button2, Pointer_Button2/' /etc/X11/xkb/symbols/keypad&lt;br /&gt;
}}}&lt;br /&gt;
 * Using xmodmap and a local configuration file to override the system-wide layouts:&lt;br /&gt;
  * The keycodes for relevant keys are:&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * lower enter - keycode 108&lt;br /&gt;
  * The keysyms for relevant input events are:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * Middle-click - Pointer_Button2&lt;br /&gt;
   * Right-click - Pointer_Button3&lt;br /&gt;
  * Create a text file as ~/.xmodmap containing the following text:&lt;br /&gt;
  ('''Note''': for my set up I use left Apple as Alt Gr, right Apple as middle-click and lower enter as right-click. If you want to use right Apple as Alt Gr then you may need to rethink your keys for clicks assignments.)&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 116 = Pointer_Button2&lt;br /&gt;
keycode 108 = Pointer_Button3&lt;br /&gt;
}}}&lt;br /&gt;
  * Add a call to xmodmap to your startup applications:&lt;br /&gt;
   * On Xubuntu: Go to '''Applications ▸ Settings ▸ Autostarted Applications''', click the '''Add''' button, fill in the '''Name''' and '''Description''' fields and put the following into the '''Command''' field:&lt;br /&gt;
   {{{&lt;br /&gt;
xmodmap ~/.xmodmap&lt;br /&gt;
}}}&lt;br /&gt;
   Then click '''OK''' and '''Close'''.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Motion Sensor ==&lt;br /&gt;
&lt;br /&gt;
The motion sensor doesn't support disk parking yet ([https://bugs.launchpad.net/bugs/139881 bug #139881]), but you can play physical neverball :-)&lt;br /&gt;
&lt;br /&gt;
{{{&lt;br /&gt;
sudo modprobe applesmc&lt;br /&gt;
echo applesmc | sudo tee -a /etc/modules&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Then fire up neverball... (or any other game that uses a joystick)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Keyboard layouts ==&lt;br /&gt;
&lt;br /&gt;
(Xubuntu 7.10 UK MacBook) There are some MacBook / MacBook Pro keyboard models defined in xkb, however, I have found that the Apple Laptop model with layout as ''gb'' (for my UK MacBook) and variant as ''mac'' with the xmodmap configuration as below. Maybe this approach will work well for others.&lt;br /&gt;
&lt;br /&gt;
To make the keyboard usable, for an international keyboard layout:&lt;br /&gt;
## TODO cjwatson 2007-03-27: is this still required in Ubuntu 7.04? Changes like this won't be preserved on upgrade any more, so aren't recommended.&lt;br /&gt;
&lt;br /&gt;
 * The GUI way:&lt;br /&gt;
 Bring up the ''Keyboard Preferences'' window with '''System ▸ Preferences ▸ Keyboard''' from the Main menu. Click on the '''Keyboard Layout Options''' tab, and find '''Third level choosers'''. Mark the ''right Win key'' as third level chooser. Now your right Apple key works as Alt Gr.&lt;br /&gt;
 * The console way, editing system files:&lt;br /&gt;
  * Alt Gr for right Apple key&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ '/xkb_symbols &amp;quot;ralt_switch&amp;quot; {/a\  include &amp;quot;level3(rwin_switch)&amp;quot;' /etc/X11/xkb/symbols/level3&lt;br /&gt;
}}}&lt;br /&gt;
  * Fix swapped keys&lt;br /&gt;
  {{{&lt;br /&gt;
sudo sed -i~ 's/    &amp;lt;LSGT&amp;gt; =  94;/    &amp;lt;LSGT&amp;gt; =  49;\n    &amp;lt;TLDE&amp;gt; =  94;/' /etc/X11/xkb/keycodes/xfree86&lt;br /&gt;
}}}&lt;br /&gt;
 * The console way, using xmodmap and a local configuration file:&lt;br /&gt;
  * keycodes for relevant keys:&lt;br /&gt;
   * left Apple - keycode 115&lt;br /&gt;
   * right Apple - keycode 116&lt;br /&gt;
   * § or ± (UK MacBook key beneath escape) - keycode 49&lt;br /&gt;
   * ` or ~ (UK MacBook key left of z) - keycode 94&lt;br /&gt;
  * keysyms for relevant characters/functions:&lt;br /&gt;
   * Alt Gr - ISO_Level3_Shift&lt;br /&gt;
   * § or ± - section plusminus&lt;br /&gt;
   * ` or ~ - grave tilde&lt;br /&gt;
  * To fix the swapped keys and make left Apple equivalent to Alt Gr, edit a text file at ~/.xmodmap (create it if it doesn't exist) adding the following lines:&lt;br /&gt;
  {{{&lt;br /&gt;
keycode 115 = ISO_Level3_Shift&lt;br /&gt;
keycode 49 = section plusminus&lt;br /&gt;
keycode 94 = grave asciitilde&lt;br /&gt;
}}}&lt;br /&gt;
  Then add {{{xmodmap ~/.xmodmap}}} to your start up.&lt;br /&gt;
&lt;br /&gt;
'''Restart X (Ctrl+Alt+Backspace) for the changes to take effect.'''&lt;br /&gt;
&lt;br /&gt;
To swap the fn key behaviour:&lt;br /&gt;
{{{&lt;br /&gt;
#Add one of these commands to /etc/rc.local&lt;br /&gt;
echo -n 0x01 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN on (like OSX)&lt;br /&gt;
echo -n 0x02 &amp;gt; /sys/module/hid/parameters/pb_fnmode #FN off (press fn for volume/brightness/etc)&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Screen Colors (optional) ==&lt;br /&gt;
To calibrate the screen colors (in order to match OS X), you need to install ''xcalib''.  This isn't available in the Ubuntu repositories, so you'll have to download it.&lt;br /&gt;
&lt;br /&gt;
Go to http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/ and (if you are running `i386`) download the newest Linux binary; save it to the Desktop.  (If you are running `amd64`, you'll need to compile it from source; make sure to install `libxxf86vm-dev` and `libxext-dev` first, and then simply `make xcalib` in the extracted source directory.  Take the resulting `xcalib` binary and continue with these instructions.)&lt;br /&gt;
&lt;br /&gt;
To install and configure it, you will need to do a few things in the terminal and mount a Mac OS X partition (to copy your color profile) as follows (substitute your Mac OS partition's partition number for 2 in /dev/sda2, 2 being the first standard partition):&lt;br /&gt;
{{{&lt;br /&gt;
sudo mv ~/Desktop/xcalib /usr/local/bin/xcalib&lt;br /&gt;
sudo chmod 755 /usr/local/bin/xcalib&lt;br /&gt;
sudo mount -t hfsplus /dev/sda2 /mnt&lt;br /&gt;
sudo cp /mnt/Library/ColorSync/Profiles/Displays/* /usr/local/etc&lt;br /&gt;
}}}&lt;br /&gt;
Then, do an &amp;quot;ls /usr/local/etc&amp;quot; and note the name of the profile (for the next step).&lt;br /&gt;
&lt;br /&gt;
Finally, add the following line to the end of either `/etc/gdm/Init/Default` (for standard Ubuntu/Gnome) or `/etc/kde3/kdm/Xsetup` (for Kubuntu/KDE), before the final &amp;quot;exit&amp;quot; statement:&lt;br /&gt;
{{{&lt;br /&gt;
/usr/local/bin/xcalib &amp;quot;/usr/local/etc/&amp;lt;insert name of profile here&amp;gt;&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Restart X (Ctrl-Alt-Backspace) and your Mac OS X color profile will load as X starts.&lt;br /&gt;
&lt;br /&gt;
== Fonts like Mac OS X (optional) ==&lt;br /&gt;
&lt;br /&gt;
By default, Ubuntu uses a style of font rendering different than that used on Mac OS X.  You may prefer fonts similar to those on Mac OS X, and you can have these on Ubuntu by doing the following:&lt;br /&gt;
&lt;br /&gt;
1. Open a terminal and do &amp;quot;sudo dpkg-reconfigure fontconfig-config&amp;quot;.  Set font hinting to &amp;quot;None&amp;quot; and leave the rest of the options as default.&lt;br /&gt;
2. Paste the following into a new file entitled &amp;quot;/etc/fonts/conf.d/lcd-legacy.conf&amp;quot;:&lt;br /&gt;
{{{&lt;br /&gt;
&amp;lt;fontconfig&amp;gt;&lt;br /&gt;
  &amp;lt;edit name=&amp;quot;lcdfilter&amp;quot; mode=&amp;quot;assign&amp;quot;&amp;gt;&amp;lt;const&amp;gt;legacy&amp;lt;/const&amp;gt;&amp;lt;/edit&amp;gt;&lt;br /&gt;
&amp;lt;/fontconfig&amp;gt;&lt;br /&gt;
}}}&lt;br /&gt;
3. Install any fonts you commonly use on Mac OS X. (Note: the Microsoft Core Fonts - which are commonly used in Office documents and online - can be installed using Add/Remove Programs).&lt;br /&gt;
4. Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Anchor(touchpadtweaks)]]&lt;br /&gt;
== More touchpad tweaks ==&lt;br /&gt;
&lt;br /&gt;
To enable touchpad scrolling/tapping/right-click:&lt;br /&gt;
&lt;br /&gt;
You will need to edit the xorg.conf file (in /etc/X11/xorg.conf)&lt;br /&gt;
&lt;br /&gt;
'''For more information than is available below, read {{{man synaptics}}}!'''&lt;br /&gt;
&lt;br /&gt;
Replace the Synaptics Touchpad InputDevice section with the following:&lt;br /&gt;
 * Basic device definition layout:&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
'''...insert other options from below here...'''&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * General options affecting the touchpad edge areas, speed, touch sensitivity, etc. Note that if not using edge scrolling, the edge boundaries can probably be decreased but the edge offsets will need to be reasonable (as below?) if edge scrolling is being used.:&lt;br /&gt;
 {{{&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting taps for button clicks:&lt;br /&gt;
  Buttons 1, 2 and 3 correspond to the left, middle and right mouse buttons respectively. If you set the values to 0, the method will be disabled. The ''TapButton'' options are for one, two or three finger taps. The ''CornerButton'' options are for one finger taps in the right-top (''RT''), right-bottom (''RB''), left-top (''LT'') and left-bottom (''LB'') corners of the touchpad. Generally you will want to use either corner taps or multi-finger taps, not both.&lt;br /&gt;
  * Multi-finger taps&lt;br /&gt;
   The following example uses a one-finger tap for left-click, a two-finger tap for right-click and a three-finger tap for middle-click (and the physical button can still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * One-finger corner taps&lt;br /&gt;
   The following example uses the right-bottom corner for middle-click and left-bottom corner for right-click (and the physical button is still used for left-click):&lt;br /&gt;
   {{{&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Options affecting scrolling:&lt;br /&gt;
 You can either use edge scrolling or two-finger scrolling (as in Mac OS X) but you won't generally want to use both.&lt;br /&gt;
  * Scrolling speed&lt;br /&gt;
  The following options affect how far you have to move your finger across the touchpad to affect a scroll. Smaller values should make scrolling faster.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Edge scrolling&lt;br /&gt;
  The following options toggle whether moving a finger along an edge of the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
  * Two-finger scrolling&lt;br /&gt;
  The following options toggle whether moving two fingers horizontally or vertically over the touchpad invokes scrolling. Set to 0 to disable.&lt;br /&gt;
  {{{&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
}}}&lt;br /&gt;
 * Additional useful information&lt;br /&gt;
  * Firefox horizontal scrolling behavior&lt;br /&gt;
  With two finger scrolling enabled, you will probably want to change Firefox's horizontal scrolling behavior.  To do so, open Firefox, go to the URL &amp;quot;about:config&amp;quot;, and change the following settings:&lt;br /&gt;
  {{{&lt;br /&gt;
mousewheel.horizscroll.withnokey.action from 2 to 0&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines from -1 to 1&lt;br /&gt;
}}}&lt;br /&gt;
  * Disable the touchpad temporarily while typing&lt;br /&gt;
  It is useful to have the touchpad not use click or scroll events while you are typing. The information for this was found [http://ubuntu.wordpress.com/2006/09/20/disable-touchpad-temporarily-when-typing/ here]. Make syndaemon start up by default each time you login, add it to the list of Startup Programs in System-&amp;gt;Preferences-&amp;gt;Sessions. Add the following command:&lt;br /&gt;
  {{{&lt;br /&gt;
syndaemon -t -d&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
'''Restart X for changes to take effect with Ctrl-Alt-Backspace'''&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
 * Example 1&lt;br /&gt;
 With the following settings, two finger scrolling is enabled as in Mac OS X. Right-click is done by tapping the bottom-left corner of the touchpad, and middle-click is done by tapping the bottom-right corner of the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;150&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1070&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;310&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;25&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
 * Example 2&lt;br /&gt;
 With the following settings the Synaptics Touchpad configuration should be closer to Mac OS X. Right-click using a two-finger tap and scroll by moving two fingers across the touchpad.&lt;br /&gt;
 {{{&lt;br /&gt;
Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier      &amp;quot;Synaptics Touchpad&amp;quot;&lt;br /&gt;
        Driver          &amp;quot;synaptics&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SendCoreEvents&amp;quot;        &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Device&amp;quot;                &amp;quot;/dev/psaux&amp;quot;&lt;br /&gt;
        Option          &amp;quot;Protocol&amp;quot;              &amp;quot;auto-dev&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SHMConfig&amp;quot;             &amp;quot;true&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LeftEdge&amp;quot;              &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RightEdge&amp;quot;             &amp;quot;1200&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TopEdge&amp;quot;               &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;BottomEdge&amp;quot;            &amp;quot;370&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerLow&amp;quot;             &amp;quot;10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;FingerHigh&amp;quot;            &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapTime&amp;quot;            &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxTapMove&amp;quot;            &amp;quot;220&amp;quot;&lt;br /&gt;
        Option          &amp;quot;SingleTapTimeout&amp;quot;      &amp;quot;100&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxDoubleTapTime&amp;quot;      &amp;quot;180&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LockedDrags&amp;quot;           &amp;quot;off&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MinSpeed&amp;quot;              &amp;quot;1.10&amp;quot;&lt;br /&gt;
        Option          &amp;quot;MaxSpeed&amp;quot;              &amp;quot;1.30&amp;quot;&lt;br /&gt;
        Option          &amp;quot;AccelFactor&amp;quot;           &amp;quot;0.08&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton1&amp;quot;            &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton2&amp;quot;            &amp;quot;3&amp;quot;&lt;br /&gt;
        Option          &amp;quot;TapButton3&amp;quot;            &amp;quot;2&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;RBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LTCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;LBCornerButton&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertScrollDelta&amp;quot;       &amp;quot;20&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizScrollDelta&amp;quot;      &amp;quot;50&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizEdgeScroll&amp;quot;       &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertEdgeScroll&amp;quot;        &amp;quot;0&amp;quot;&lt;br /&gt;
        Option          &amp;quot;VertTwoFingerScroll&amp;quot;   &amp;quot;1&amp;quot;&lt;br /&gt;
        Option          &amp;quot;HorizTwoFingerScroll&amp;quot;  &amp;quot;1&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
== DVI Output (gutsy) ==&lt;br /&gt;
 [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.06.1_on_a_ThinkPad_R60e#Ubuntu_7.10_with_Intel_Graphics_Media_Accelerator_950 These instructions] worked perfectly for setting DVI output on my MacBook.&lt;br /&gt;
 &lt;br /&gt;
 [http://ubuntu-tutorials.com/2007/11/25/extended-video-on-the-macbook-xrandr-ftw/ extended display] - These instructions worked for me. A little more to the point than the above link.&lt;br /&gt;
&lt;br /&gt;
 Warning: Screen and Graphics Preferences is currently dangerous. It completely broke my /etc/X11/xorg.conf on my first reconfiguration attempt.&lt;br /&gt;
&lt;br /&gt;
== Misc ==&lt;br /&gt;
This is useful if you already have too many partitions on your macbook and want to put the swap file directly on the main / partition.&lt;br /&gt;
 {{{&lt;br /&gt;
dd if=/dev/zero of=/swapfile bs=1024 count=2048000&lt;br /&gt;
mkswap /swapfile&lt;br /&gt;
swapon /swapfile&lt;br /&gt;
edit fstab:&lt;br /&gt;
 /swapfile               swap                    swap    defaults        0 0&lt;br /&gt;
}}}&lt;br /&gt;
&lt;br /&gt;
Note: You can use suspend on disk with a swapfile. To do that we have to add an option passed to the kernel. Add the resume=/dev/&amp;lt;partition&amp;gt; resume_offset=&amp;lt;offset to the swapfile in blocks&amp;gt; :&lt;br /&gt;
 {{{&lt;br /&gt;
sudo filefrag -v /swapfile&lt;br /&gt;
#output : First block: 102300&lt;br /&gt;
}}}&lt;br /&gt;
Copy the first block number of the swapfile (ex:102300) and edit the defoptions line of /boot/grub/menu.lst :&lt;br /&gt;
  {{{&lt;br /&gt;
# defoptions=quiet splash resume=/dev/sda3 resume_offset=102300&lt;br /&gt;
}}}&lt;br /&gt;
The update your grub configuration :&lt;br /&gt;
  {{{&lt;br /&gt;
sudo update-grub&lt;br /&gt;
}}}&lt;br /&gt;
On this example, the swapfile is on partition /dev/sda3.&lt;br /&gt;
You are now able to use suspend on disk (hibernate).&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
References:&lt;br /&gt;
 * [http://www.apple.com/macbook/ Apple - MacBook]&lt;br /&gt;
 * [http://doc.gwos.org/index.php/UbuntuOnApple Ubuntu on Apple - Mac Mini]&lt;br /&gt;
 * [http://bin-false.org/?p=17 /bin/false –help » Installing Ubuntu Linux on a MacBook (Dual Boot)]&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/ Mactel: Linux on the MacBook Pro]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=198453 Ubuntu on MacBook Pro - Ubuntu Forums]&lt;br /&gt;
 * [https://wiki.ubuntu.com/MacBookProFeisty (k)ubuntu fiesty 7.04 on a MacBookPro]&lt;br /&gt;
 * [http://www.mactel-linux.org/wiki/Dual_Booting Dual Booting - Mactel-Linux]&lt;br /&gt;
 * [http://ubuntuforums.org/showthread.php?t=225621 Built-in iSight Howto, Intel Mac ( iMac, Macbook ) - Ubuntu Forums]&lt;br /&gt;
 * [http://ubuntu-tutorials.com/2007/08/02/installing-ubuntu-on-a-macbook-tutorial-beta/ Nearly Complete Installation Tutorial]&lt;br /&gt;
&lt;br /&gt;
 * [http://modular.math.washington.edu/macbook/suspend2/ suspend2]&lt;br /&gt;
CategoryCleanup CategoryAudio&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T02:45:45Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T02:45:06Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: insertando bandera de Traducción&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:SPEngUs2.png]]&amp;amp;nbsp;Página traduciendose de la documentación original [[https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Archivo:SPEngUs2.png</id>
		<title>Archivo:SPEngUs2.png</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Archivo:SPEngUs2.png"/>
				<updated>2008-05-24T02:43:24Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: Bandera de traduccion Eng-Esp&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bandera de traduccion Eng-Esp&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Macbook</id>
		<title>Macbook</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Macbook"/>
				<updated>2008-05-24T02:38:29Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: aviso tratuducción&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:Ejemplo.jpg]]Página traduciendose de la documentación original [[https://help.ubuntu.com/community/MacBook?highlight=(macbook)&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Instalaci%C3%B3n_en_MacIntel</id>
		<title>Instalación en MacIntel</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Instalaci%C3%B3n_en_MacIntel"/>
				<updated>2008-05-24T02:31:11Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: añadiendo unos br&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Instalando Ubuntu X en:&lt;br /&gt;
Los odenadores de ultima generación (2006,2007,2008) de apple dejaron de contener Microprocesares PPC(Power PC) para llevar procesadores Intel, tambien otra de las carácteristicas es que no tienen bios sino efi. Como cada modelo tiene sus peculiaridades se ha decido separar los diferentes tipos de ordenadores para establecer mejor sus peculiaridades en el interior. Tambien las peculiaridades de las versiones a instalar serán especificadas en el interior del equipo(macbook no pro,macbook pro...)&amp;lt;br&amp;gt;&lt;br /&gt;
[[Macbook]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[MacBook Santa Rosa]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Macbook Pro]]&amp;lt;br&amp;gt;&lt;br /&gt;
[[Macbook Air]]&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Instalaci%C3%B3n_en_MacIntel</id>
		<title>Instalación en MacIntel</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Instalaci%C3%B3n_en_MacIntel"/>
				<updated>2008-05-24T02:19:38Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: instalación en macintel pagina intermedia&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Instalando Ubuntu X en:&lt;br /&gt;
Los odenadores de ultima generación (2006,2007,2008) de apple dejaron de contener Microprocesares PPC(Power PC) para llevar procesadores Intel, tambien otra de las carácteristicas es que no tienen bios sino efi. Como cada modelo tiene sus peculiaridades se ha decido separar los diferentes tipos de ordenadores para establecer mejor sus peculiaridades en el interior. Tambien las peculiaridades de las versiones a instalar serán especificadas en el interior del equipo(macbook no pro,macbook pro...)&lt;br /&gt;
[[Macbook]]&lt;br /&gt;
[[MacBook Santa Rosa]]&lt;br /&gt;
[[Macbook Pro]]&lt;br /&gt;
[[Macbook Air]]&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Instalaci%C3%B3n_avanzada</id>
		<title>Instalación avanzada</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Instalaci%C3%B3n_avanzada"/>
				<updated>2008-05-22T16:49:46Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: añadir macintel&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''(Revisar traducción)'''&lt;br /&gt;
&lt;br /&gt;
Utiliza este tipo de instalaciones solo si la [[instalación estándar]] te da problemas.&lt;br /&gt;
&lt;br /&gt;
== Instalación en Mac con procesador intel ==&lt;br /&gt;
Instalación de ubuntu en ordenadores con procesador intel ejemplo: Macbook,MacbookPro...&lt;br /&gt;
* Si tienes un ordenador '''CoreDuo/Core2Duo Apple Mac - Procesador Intel sin Bios''', ver [[Instalación en MacIntel]]&lt;br /&gt;
&lt;br /&gt;
== Instalación utilizando un CD Alternativo (Alternate CD) ==&lt;br /&gt;
Si tu ordenador no permite ejecutar un CD de instalación Desktop (escritorio) estandar, puedes utilizar un CD de instalación Alternativo en su lugar. El CD alternativo permite unas opciones de instalación más avanzadas que no están habilitadas en el CD Desktop.&lt;br /&gt;
&lt;br /&gt;
* Si tienes un ordenador '''x86''', ver [[Instalación i386]]. La mayoría de gente tiene un ordenador x86.&lt;br /&gt;
* Si tienes un ordenador '''AMD 64-bit''', la instalación es exactamente igual a la de un x86.&lt;br /&gt;
* Si tienes un ordenador '''PowerPC (Apple Mac)''', ver [[Instalación Power Pc|Instalación Power PC]]&lt;br /&gt;
* Si tienes un ordenador '''SPARC''', así como un UltraSPARC T1 (Niagara), ver [https://help.ubuntu.com/community/Installation/Sparc Instalación Sparc]&lt;br /&gt;
* Si tienes una 'Sony Play Station 3', ver [https://help.ubuntu.com/community/PlayStation_3 PlayStation 3]&lt;br /&gt;
&lt;br /&gt;
== Instalación sin CD ==&lt;br /&gt;
Los documentos listados abajo proporcionan instrucciones para instalar Ubuntu sin utilizar disco CD o CD-rom .&lt;br /&gt;
&lt;br /&gt;
* [[Administrador de arranque inteligente]] – Instalar desde un PC que no inicia desde CD.&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/FromUSBStick Desde Stick USB] – Instalación desde una memoria USB&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/WithFloppies Con Floppies] – Instalar sin CD desde red&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/FromHardDriveWithFloppies Desde Disco Duro con Floppies] – Instalando sin CD o utilidades de red desde un disco duro.&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/FromWindows Desde Windows] – Instalación desde Windows sin utilizar floppies, CD u otro dispositivo extraible&lt;br /&gt;
* [[Instalación desde Linux]] – Instalando desde un sistema Linux existente sin dispositivos extraíbles.&lt;br /&gt;
&lt;br /&gt;
== Actualizando una instalación previa ==&lt;br /&gt;
&lt;br /&gt;
Si tienes una versión Antigua de ubuntu u otra distribución Linux, lee las notas de actualización a continuación para actualizar a una nueva versión de Ubuntu.&lt;br /&gt;
&lt;br /&gt;
* [[Actualizando desde Ubuntu]] -  Actualizar desde una version Antigua de Ubuntu a la última versión.&lt;br /&gt;
&lt;br /&gt;
== Instalaciones en Servidores y red ==&lt;br /&gt;
Para instalar Ubuntu a través de una red o de internet, ver las guias siguientes  para más instrucciones.&lt;br /&gt;
&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/OnNFSDrive OnNFSDrive] – Instalando en un servidor NFS y utilizando clientes diskless .&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/OverSSH OverSSH] – Instalando en un servidor dedicado a través de ssh.&lt;br /&gt;
* [[Instalación Netboot]] – Instalando desde la red, por ejemplo. sin unidad CD-ROM o con una unidad de CDROM SCSI sin arranque.&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/LocalNet LocalNet] – Instalando desde un servidor local, utilizando DHCP, TFTP y PXE&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/WithFloppies WithFloppies] – Instalando sin CD a través de una red&lt;br /&gt;
&lt;br /&gt;
== Instalando en un disco duro externo o RAID ==&lt;br /&gt;
&lt;br /&gt;
Para instalar Ubuntu en un disco duro externo o RAID array, ver las guías siguientes para más instrucciones. '''(falta traducir)'''&lt;br /&gt;
&lt;br /&gt;
* [https://help.ubuntu.com/community/BootFromFirewireHardDisk BootFromFirewireHardDisk] – Iniciando Linux desde un disco duro Firewire.&lt;br /&gt;
* [https://help.ubuntu.com/community/BootFromUSB BootFromUSB] – Iniciando un sistema Ubuntu en un disco duro USB en ordenadores que no pueden iniciar desde USB (utilizando un inicio de CD)&lt;br /&gt;
* [https://wiki.ubuntu.com/LiveUsbPendrivePersistent LiveUsbPendrivePersistent] – Instalar Ubuntu o Kubuntu en un pendrive USB con  persistent mode&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/LVMOnRaid LVMOnRaid] –Installing onto a Software RAID Array, with all partitions on RAID and LVM (including root and boot)&lt;br /&gt;
* [https://help.ubuntu.com/community/FakeRaidHowto FakeRaidHowto] - Installing onto a BIOS RAID array&lt;br /&gt;
&lt;br /&gt;
== Instalaciones mínimas ==&lt;br /&gt;
Si tienes un ordenador antiguo o con una cantidad de memoria pequeña, ver las guías siguientes para obtener ayuda en la instalación de Ubuntu.&lt;br /&gt;
&lt;br /&gt;
* [[Sistemas con baja memoria]] – Instalar ubuntu en ordenadores antiguos con poca memoria&lt;br /&gt;
* [[Mejorar rendimiento en equipos de gama baja]] – Hacer el interfaz más rápido en máquinas con poca memoria&lt;br /&gt;
* [[Instalar CD mínimo]] – Desde un CD mínimo descargando paquetes durante la instalación&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Otras guías de instalación ==&lt;br /&gt;
&lt;br /&gt;
Las siguientes guias cubren varios temas diferentes que conciernen a la instalación.&lt;br /&gt;
&lt;br /&gt;
* [https://help.ubuntu.com/community/VirtualMachines Máquinas Virtuales] – Utilizar ubuntu con VMware y XEN&lt;br /&gt;
* [https://help.ubuntu.com/community/WindowsDualBoot Windows Dual Boot] – Instalar Ubuntu en el mismo disco duro de una instalación existente de Windows&lt;br /&gt;
* [[Transferir ficheros y configuraciones|Transferir ficheros y configuraciones desde Windows]] – Instrucciones de como transferir datos desde aplicaciones comunes de Windows a sus equivalents en Ubuntu&lt;br /&gt;
* [[Introducción a Ubuntu para usuarios Windows]] – Guía de iniciación a Ubuntu para usuarios de Windows viendo las diferencias.&lt;br /&gt;
* [[Disco duro|Particionar]] – Dividir tu disco duro de manera seguro en partes más pequeñas&lt;br /&gt;
* [[32bit en AMD64]] - Instalar sin errores Ubuntu i386 en un sistema AMD64-bit. &lt;br /&gt;
* [https://help.ubuntu.com/community/InstallCDCustomization Instalar CD Personalizado] – Personalizando  el instalador Alternate o instalación de CD Server. &lt;br /&gt;
* [https://wiki.ubuntu.com/Booting Ubuntu:Booting] - Explicación del proceso de inicio y problemas en dispositivos de inicio&lt;br /&gt;
* [https://help.ubuntu.com/community/Installation/FromKnoppix Desde Knoppix] – Instrucciones de instalación desde Knoppix, si el instalador de ubuntu no funciona..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Fuente: https://help.ubuntu.com/community/Installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Categorías --&amp;gt;&lt;br /&gt;
[[Categoría:Instalación avanzada]] [[Categoría:Revisar]]&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Instalaci%C3%B3n</id>
		<title>Instalación</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Instalaci%C3%B3n"/>
				<updated>2008-05-22T16:31:14Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: ejemplos aclaratorios&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Este apartado, por ser muy genérico, podría ser una especie de indice a aspectos Básicos que alguien duda acerca de la instalación (particionamiento, etc) aunque se repitan los apartados más adelante.&lt;br /&gt;
&lt;br /&gt;
{{Herramientas&lt;br /&gt;
| Foro = 2&lt;br /&gt;
| herramienta1 = [[Gparted]]&lt;br /&gt;
| herramienta2 =&lt;br /&gt;
| herramienta3 =&lt;br /&gt;
| sitio1 = [https://help.ubuntu.com/community/CommonQuestions#head-593abe9d75618b67713ee23761b5cccf99befcbb Common Questions] en [https://help.ubuntu.com/ Ubuntu Documentation] {{en}}&lt;br /&gt;
| sitio2 = [https://help.ubuntu.com/community/Installation Instalación] en [https://help.ubuntu.com/ Ubuntu Documentation] {{en}}&lt;br /&gt;
| sitio3 =&lt;br /&gt;
| hardware compatible =&lt;br /&gt;
}}&lt;br /&gt;
=== Pasos previos a la instalación ===&lt;br /&gt;
:* [[Qué CD escojo|Descarga de CD]]&lt;br /&gt;
 &lt;br /&gt;
:* [[Grabar Iso|Grabación de ISO]]&lt;br /&gt;
&lt;br /&gt;
:* [[disco_duro|Particionado y redimensión de disco duro]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== [[Instalación estándar]] ===&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Proceso de instalación básica de Ubuntu (modo gráfico)&lt;br /&gt;
(PC's)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== [[Instalación avanzada]] ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cómo instalar Ubuntu en equipos antiguos o con necesidades especiales.&lt;br /&gt;
&lt;br /&gt;
(Otras Tecnologías ej.: Mac-Intel)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Categorías --&amp;gt;&lt;br /&gt;
[[Categoría:Instalación]]&lt;br /&gt;
__NOTOC__&lt;br /&gt;
__NOEDITSECTION__&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Discusi%C3%B3n:Instalaci%C3%B3n</id>
		<title>Discusión:Instalación</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Discusi%C3%B3n:Instalaci%C3%B3n"/>
				<updated>2008-05-22T16:28:04Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: Removing all content from page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Discusi%C3%B3n:Instalaci%C3%B3n</id>
		<title>Discusión:Instalación</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Discusi%C3%B3n:Instalaci%C3%B3n"/>
				<updated>2008-05-22T16:24:09Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: Instalacion , creación subpaginas para los no pc's&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Esta página se debería de llamar instalación en Pc's &lt;br /&gt;
&lt;br /&gt;
En Mac(macintel es la que conozco) no se instala así y dentro de mac por ejemplo estaría instalación en macintel(Mac con procesadores macintel) e instalación PPC&lt;br /&gt;
&lt;br /&gt;
Propongo por tanto Página instalación y dentro, páginas con enlaces con las diferentes tecnologías que son especiales (ej.: los macintel no tienen bios)&lt;br /&gt;
&lt;br /&gt;
Instalación de ubuntu en pc's&lt;br /&gt;
&lt;br /&gt;
Instalación de ubuntu en mac&lt;br /&gt;
&lt;br /&gt;
   Instalación mac-intel&lt;br /&gt;
   Instalación PPC&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
--[[Usuario:Carsses|carsses]] 18:24 22 may 2008 (CEST)&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Usuario:Carsses</id>
		<title>Usuario:Carsses</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Usuario:Carsses"/>
				<updated>2008-04-20T10:17:40Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: New page: Mi página en ubuntu :-)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mi página en ubuntu :-)&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Usuario_discusi%C3%B3n:Kelp</id>
		<title>Usuario discusión:Kelp</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Usuario_discusi%C3%B3n:Kelp"/>
				<updated>2008-04-18T21:59:41Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: /* Agradecimiento */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Hola==&lt;br /&gt;
&lt;br /&gt;
He estado buscando una lista de administradores, pero no la he encontrado, así que me fuí al historia de edición de la portada, y allí encontré tu nombre.&lt;br /&gt;
&lt;br /&gt;
Quería avisar de que el logo (doc.ubuntu-es) que hay en la parte superior izquierda me tapa parte del panel de usuario. Es decir, que la &amp;quot;parte invisible&amp;quot; del logo se superpone a los enlaces a mi página de usuario y discusión. Por lo tanto, cuando intento cliquear en mi nombre de usuario para ir a mi página de usuario, en realidad acabo yendo a la portada, que es el enlace al que lleva el logo.&lt;br /&gt;
&lt;br /&gt;
En fin, que si hubiese manera de que la imagen no se superpusiera, pues genial. De todas formas, tengo alguna experiencia en [http://gl.wikipedia.org/wiki/Usuario:Gallaecio wikis], y me las puedo apañar, pero supongo que tarde o temprano le pasará a más gente.&lt;br /&gt;
&lt;br /&gt;
Muchas gracias por adelantado, y felicidades por el proyecto que estais levantando. Promete. --[[Usuario:Gallaecio|Gallaecio]]&amp;lt;sup&amp;gt;[[Usuario_Discusión:Gallaecio|¿Y luego?]]&amp;lt;/sup&amp;gt; 01:16 25 nov 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
==Licencia de doc.ubuntu-es==&lt;br /&gt;
&lt;br /&gt;
¿Por qué este wiki no usa licencia GNU GPL? Hay otras wikis de documentación que las usan (Wikifonts, Wikibooks...) y no han tenido problemas. Además, la única diferencia que veo con la de Creative Commons que se está utilizando es el reconocimiento del autor, lo cual no es necesario para una documentación de ayuda. --[[Usuario:Gallaecio|Gallaecio]]&amp;lt;sup&amp;gt;[[Usuario_Discusión:Gallaecio|¿Y luego?]]&amp;lt;/sup&amp;gt; 12:59 25 nov 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Gracias por tus correcciones y consejos ==&lt;br /&gt;
&lt;br /&gt;
Pues eso, que gracias.  Estoy en ello.  Lo de hacer subpáginas no sabía que se podía hacer. Ahora no se como, pero lo averiguaré.&lt;br /&gt;
Saludos.--[[Usuario:Suso|Suso]] 20:44 11 dic 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== ¿Me puedes ayudar? ==&lt;br /&gt;
Tengo un problema con la ordenación de las categorías:&lt;br /&gt;
*[http://doc.ubuntu-es.org/Categoría:Virtualización Categoría:Virtualización  ]  &lt;br /&gt;
*[http://doc.ubuntu-es.org/Categoría:Máquinas_virtuales  Categoría:máquinas virtuales.] &lt;br /&gt;
He estado incluyéndolas en los artículos del [[P:V]], pero las de virtualización me aparece casi todas en la '''V''' y no en las letras que les corresponde.  En la otra categoría, aparecen bien.  ¿Tienes alguna idea?.  Gracias. --[[Usuario:Suso|Suso]] 14:22 8 feb 2008 (CET)&lt;br /&gt;
::Entiendo lo que me dices.  Lo que es peor, lo había leído pero no procesado.  Esta tarde trataré de arreglarlo.  Gracias. --[[Usuario:Suso|Suso]] 14:38 8 feb 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== Buen Administrador ==&lt;br /&gt;
&lt;br /&gt;
Kelp para mí ha sido uno de los mejores administradores de Ubuntu-es.&lt;br /&gt;
&lt;br /&gt;
[[Usuario:Marcianisto|Marcianisto]] 04:04 2 mar 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== Agradecimiento ==&lt;br /&gt;
&lt;br /&gt;
No se si es un proceso automatizado, sea como sea, me ha gustado recibir la bievenida tener el mensaje en mi discusión, me parece una excelente aclaratoria y motivadora idea.&lt;br /&gt;
&lt;br /&gt;
Un saludo.&lt;br /&gt;
--[[Usuario:Carsses|JCasares]] 23:59 18 abr 2008 (CEST)&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Usuario_discusi%C3%B3n:Kelp</id>
		<title>Usuario discusión:Kelp</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Usuario_discusi%C3%B3n:Kelp"/>
				<updated>2008-04-18T21:57:45Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: Agradecimiento&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Hola==&lt;br /&gt;
&lt;br /&gt;
He estado buscando una lista de administradores, pero no la he encontrado, así que me fuí al historia de edición de la portada, y allí encontré tu nombre.&lt;br /&gt;
&lt;br /&gt;
Quería avisar de que el logo (doc.ubuntu-es) que hay en la parte superior izquierda me tapa parte del panel de usuario. Es decir, que la &amp;quot;parte invisible&amp;quot; del logo se superpone a los enlaces a mi página de usuario y discusión. Por lo tanto, cuando intento cliquear en mi nombre de usuario para ir a mi página de usuario, en realidad acabo yendo a la portada, que es el enlace al que lleva el logo.&lt;br /&gt;
&lt;br /&gt;
En fin, que si hubiese manera de que la imagen no se superpusiera, pues genial. De todas formas, tengo alguna experiencia en [http://gl.wikipedia.org/wiki/Usuario:Gallaecio wikis], y me las puedo apañar, pero supongo que tarde o temprano le pasará a más gente.&lt;br /&gt;
&lt;br /&gt;
Muchas gracias por adelantado, y felicidades por el proyecto que estais levantando. Promete. --[[Usuario:Gallaecio|Gallaecio]]&amp;lt;sup&amp;gt;[[Usuario_Discusión:Gallaecio|¿Y luego?]]&amp;lt;/sup&amp;gt; 01:16 25 nov 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
==Licencia de doc.ubuntu-es==&lt;br /&gt;
&lt;br /&gt;
¿Por qué este wiki no usa licencia GNU GPL? Hay otras wikis de documentación que las usan (Wikifonts, Wikibooks...) y no han tenido problemas. Además, la única diferencia que veo con la de Creative Commons que se está utilizando es el reconocimiento del autor, lo cual no es necesario para una documentación de ayuda. --[[Usuario:Gallaecio|Gallaecio]]&amp;lt;sup&amp;gt;[[Usuario_Discusión:Gallaecio|¿Y luego?]]&amp;lt;/sup&amp;gt; 12:59 25 nov 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Gracias por tus correcciones y consejos ==&lt;br /&gt;
&lt;br /&gt;
Pues eso, que gracias.  Estoy en ello.  Lo de hacer subpáginas no sabía que se podía hacer. Ahora no se como, pero lo averiguaré.&lt;br /&gt;
Saludos.--[[Usuario:Suso|Suso]] 20:44 11 dic 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== ¿Me puedes ayudar? ==&lt;br /&gt;
Tengo un problema con la ordenación de las categorías:&lt;br /&gt;
*[http://doc.ubuntu-es.org/Categoría:Virtualización Categoría:Virtualización  ]  &lt;br /&gt;
*[http://doc.ubuntu-es.org/Categoría:Máquinas_virtuales  Categoría:máquinas virtuales.] &lt;br /&gt;
He estado incluyéndolas en los artículos del [[P:V]], pero las de virtualización me aparece casi todas en la '''V''' y no en las letras que les corresponde.  En la otra categoría, aparecen bien.  ¿Tienes alguna idea?.  Gracias. --[[Usuario:Suso|Suso]] 14:22 8 feb 2008 (CET)&lt;br /&gt;
::Entiendo lo que me dices.  Lo que es peor, lo había leído pero no procesado.  Esta tarde trataré de arreglarlo.  Gracias. --[[Usuario:Suso|Suso]] 14:38 8 feb 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== Buen Administrador ==&lt;br /&gt;
&lt;br /&gt;
Kelp para mí ha sido uno de los mejores administradores de Ubuntu-es.&lt;br /&gt;
&lt;br /&gt;
[[Usuario:Marcianisto|Marcianisto]] 04:04 2 mar 2008 (CET)&lt;br /&gt;
&lt;br /&gt;
== Agradecimiento ==&lt;br /&gt;
&lt;br /&gt;
No se si es un proceso automatizado, sea como sea, me ha gustado recibir la bievenida tener el mensaje en mi discusión, me parece una excelente aclaratoria y motivadora idea.&lt;br /&gt;
&lt;br /&gt;
Un saludo.&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Servidores</id>
		<title>Servidores</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Servidores"/>
				<updated>2008-04-11T00:06:20Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:Icon-server.png]&lt;br /&gt;
&amp;lt;!--- aquí debería ir una especie de índice sobre temas acerca de la instalación y la configuración de servidores ubuntu, así como la instalación de aplicaciones, bases de datos y demás temas.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Servidores web ==&lt;br /&gt;
; [[HTTPD Servidor web Apache2]] - instalación y configuración de un servidor web Apache2&lt;br /&gt;
; [[LAMP|Apache PHP MySQL]] - instalar y configurar un servidor [[w:LAMP|LAMP]]&lt;br /&gt;
; [[ Servidor web Cherokee]] - Instalar y configurar servidor web cherokee.&lt;br /&gt;
&lt;br /&gt;
== Servidores de correo ==&lt;br /&gt;
; [[Postfix]] - instalar y configurar un sistema de correo completo y seguro basado en postfix [[w:Postfix|POSTFIX]]&lt;br /&gt;
&lt;br /&gt;
== Control remoto y transferencia de archivos ==&lt;br /&gt;
; [[Servidor OpenSSH]] - Instalar y configurar un servidor [[w:SSH|SSH]] con [[w:OpenSSH|OpenSSH]]&lt;br /&gt;
; [[Servidor FTP]] - Instalar y configurar un servidor FTP&lt;br /&gt;
; [[Network File System]] (NFS) - Instalar y configurar un sistema para compartir directorios y archivos con otros sistemas a través de la red como si fueran archivos locales.&lt;br /&gt;
; [[CUPS servidor de impresión]] - Instalar y configurar un sistema para utilizar Ubuntu como servidor de impresión.&lt;br /&gt;
&lt;br /&gt;
== DNS ==&lt;br /&gt;
; [[Servidor DNS]]&lt;br /&gt;
&lt;br /&gt;
== Sistema de control de versiones ==&lt;br /&gt;
; [[Subversion]]&lt;br /&gt;
; [[Servidor CVS]]&lt;br /&gt;
&lt;br /&gt;
== Bases de datos ==&lt;br /&gt;
;[[MySQL]] - Instalación y configuración de servidor de base de datos MySQL&lt;br /&gt;
;[[PostgreSQL]] - Instalación y configuración de servidor de base de datos PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== Enlaces útiles==&lt;br /&gt;
https://help.ubuntu.com/community/Servers&lt;br /&gt;
&lt;br /&gt;
https://help.ubuntu.com/6.10/ubuntu/serverguide/es/index.html&lt;br /&gt;
&lt;br /&gt;
[[Categoría:Completar]][[Categoría:Servidores|*]]&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Servidores</id>
		<title>Servidores</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Servidores"/>
				<updated>2008-04-11T00:04:50Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: Cabecera de instalación de un servidor web, cherokee&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Imagen:Icon-server.png]&lt;br /&gt;
&amp;lt;!--- aquí debería ir una especie de índice sobre temas acerca de la instalación y la configuración de servidores ubuntu, así como la instalación de aplicaciones, bases de datos y demás temas.--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Servidores web ==&lt;br /&gt;
; [[HTTPD Servidor web Apache2]] - instalación y configuración de un servidor web Apache2&lt;br /&gt;
; [[LAMP|Apache PHP MySQL]] - instalar y configurar un servidor [[w:LAMP|LAMP]]&lt;br /&gt;
; [[HTTPD Servidor web Cherokee]] - Instalar y configurar servidor web cherokee.&lt;br /&gt;
&lt;br /&gt;
== Servidores de correo ==&lt;br /&gt;
; [[Postfix]] - instalar y configurar un sistema de correo completo y seguro basado en postfix [[w:Postfix|POSTFIX]]&lt;br /&gt;
&lt;br /&gt;
== Control remoto y transferencia de archivos ==&lt;br /&gt;
; [[Servidor OpenSSH]] - Instalar y configurar un servidor [[w:SSH|SSH]] con [[w:OpenSSH|OpenSSH]]&lt;br /&gt;
; [[Servidor FTP]] - Instalar y configurar un servidor FTP&lt;br /&gt;
; [[Network File System]] (NFS) - Instalar y configurar un sistema para compartir directorios y archivos con otros sistemas a través de la red como si fueran archivos locales.&lt;br /&gt;
; [[CUPS servidor de impresión]] - Instalar y configurar un sistema para utilizar Ubuntu como servidor de impresión.&lt;br /&gt;
&lt;br /&gt;
== DNS ==&lt;br /&gt;
; [[Servidor DNS]]&lt;br /&gt;
&lt;br /&gt;
== Sistema de control de versiones ==&lt;br /&gt;
; [[Subversion]]&lt;br /&gt;
; [[Servidor CVS]]&lt;br /&gt;
&lt;br /&gt;
== Bases de datos ==&lt;br /&gt;
;[[MySQL]] - Instalación y configuración de servidor de base de datos MySQL&lt;br /&gt;
;[[PostgreSQL]] - Instalación y configuración de servidor de base de datos PostgreSQL&lt;br /&gt;
&lt;br /&gt;
== Enlaces útiles==&lt;br /&gt;
https://help.ubuntu.com/community/Servers&lt;br /&gt;
&lt;br /&gt;
https://help.ubuntu.com/6.10/ubuntu/serverguide/es/index.html&lt;br /&gt;
&lt;br /&gt;
[[Categoría:Completar]][[Categoría:Servidores|*]]&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Pdftk</id>
		<title>Pdftk</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Pdftk"/>
				<updated>2008-04-02T22:17:48Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: /* '''pdftk''' */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Introducción''' &lt;br /&gt;
&lt;br /&gt;
Es una herramienta de software libre creada por  Sid Steward para la manipulación de ficheros de tipo .PDF (No confundir con ficheros .PS),con esta herramienta se puede editar un fichero .pdf o unir varios ficheros .pdf en uno entre otras utilidades.&lt;br /&gt;
&lt;br /&gt;
La web oficial es [http://www.pdftk.com]&lt;br /&gt;
&lt;br /&gt;
Hay dos herramientas interesantes en este campo del pdf y ps una es ps2pdf y otra pdf2ps la primera para convertir ficheros .ps a .pdf y la segunda al contrario.&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	<entry>
		<id>http://doc.ubuntu-es.org/Pdftk</id>
		<title>Pdftk</title>
		<link rel="alternate" type="text/html" href="http://doc.ubuntu-es.org/Pdftk"/>
				<updated>2008-04-02T22:17:05Z</updated>
		
		<summary type="html">&lt;p&gt;Carsses: New page: == '''pdftk''' ==   '''Introducción'''   Es una herramienta de software libre creada por  Sid Steward para la manipulación de ficheros de tipo .PDF (No confundir con ficheros .PS),con es...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== '''pdftk''' ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Introducción''' &lt;br /&gt;
&lt;br /&gt;
Es una herramienta de software libre creada por  Sid Steward para la manipulación de ficheros de tipo .PDF (No confundir con ficheros .PS),con esta herramienta se puede editar un fichero .pdf o unir varios ficheros .pdf en uno entre otras utilidades.&lt;br /&gt;
&lt;br /&gt;
La web oficial es [http://www.pdftk.com]&lt;br /&gt;
&lt;br /&gt;
Hay dos herramientas interesantes en este campo del pdf y ps una es ps2pdf y otra pdf2ps la primera para convertir ficheros .ps a .pdf y la segunda al contrario.&lt;/div&gt;</summary>
		<author><name>Carsses</name></author>	</entry>

	</feed>