Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Apple Intel Users
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Apple Intel Users
Discussions for users who are using Apple Intel based systems with Ubuntu.

 
Thread Tools Display Modes
Old July 30th, 2006   #1
rapido
5 Cups of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
Built-in iSight Howto, Intel Mac ( iMac, Macbook )

This is a quick Howto on getting the Built-in iSight to work on Intel Mac. So far I have installed on a 20" Intel iMac. I will also be installing on my 15" Macbook Pro ( as soon as it is back from a logic board replacement ). This guide assumes you have access to the iSight firmware, via harddrive partition. I can really take zero credit on the development work behind this. I am simply trying to piece together what I have found in a semi-coherent way.

INSTALLATION

Newest Super Quick 2-Step Install ( Updated for Gutsy 7.10 with 640x480 gstreamer support ):
$ wget http://www.shiftingheat.com/packages...ght_install.sh
$ sh isight_install.sh

GSTREAMER TEST

$ gst-launch-0.10 v4l2src ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=640,height=480 ! ffmpegcolorspace ! ximagesink

EKIGA TEST

* Install prerequisites
$ sudo apt-get install ekiga libpt-plugins-v4l2

* Launch Ekiga, via menus or
$ ekiga

* Configuration. You may have to select the iSight device.
Edit > Preferences > Devices > Video Devices >
- Video plugin: V4L2
- Input device: Built-in iSight

CHEESE TEST
$ sudo apt-get install cheese
$ cheese



OLDER INSTALLERS AND NOTES
Below are previous installation techniques and notes. They should not really be needed any longer, but remain for completeness.


Older Quick Install:
* uvcvideo is now prebuilt in Feisty. Problem is that it doesn't work with iSight. https://bugs.launchpad.net/ubuntu/+s...20/+bug/105638
Hopefully this will change with a future kernel update and this guide will become mute. For now, we will disable it and build our own module.
$ sudo modprobe -r uvcvideo
$ sudo mv /lib/modules/$(uname -r)/kernel/ubuntu/media/usbvideo/uvcvideo.ko /lib/modules/$(uname -r)/kernel/ubuntu/media/usbvideo/uvcvideo.ko.original

* Install prerequisites, libusb-dev, you might need kernel headers that match your kernel ( I already had them )
$ sudo apt-get install libusb-0.1-4 libusb-dev linux-headers-$(uname -r)

