个人工具

“UbuntuHelp:AppleiSight”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/AppleiSight}}
 
{{From|https://help.ubuntu.com/community/AppleiSight}}
 
{{Languages|UbuntuHelp:AppleiSight}}
 
{{Languages|UbuntuHelp:AppleiSight}}
There are two types of Apple iSight - the external firewire camera and the internal USB camera. This document focuses on the latter.
+
== Background ==
Edgy kernels later than 2.6.17-9 include a driver for the camera. However, it will only work if the camera firmware has been loaded. There are two ways to do this:
+
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.
1) Boot MacOS X first, and then reboot into Linux without turning off your Mac.
+
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.
2) Install the firmware in Linux
+
== Installation ==
To install the firmware in Linux, download [http://www.codon.org.uk/~mjg59/apps/isight_extract.tar.gz the firmware extractor] and extract the archive. Enter the directory and type "make". You now need to find a copy of the MacOS driver - this will probably be on your Mac partition as /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport . Copy it into the same directory as the extractor and do
+
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 <code><nowiki>/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport</nowiki></code>
./extract AppleUSBVideoSupport
+
<ol><li>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):</li></ol>
which will then produce an isight.fw file. Copy this into /lib/firmware (sudo cp ./isight.fw /lib/firmware) and then either reboot or do
+
 
sudo rmmod uvcvideo
+
<pre><nowiki>
sudo modprobe uvcvideo
+
sudo apt-get install isight-firmware-tools
and the camera should then work.
+
</nowiki></pre>
To use the camera in Ekiga, ensure that you choose "V4L2" as the camera type. "V4L" is not supported.
+
<ol><li>Go ahead and place the AppleUSBSupportVideo file in /lib/firmware</li></ol>
 +
 
 +
<pre><nowiki>
 +
sudo cp AppleUSBVideoSupport /lib/firmware/
 +
</nowiki></pre>
 +
<ol><li>Now, extract the iSight firmware from the file</li></ol>
 +
 
 +
<pre><nowiki>
 +
sudo ift-extract -a /lib/firmware/AppleUSBVideoSupport
 +
</nowiki></pre>
 +
<ol><li>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.</li></ol>
 +
 
 +
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.
 +
=== GStreamer Test ===
 +
Run <code><nowiki>gstreamer-properties</nowiki></code> and test video input in the Video tab.
 +
=== 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
 +
<pre><nowiki>
 +
sudo apt-get install cheese
 +
</nowiki></pre>
 +
Then start it from Applications > Graphics > Cheese Webcam Booth
 +
----
 +
[[category:CategoryDocumentation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年12月16日 (二) 17:53的版本

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

  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.

GStreamer Test

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

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