个人工具

UbuntuHelp:MactelSupportTeam/AppleiSight

来自Ubuntu中文

Wikibot讨论 | 贡献2009年5月18日 (一) 16:54的版本 (创建新页面为 '{{From|https://help.ubuntu.com/community/MactelSupportTeam/AppleiSight}} {{Languages|UbuntuHelp:MactelSupportTeam/AppleiSight}} == Background == There are two major types of App...')

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

Background

There are two major types of Apple iSight cameras - the external firewire camera and the internal USB iSight cameras in the more recent Intel Macs and some of the latter PowerPC Macs. This document focuses on the internal USB type. The newer Mac``Books and Mac``Book``Pros coming out have a working iSight out-of-the-box without needing to do anything, but for older iSights, firmware loading is still required. All you have to do is get the firmware out of OS X and place it in the correct location in the filesystem. Let’s do it step by step.

Installation

First you need to get the firmware out of a particular file located on your OS X install (or find it online somewhere. I will not link any here because of legal reasons). You can copy it to a USB drive or other location so that you can acess it from Ubuntu. It is located in /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport

sudo cp /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport Desktop

From which the file can easily be dragged onto a usb drive or wherever else you want to put it.

  1. Boot into Ubuntu and install isight-firmware-tools. If you are using a version earlier than Intrepid Ibex 8.10 or if the isight-firmware-tools from the repositories cannot extract the firmware for your particular version of AppleUSBVideoSupport, then you can use the mactel support ppa at https://launchpad.net/~mactel-support/+archive to obtain a more recent package. You may install isight-firmware-tools in a terminal by running (after enabling the mactel support ppa if necessary):
sudo apt-get install isight-firmware-tools
  1. Go ahead and place the AppleUSBSupportVideo file in /lib/firmware
sudo cp AppleUSBVideoSupport /lib/firmware/
  1. Now, extract the iSight firmware from the file
sudo ift-extract -a /lib/firmware/AppleUSBVideoSupport
  1. This should place a file called isight.fw in the /lib/firmware directory. It would be a good idea to save a copy of this file somewhere so that you can find it again later and not need to extract it from the AppleUSBVideoSupport file. If you remove the isight-firmware-tools package, it will delete the isight.fw file too. If you want to remove isight-firmware-tools, make sure to create a copy of your isight.fw file and put it in a safe location so you can copy it back later.

Once that is done, you need to completely SHUTDOWN your Mac (not just reboot) and start it back up again (this clears the hardware state of the camera). In the future, you just need to place the isight.fw file you saved in /lib/firmware/ and then shutdown and reboot as instructed above. (note: placing the isight.fw file at /lib/firmware/ uses to hang always the boot process with the message 'unable to enumerate USB device on port 7' repeatedly )

GStreamer Test

Run gstreamer-properties and test video input in the Video tab.

Green Capture Issue

(Observed on Macbook 2,1 and Macbook 4,1) If testing the video input through gstreamer-properties results in a green-tinted image, try setting Default Input to 'Custom' and in the Pipepline box, enter the following:

v4l2src device="/dev/video0" ! videoscale

Click on Test to see if these new settings correct the issue. There is a bug report for this problem here.

Ekiga Test

  • Launch Ekiga (Applications > Internet > Ekiga Softphone)
  • Configuration. You may have to select the iSight device.

Edit > Preferences > Devices > Video Devices >

  • Video plugin: V4L2
  • Input device: Built-in iSight

Cheese Test

Cheese is a fun webcam app similar to photobooth in OS X. First Install Cheese

sudo apt-get install cheese

Then start it from Applications > Graphics > Cheese Webcam Booth

Virtual Machines

Since OSX takes care of the firmware loading itself, there is not much you have to do to use the iSight within a VM. Just enable the Built-in Isight USB device, Then start Cheese. (I could not get Camorama to work. But Cheese works great, athough it does consume a lot of resources. No downloads or modifications necessary.