Soy un PC y quiero ser libre
Making iSight camera work in Ubuntu
July 4th 2008
As I said in a previous post, I bought a MacBook, and I am making all bits work correctly. Out-of-the-box support from Ubuntu (the only GNU/Linux I tried on the MacBook so far) is excellent, but some things (camera, WiFi…) need proprietary drivers, so some more tweaks are needed.
I have followed the instructions in the Ubuntu community site, as with the procedures detailed in the previous post.
Basically, it all boils down to:
Fetch the Apple drivers for the camera
As root (if, unlike me, you like sudo, then run the following as user, but prepended with sudo), mount the Mac OSX partition (you didn’t delete it, right?) and copy the relevant file somewhere else (the cp command should be all in one line):
# cd
# mkdir /mnt/macosx
# mount /dev/sda2 /mnt/macosx
# cp /mnt/macosx/System/Library/Extensions/
IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/
Contents/MacOS/AppleUSBVideoSupport .
# umount /mnt/macosx
You might have noticed that the Mac OSX partition is not sda1, but sda2. Don’t ask me. It turns out like this after following my own installation instructions. Apple must have decided to install the OS in the second partition for some reason.
Install the required packages
We need a package called isight-firmware-tools. Unfortunately it is not present in the Hardy repos at the moment (it was in the Gutsy ones, I think). You can add a Launchpad repo, editing /etc/apt/sources.list to add:
deb http://ppa.launchpad.net/mactel-support/ubuntu hardy main
deb-src http://ppa.launchpad.net/mactel-support/ubuntu hardy main
Then, as root:
# aptitude update
# aptitude install isight-firmware-tools
You will be prompted for a path to the driver you copied before. You can press Enter without paying much attention, then execute (assuming you copied the driver to your root home):
# cd
# ift-extract -a ./AppleUSBVideoSupport
To activate the driver, restart HAL:
# /etc/init.d/hal restart
Test it with Ekiga
As explained in the Ubuntu community site, you can run Ekiga as user (after installing the ekiga package). Choose V4L2 as video plugin, and Built-in iSight should appear among the Input device list. If it does, the process worked.
Tags: 64-bits, about me, en, FLOSS, hardware, howto, linux, mac, software, Ubuntu, video