* Download the new all-in-one bundle, with firmware autoloader as provided by Ivan N. Zlatev ( see http://i-nz.net/projects/linux-kernel/ )
$ wget http://files.i-nz.net/projects/linux...-isight.tar.gz
$ tar -xzvf uvcvideo-isight.tar.gz

* Build and Install the uvcvideo module
$ cd against-revision-*
$ sudo make
$ sudo make install

* Load the module
$ sudo modprobe uvcvideo

Original Installation Instructions:
* Install prerequisites, libusb-dev, you might need kernel headers that match your kernel ( I already had them )
$ sudo apt-get install libusb-0.1-4 libusb-dev linux-headers-$(uname -r)

* Download the patched linux-uvc source, with firmware extraction tool as provided by Ronald S. Bultje ( see http://blogs.gnome.org/view/rbultje )
$ wget http://people.freedesktop.org/~rbult...0.1.0-b.tar.gz

* Extract the archive
$ tar zxf linux-uvc-0.1.0-b.tar.gz

* Build and Install the uvcvideo module
$ cd linux-uvc-0.1.0-b
$ sudo make
$ sudo make install

* Mount the mac partion, to give access to the iSight firmware
$ sudo mkdir /mnt/mac
$ sudo mount -t hfsplus /dev/sda2 /mnt/mac/

* Load the iSight firmware
$ sudo ./extract /mnt/mac/System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/AppleUSBVideoSupport.kext/Contents/MacOS/AppleUSBVideoSupport

* Load the module
$ sudo modprobe uvcvideo


NOTES
It seems that we are also getting close to having this installable via .deb packages. I found the following Debian packages. This was my initial attempt, before backing out what I had done and following the directions above.

* linux-uvc-source ( 0.1.0-4 )
http://packages.debian.org/unstable/...nux-uvc-source
This requires module-assistant. It seemed to build and install fine. I downloaded and installed with Gdebi. Then, to build the kernel module:
$ sudo m-a prepare
$ sudo m-a a-i linux-uvc

* linux-uvc-tools ( 0.1.0-4 )
http://packages.debian.org/unstable/...inux-uvc-tools
This includes the tool macbook-isight-firmware-loader ( the equivalent of extract above ). I couldn't get this toolset to install properly, due to dependencies. The toughest dependency was the need for libc6(>= 2.3.6-6).

Last edited by rapido; November 17th, 2007 at 04:04 PM.. Reason: reordered the contents for clerity
rapido is offline   Reply With Quote
Old July 30th, 2006   #2
chasisaac
Just Give Me the Beans!
 
chasisaac's Avatar
 
Join Date: Jul 2006
Location: Frozen Wasteland
Beans: 73
Re: Built-in iSight Howto, Intel Mac ( iMac, Macbook )

I cannot wait to till Sunday afternoon when I can try this.

Yeah!
__________________
- - A computer without Windows is like chocolate cake without mustard
chasisaac is offline   Reply With Quote
Old July 30th, 2006   #3
leonedo
Spilled the Beans
 
Join Date: Mar 2006
Beans: 7
Re: Built-in iSight Howto, Intel Mac ( iMac, Macbook )

it works great, thanks!!
leonedo is offline   Reply With Quote
Old July 30th, 2006   #4
phico
Just Give Me the Beans!
 
Join Date: Mar 2006
Beans: 68
Re: Built-in iSight Howto, Intel Mac ( iMac, Macbook )

Quote:
Originally Posted by leonedo View Post
it works great, thanks!!
Thank you rapido ! It is working for me also.

(I just had to install :
sudo apt-get install libusb-0.1-4 libusb-dev
instead of :
sudo apt-get install libusb libusb-dev)
phico is offline   Reply With Quote
Old July 30th, 2006   #5
rapido
5 Cups of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
Re: Built-in iSight Howto, Intel Mac ( iMac, Macbook )

Quote:
Originally Posted by phico View Post
Thank you rapido ! It is working for me also.

(I just had to install :
sudo apt-get install libusb-0.1-4 libusb-dev
instead of :
sudo apt-get install libusb libusb-dev)
Thanks for the correction. I have updated the original post.
rapido is offline   Reply With Quote
Old August 7th, 2006   #6
blindspy
Spilled the Beans
 
Join Date: Feb 2006
Beans: 13
Re: Built-in iSight Howto, Intel Mac ( iMac, Macbook )

Code:
$ sudo modprobe uvcvideo
FATAL: Error inserting uvcvideo (/lib/modules/2.6.15-23-686/usb/media/uvcvideo.ko): Invalid module format
any suggestions?
blindspy is offline   Reply With Quote
Old August 7th, 2006   #7
phetre
Just Give Me the Beans!
 
phetre's Avatar
 
Join Date: Mar 2006
Location: Chicago, IL
Beans: 51
Ubuntu 9.10 Karmic Koala
Re: Built-in iSight Howto, Intel Mac ( iMac, Macbook )

Wow, thank you! This is very impressive. Only two little things went wrong on mine:
  1. The GStreamer test fails with the message: "ERROR: pipeline could not be constructed: no element "v4l2src"."
  2. The image displays beautifully in Ekiga, but it seems to be cropped weirdly: the camera shows only objects to its left, so I have to lean right to get in the picture.
Any ideas?
phetre is offline   Reply With Quote
Old August 8th, 2006   #8
rapido
5 Cups of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
Re: Built-in iSight Howto, Intel Mac ( iMac, Macbook )

Quote:
Originally Posted by phetre View Post
Wow, thank you! This is very impressive. Only two little things went wrong on mine:
  1. The GStreamer test fails with the message: "ERROR: pipeline could not be constructed: no element "v4l2src"."
  2. The image displays beautifully in Ekiga, but it seems to be cropped weirdly: the camera shows only objects to its left, so I have to lean right to get in the picture.
Any ideas?
As far as the GStreamer test, it looks like you may not have the video4linux2 plugin installed in gstreamer. Looking at the gstreamer documentation, it seems the plugin ( which provides support for v4l2src ) is part of the gst-plugins-bad.

I would try first executing the following ( the second requires multiverse enabled ). These are two plugin packages I have installed that look like good candidates for that plugin.

$ sudo apt-get install gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse

Then try the GStreamer command again, as shown above.

As far as Ekiga, mine is also displaying roughly one quadrant of the actual camera input. Not sure why yet. I found nothing obvious in the preferences. I will have to dig deeper in documentation.
__________________
20" Intel iMac ( 2.0 GHz )
15" Intel Macbook Pro ( 2.16 GHz )
shiftingheat.com
rapido is offline   Reply With Quote
Old August 8th, 2006   #9
phetre
Just Give Me the Beans!
 
phetre's Avatar
 
Join Date: Mar 2006
Location: Chicago, IL
Beans: 51
Ubuntu 9.10 Karmic Koala
Re: Built-in iSight Howto, Intel Mac ( iMac, Macbook )

Thanks, it worked after a reboot. Maybe the codecs just hadn't settled in yet.
And you're right: the GStreamer test window shows the camera's entire field. How strange!
phetre is offline   Reply With Quote
Old August 10th, 2006   #10
rapido
5 Cups of Ubuntu
 
Join Date: Jun 2006
My beans are hidden!
Re: Built-in iSight Howto, Intel Mac ( iMac, Macbook )

Quote:
Originally Posted by phetre View Post
Wow, thank you! This is very impressive. Only two little things went wrong on mine:
  1. The GStreamer test fails with the message: "ERROR: pipeline could not be constructed: no element "v4l2src"."
  2. The image displays beautifully in Ekiga, but it seems to be cropped weirdly: the camera shows only objects to its left, so I have to lean right to get in the picture.
Any ideas?
phetre,

I figured out how to configure Ekiga to show the entire video display. First, open gconf-editor.

$ gconf-editor &

Now, from the left-hand tree, navigate to:
apps > ekiga > devices > video

Change the value for size from 0 to 1. This changes the size from Small ( QCIF 176x144 ) to Large ( CIF 352x288 ).

Reopen Ekiga and you should see the full video image.
__________________
20" Intel iMac ( 2.0 GHz )
15" Intel Macbook Pro ( 2.16 GHz )
shiftingheat.com
rapido is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:36 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry