6 of 9
6
[Tutorial] PS3 Eye Working on Linux
Posted: 19 April 2009 12:23 PM   [ Ignore ]   [ # 76 ]
Avatar
RankRankRank
Joined  2008-06-16
Total Posts:  330
Sr. Member

Hey kawsy,
many thanks for the latest 0.4 update, this works just fine now with reacTIVision, thanks to your driver I took the time to improve the USB camera support quite a bit.
The new V4L2 configuration options are also really helpful, but maybe you could try to add the other missing image parameters?
for me personally the only show stopper is still the strange “sharpened” image quality compared to the standard driver.
I hope you know what I mean, if not I could post a screen shot, if you prefer.

Probably you are already aware of this, but maybe you could grab the other register values from the macam driver:
http://webcam-osx.cvs.sourceforge.net/viewvc/webcam-osx/macam/cameras/OV534Driver.m

best,
Martin.K

 Signature 

TUIO community site: http://www.tuio.org
reacTIVision framework: http://reactivision.sf.net
TUIO & reacTIVision CVS: http://sf.net/projects/reactivision
reacTIVision forum: http://sf.net/apps/phpbb/reactivision

Profile
 
 
Posted: 19 April 2009 03:14 PM   [ Ignore ]   [ # 77 ]
Avatar
Rank
Joined  2008-12-02
Total Posts:  31
New Member

@overload
You can test it if you want and please tell me if it works for you,
If all is ok, we can ask tbeta developers for a new version with the unicap patch inclued.
unicap-gspca patch

@martin,
You’ve made a good work too !
I will take a look on this quality problem soon, but i have only one ps3eye cam with the ir filter mounted inside
so it’s no easy for me to see if there are some little quality issue.
Could you PM me these screen shoot to see the difference please ?

Thanks ,

 Signature 

My Setup :http://kaswy.free.fr

Profile
 
 
Posted: 19 April 2009 08:30 PM   [ Ignore ]   [ # 78 ]
Rank
Joined  2009-04-19
Total Posts:  1
New Member

Thank you so much for your informative posts

maison de credit

Profile
 
 
Posted: 20 April 2009 12:31 PM   [ Ignore ]   [ # 79 ]
Avatar
RankRank
Joined  2009-01-06
Total Posts:  213
Member

@kaswy: Well, my first try patching was a failure. I folowed your guide, and after a restart, I could not see anything else then my background pic. Left click and everything else did work fine, I even managed to start up a terminal. But i’m not a linux person, so I did not know what to do next.
I’m installing in the writing moment, a fresh install of Ubuntu 9.04. And trying one more time. It might have been something else that messed up my desktop.

I also have to say that this is the light in the tunnel for using PS3 eye under linux with tbeta. Hopefully, it will be possible very soon.

[edit] It is something else. Unknown yet, but something is messing up my desktop [/edit]

 Signature 

---- Interactive Multi Touch Systems ----
-------- The future of computing! --------
------- Black Hole Productions -------

Profile
 
 
Posted: 21 April 2009 09:28 PM   [ Ignore ]   [ # 80 ]
RankRank
Joined  2008-12-10
Total Posts:  209
Member

Your unicap patch works great kaswy!  Smoke running in linux @ 640x480, 60fps is excellent!

I’ve just got one problem that I haven’t run into before - I think this is probably a gui/xorg issue, but touchlib’s calibration program (configapp) is dreadfully slow to update the frame captures, so precise calibration is nearly impossible..  it looks like the other apps (osc, smoke) grab and track nearly in sync with the camera’s framerate, but the calibration windows are running at ~1fps.. any ideas?

 Signature 

22” LLP-LCD ftw
TUIO Smoke (Windows / Linux) - http://projects.edencomputing.com/projects/tuiosmoke

Profile
 
 
Posted: 21 April 2009 09:30 PM   [ Ignore ]   [ # 81 ]
Rank
Joined  2009-03-10
Total Posts:  22
New Member

Did you have much trouble getting touchlib to run in Linux?  Last time I tried, it segfaulted really fast.

Profile
 
 
Posted: 22 April 2009 12:15 AM   [ Ignore ]   [ # 82 ]
RankRank
Joined  2008-12-10
Total Posts:  209
Member

There’s a thread with a patch for touchlib here, that should stop the segfaults hopefully.

OSC segfaulted on me fairly quickly still, but the smoke demo worked flawlessly.  Touchlib calibration (configapp) worked, was just too slow to calibrate properly.

 Signature 

22” LLP-LCD ftw
TUIO Smoke (Windows / Linux) - http://projects.edencomputing.com/projects/tuiosmoke

Profile
 
 
Posted: 22 April 2009 07:22 AM   [ Ignore ]   [ # 83 ]
Avatar
RankRank
Joined  2009-01-06
Total Posts:  213
Member

@cicada: was it ps3, ubuntu and tbeta you used?

And how did you manage to do this?
- I installed all the needed things, but still, something is messing up both my numpy and desktop.

 Signature 

---- Interactive Multi Touch Systems ----
-------- The future of computing! --------
------- Black Hole Productions -------

Profile
 
 
Posted: 22 April 2009 09:31 AM   [ Ignore ]   [ # 84 ]
RankRank
Joined  2008-12-10
Total Posts:  209
Member

Ubuntu 8.10, PS3 eye and Touchlib, actually - I couldn’t get tbeta to run last night while I was setting this up.

I just installed a fresh copy of Ubuntu 8.10 (new PC), built a custom kernel ( 2.6.29 ) from kernel.org, installed kaswy’s driver - this got the cam responding just fine.

After that I grabbed the unicap source, patched it using kaswy’s patch, compiled and installed - after that touchlib recognized my PS3 eye with no problem.

As kaswy mentioned, tBeta has unicap compiled in rather than using a shared library, so his patch will not work for tBeta.  The only way we’ll get tBeta is to get either a recompiled version with kaswy’s patch, or a new version that doesn’t statically link unicap.

 Signature 

22” LLP-LCD ftw
TUIO Smoke (Windows / Linux) - http://projects.edencomputing.com/projects/tuiosmoke

Profile
 
 
Posted: 22 April 2009 12:37 PM   [ Ignore ]   [ # 85 ]
Avatar
RankRank
Joined  2009-01-06
Total Posts:  213
Member

thanks. I needed to read that in black and white. I’ll try touchlib then. Hope to get this up and running :p

 Signature 

---- Interactive Multi Touch Systems ----
-------- The future of computing! --------
------- Black Hole Productions -------

Profile
 
 
Posted: 24 April 2009 07:11 AM   [ Ignore ]   [ # 86 ]
Rank
Joined  2009-04-24
Total Posts:  7
New Member

Hi all,

I need some help here.

After few hours trying to install a Ps3 on a fresh ubuntu 9.04 (kernel 2.6.28-11-generic) still no luck :-((

my situation:
downloaded kaswy driver --> OK
make --> OK
make install --> OK
modinfo gspca_ov534 --> OK
sudo modprobe gspca_ov534 videomode=04 --> FAILED (same as old zun’s problem: Error inserting gspca_ov534)

so I’ve followed the post below with no luck (same results - Error inserting gspca_ov534):

zun (Marinus) - 15 February 2009 02:02 PM

kaswy and I tried some other solutions in the mean time.

The problem was that their already was a gspca driver loaded, so I’ll explain the steps here in case someone else has the same problem.

First check if you have a gspca driver loaded by giving the following command:

lsmod grep gspca


If you see any output, it means you have a gspca driver loaded (this is not good if you want to use kaswy’s driver).

In my case I saw this:

lsmod grep gspca
gspca_pac207           14848  0 
gspca_main             29312  1 gspca_pac207
videodev               41344  1 gspca_main
usbcore               149360  11 snd_usb_audio
,snd_usb_lib,gspca_pac207,gspca_main,lmpcm_usb,usbhid,usb_storage,libusual,ehci_hcd,uhci_hcd


The following command solves it:

modprobe -r gspca_pac207

(if it says something else than pac207, make sure you adjust the command accordingly)

then, to be on the safe side, I did this:

I moved the dir /lib/modules/2.6.27-11-generic/kernel/drivers/media to a temporary location (as backup, and make sure it’s outside of /lib/modules, e.g. /tmp/media.bak)

go to the source dir and then

make clean
make
sudo make install


you may verify the install by typing

modinfo gspca_ov534


and then the final command:

sudo modprobe gspca_ov534 videomode=04


Now, plug in the camera and it should be recognized!

You can check by doing a

ls /dev/video*

before and after you plugged in the ps3 cam, it should show another device after it’s plugged in!

Thanks and credits to kaswy for the solution grin

Someone have the same problem or (better) a solution?

Thanks in advance. Ciao!!!

PS: any news from the recompilation of tbeta with ps3 eye linux support?

Profile
 
 
Posted: 24 April 2009 11:38 AM   [ Ignore ]   [ # 87 ]
Rank
Joined  2009-03-10
Total Posts:  22
New Member

What is in your syslog when you try that?  Module symbol errors?

Profile
 
 
Posted: 24 April 2009 11:57 AM   [ Ignore ]   [ # 88 ]
Avatar
RankRankRank
Joined  2008-06-16
Total Posts:  330
Sr. Member

Did you remove the loaded modules before loading the new ones as stated above?
I can confirm that everything works smoothly on Ubuntu 9.04.

BTW kaswy just released a much improved version 0.5 of his driver:
http://kaswy.free.fr/?q=node/38#ps3

This new version really works great, since it adds more configuration options and really improves the overall image quality.
I’d say that with this update the PS3eye support already has reached production quality on Linux!
great work kaswy!

 Signature 

TUIO community site: http://www.tuio.org
reacTIVision framework: http://reactivision.sf.net
TUIO & reacTIVision CVS: http://sf.net/projects/reactivision
reacTIVision forum: http://sf.net/apps/phpbb/reactivision

Profile
 
 
Posted: 24 April 2009 12:31 PM   [ Ignore ]   [ # 89 ]
Rank
Joined  2008-12-31
Total Posts:  37
New Member

Ubuntu 9.04 64bit works perfectly too, kernel 2.6.29-rc2 (custom compile, i haven’t gotten around to switching to the latest version). Maybe try without adding anything to the driver line (just “sudo modprobe gspca_ov534"). Also, did you run “sudo make install” or just “make install”? You need root access to put the files in place, otherwise your system might be trying to load the stock kernel driver with videomode features it doesn’t have.

Profile
 
 
Posted: 24 April 2009 04:14 PM   [ Ignore ]   [ # 90 ]
Rank
Joined  2009-04-24
Total Posts:  7
New Member

Hi mattty, still no luck after the fifth OS reinstall! :-(

mattty - 24 April 2009 11:38 AM

What is in your syslog when you try that?  Module symbol errors?

My syslog:

Apr 24 22:55:48 dario-desktop kernel: [ 2612.510954] gspca_main: disagrees about version of symbol video_ioctl2
Apr 24 22:55:48 dario-desktop kernel: [ 2612.510960] gspca_main: Unknown symbol video_ioctl2
Apr 24 22:55:48 dario-desktop kernel: [ 2612.511490] gspca_main: disagrees about version of symbol video_devdata
Apr 24 22:55:48 dario-desktop kernel: [ 2612.511492] gspca_main: Unknown symbol video_devdata
Apr 24 22:55:48 dario-desktop kernel: [ 2612.511920] gspca_main: disagrees about version of symbol video_unregister_device
Apr 24 22:55:48 dario-desktop kernel: [ 2612.511923] gspca_main: Unknown symbol video_unregister_device
Apr 24 22:55:48 dario-desktop kernel: [ 2612.512086] gspca_main: disagrees about version of symbol video_register_device
Apr 24 22:55:48 dario-desktop kernel: [ 2612.512089] gspca_main: Unknown symbol video_register_device

the error:
FATAL: Error inserting gspca_ov534 (/lib/modules/2.6.28-11-generic/kernel/drivers/media/video/gspca/gspca_ov534.ko): Unknown symbol in module, or unknown parameter (see dmesg)

What do you mean about “Module symbol errors”? Where I can find this info?

Hi martin,

Martin Kaltenbrunner - 24 April 2009 11:57 AM

Did you remove the loaded modules before loading the new ones as stated above?
I can confirm that everything works smoothly on Ubuntu 9.04.

If I “lsmod | grep gspca” no result (think it’s ok)

A question… on a fresh install, should I remove something?

Martin Kaltenbrunner - 24 April 2009 11:57 AM

BTW kaswy just released a much improved version 0.5 of his driver:
http://kaswy.free.fr/?q=node/38#ps3

This new version really works great, since it adds more configuration options and really improves the overall image quality.
I’d say that with this update the PS3eye support already has reached production quality on Linux!
great work kaswy!

I’m very happy about the improvement! Thanks kaswy!

Hi vw_kubel,

vw_kubel - 24 April 2009 12:31 PM

Ubuntu 9.04 64bit works perfectly too, kernel 2.6.29-rc2 (custom compile, i haven’t gotten around to switching to the latest version). Maybe try without adding anything to the driver line (just “sudo modprobe gspca_ov534"). Also, did you run “sudo make install” or just “make install”? You need root access to put the files in place, otherwise your system might be trying to load the stock kernel driver with videomode features it doesn’t have.

sudo modprobe gspca_ov534

same result (error)
Yes, I run “sudo make install” (no errors)

Don’t know what do now… :-(

Thanks for the replies!!! Ciao!!!

PS: The only strange thing that can I have on my PC (Dell Dimension 8300 desktop) is a PCI capture card installed (recognized as /dev/video0), in dmesg I see: “saa7130/34: v4l2 driver version 0.2.14 loaded”. Can conflict with the driver gspca?

Profile
 
 
   
6 of 9
6
 
‹‹ Why 5?      Binoculars idea for camera ››