Site News
Spammer domain block list updated [more]
OSX Killer apps collections updated [more]
 Automatic web page date stamping project [more]
 Basic Perl DBI tutorial [more]

Other Stuff
Farscape returns in 4 hour mini series [more]
Want to take back the internet, [Get Firefox!]
September 08, 2008


DISCLAIMER: All the information contained in this page, or any linked from it, is provided as is, having no warranty or support of any kind, and is used entirely at your own risk.

 

Motion Eye Video Camera


With Kernel Version 2.4.7 and later there is now a video4Linux (v4l) driver for the motioneye video camera built into the lid of the C1Vx Picturebooks. This driver allows any application that supports the v4l API, so far I have only tested this with xawtv. If you have tested this with other apps please mail me and I will include it here.

TIP: You can skip forward to the xawtv configuration section if you are using my optimized kernel as you already have everything else you need.

Kernel configuration

I have already covered this in the sonypi pages, so if you have not already followed the instructions on that page you need to do so now, as its required before you can use the camera.

Now if you are using my supplied pre-compiled Kernel then you already have everything you need, and can skip this page. On the other hand if you are not using my Kernel you need to continue on, and make the following changes.

modules.conf changes

To use this module you need to add the following lines to your /etc/modules.conf file, in addition to those you have already made for the sonypi.

alias char-major-81 videodev
alias char-major-81-0 meye
options meye gbuffers=32 video_nr=0

Making the device

Now you have updated your /etc/modules.conf file, you need to create the device node, this is done like this :-

mknod /dev/video0 c 81 0
chmod 666 /dev/video0
ln -s /dev/video /dev/video0

XF86Config changes

One last change is needed before you can start using the camera, this is a update to your /etc/X11/XF86Config file. You need to make the change as follows :-

Find the following line.

Option "omit xfree86-dga"

Thats it, now you can install xawtv and start playing with the camera.

Xawtv configuration

Once you have installed xawtv you need to configure it to work with the motion eye. First you need to create a empty ~/.xawtv file to avoid the startup screen telling you, you need one. This is done like this.

touch ~/.xawtv

Now you can start xawtv with the following command line.

xawtv -c /dev/video0 -geometry 320x240

Links and Related Pages

 
Updated: June 19, 2004 Top