Tag/tag.png

Unsupported Version
This article applies to an unsupported version of Ubuntu. More info...

For Lucid details go here: MacBookAir2-1/Lucid

Installation process

Quick notes

Installation

menuentry "Ubuntu 12.04 ISO sda04" {
insmod (hd0,4)/efi/boot/loopback.mod
insmod (hd0,4)/efi/boot/iso9660.mod
set isofile="/ubuntu-12.04.2-desktop-amd64+mac.iso"
loopback loop (hd0,4)$isofile
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject video=efifb
initrd (loop)/casper/initrd.lz
}

General

Video

Sound

Make sure you are a member of the "audio" group. Remember to re-login after making yourself a member.

If that does not work then here is a script to get sound working:

# Autogenerated python code from HDA-Analyzer that gets sound going:
#!/usr/bin/env python

import os
import struct
from fcntl import ioctl

def __ioctl_val(val):
  # workaround for OverFlow bug in python 2.4
  if val & 0x80000000:
    return -((val^0xffffffff)+1)
  return val

IOCTL_INFO = __ioctl_val(0x80dc4801)
IOCTL_PVERSION = __ioctl_val(0x80044810)
IOCTL_VERB_WRITE = __ioctl_val(0xc0084811)

def set(nid, verb, param):
  verb = (nid << 24) | (verb << 8) | param
  res = ioctl(FD, IOCTL_VERB_WRITE, struct.pack('II', verb, 0))

FD = os.open("/dev/snd/hwC0D0", os.O_RDONLY)
info = struct.pack('Ii64s80si64s', 0, 0, '', '', 0, '')
res = ioctl(FD, IOCTL_INFO, info)
name = struct.unpack('Ii64s80si64s', res)[3]
if not name.startswith('HDA Codec'):
  raise IOError, "unknown HDA hwdep interface"
res = ioctl(FD, IOCTL_PVERSION, struct.pack('I', 0))
version = struct.unpack('I', res)
if version < 0x00010000:        # 1.0.0
  raise IOError, "unknown HDA hwdep version"

# initialization sequence starts here...

set(0x18, 0x707,   0x45) # 0x18070745 (SET_PIN_WIDGET_CONTROL)
set(0x19, 0x707,   0xa5) # 0x190707a5 (SET_PIN_WIDGET_CONTROL)

os.close(FD)

Copy and paste it to a file, ie. hda-intel-mba21.py, and execute the code:

$ sudo python hda-intel-mba21.py

Touchpad

Apple keys

Network

Tweaks

 (as root) echo 0 > /sys/class/leds/smc::kbd_backlight/brightness 

 (as root) echo OHC1 > /proc/acpi/wakeup 

and make sure "cat /proc/acpi/wakeup" has OHC1 as disabled.

 (as root) echo 2 > /sys/module/hid_apple/parameters/fnmode 


CategoryAudio

MacBookAir2-1/Precise (last edited 2024-08-08 01:59:13 by inclusive-disjunction)