Friday, August 17, 2007

Acer Aspire 4310, Acer CrystalEye webcam (064e:a101) on Ubuntu Linux

The Ubuntu Linux version is:

$ cat /etc/
Ubuntu 7.04

The Linux kernel version is:
$ uname -a
Linux xxx-laptop 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

The fresh install will detect the webcam:
dmesg | grep Crystal
[ 22.116000] uvcvideo: Found UVC 1.00 device Acer CrystalEye webcam (064e:a101)

Camorama and other applications that do not support v4l2 will not work. The webcam driver uvcvideo (linux-uvc) supports v4l2 only. v4l1 is officially deprecated.

To test, you can use Ekiga softphone or to take webcam snapshots use luvcview.
Source code:

You will also need libsdl1.2-dev (for SDL libraries) and build-essential (for building tools like gcc and make utility).
$ sudo aptitude install build-essential libsdl1.2-dev
$ wget
$ tar zxvf luvcview-20070512.tar.gz
$ cd luvcview-20070512
$ make
$ make install

To make it user-friendly, create a Custom Application Launcher pointed to this script:
# will place snapshots in Desktop
cd ~/Desktop
# will produce pnm: Netpbm PPM "rawbits" image data,
# instead of default MJPEG format that the webcam does not support
luvcview -f yuv

If you have questions, post them at and point them from here.


nosy said...

Thanks a lot, Worked perfectly for me. Only question about recording avi's. Does this work too? When I click the button it seems to do something, but no save?


Anonymous said...

I am not sure. Take a look at the directory (pwd -- present working directory) where you run the command