Saturday, August 21, 2010

STEP 4: Getting the ps3 eye to work!

The following is based off the tutorial from kaswy's page.

I have however made a couple small changes that are required. Open up your terminal and enter the following commands.
  • sudo -i
  • apt-get install kernel-package libncurses5-dev wget bzip2 build-essential
  • cd /usr/src
  • apt-get install linux-source
Now type in:
  • ls
You will now get a list of everything in the directory. Look for the .tar.bz2 file.
<your version> is the number that is between the 2.6. and the .tar.bz2. in my case the file is: linux-source-2.6.32.tar.bz2 so my <your version> is 32

Now type in the following command, but replace the <your version> with the proper number.
  • tar --bzip2 -xvf linux-source-2.6.<your version>.tar.bz2
  • ln -s linux-source-2.6.<your version> linux
  • cd linux
In my case it would look like this:
  • tar --bzip2 -xvf linux-source-2.6.32.tar.bz2
  • ln -s linux-source-2.6.32 linux
  • cd linux
Continue with these commands:
  • wget
  • patch -p1 < ps3eyeMT-2.6.31-10-generic.patch
  • make oldconfig
  • cp /usr/src/linux-headers-$(uname -r)/Module.symvers /usr/src/linux
  • make modules_prepare
  • make SUBDIRS=drivers/media/video/gspca modules
  • cp drivers/media/video/gspca/gspca_ov534.ko /lib/modules/$(uname -r)/kernel/drivers/media/video/gspca/
  • depmod
  • modinfo gspca-ov534
You should see the following after entering the last command:

root@mt-dev-laptop:/usr/src/linux# modinfo gspca-ov534
filename: /lib/modules/2.6.32-24-generic/kernel/drivers/media/video/gspca/gspca_ov534.ko
license: GPL
description: GSPCA/OV534 USB Camera Driver(kaswy mod for MT use V0.5)
author: Antonio Ospite
srcversion: 2153E3BE52298A39177E46C
alias: usb:v1415p2000d*dc*dsc*dp*ic*isc*ip*
depends: gspca_main
vermagic: SMP mod_unload modversions 586
parm: videomode: = xx //Set the videomode(see doc) (int)
parm: autogain: = [0|1] //Autogain (agc,aec,awb) (bool)
parm: gain: = [0..63] //main gain (int)
parm: exposure: = [0..255] //Exposure (int)
parm: redblc: = [0..255] //Red Balance (int)
parm: blueblc: = [0..255] //Blue Balance (int)
parm: sharpness: = [0..63] //Sharpness (int)
parm: vflip: = [0|1] //Vertical flip (bool)
parm: hflip: = [0|1] //Horizontal mirror (bool)

The important part is the description where it has v0.5 and kaswy's name.

Go ahead and enter the following commands:
  • modprobe -r gspca-ov534
  • modprobe gspca-ov534 videomode=01 autogain=0 exposure=200 hflip=1
Now exit back to the normal account by typing: exit

This completes the first step to getting the ps3eye working properly.
On to modifying and installing unicap

Enter the following commands:
  • cd
  • mkdir unicap
  • cd unicap
  • wget
  • tar -xvzf unicap-0.9.5.tar.gz
  • wget
  • patch -p0 < unicap-gspca.patch
  • cd unicap-0.9.5
  • ./configure
  • make
  • sudo make install
Unicap should now be working.


  1. ps3 eye is supported on ubuntu 10.4 be default
    and it si working on vlc too just fine
    why should I take this step in order to get it right on ccv ?
    kaswy's directions is about ubuntu 9.10
    post: Mon, 21/09/2009

    can I procced to the next step and start from there?

  2. I'm not sure to be honest. I can tell you this though, Kaswy's patch is preferred because it allows you to easily adjust the raw camera image, and by default most ps3 eyes show up very grainy, also kaswys mod lets you choose the best framerate.

    You could try proceeding with out, but if memory serves me correct your ps3 will not show up in CCV unless you have kaswys patch.

    Hope I could help.

  3. you are right I skiped this step
    and procced to the last one

    ccv can't see my camera.

  4. I confirm your saying
    this step is mandatory

    Ubundu's embeded driver won't work

    thanks for all 6 steps

  5. is it possible to update this for a newer kernel? or at least give some pointers on how to get this to work for newer kernels? I'm on 2.6.38.... and no matter what i do nothing works.

  6. I'm not sure why it isn't working, if you could give me more information about what isn't working I might be able to help some. the newer kernel versions should not have to be patched for this to work.

  7. from what it seems, everything works out of the box in Ubuntu 12.04, but when changing the exposure for example in guvcview, nothing changes. Resolution, framerate and all that seem to work.