Philips webcam

Thomas Kaiser ubuntu at kaiser-linux.li
Fri Jan 4 15:05:06 UTC 2008


Dotan Cohen wrote:
> On 04/01/2008, Thomas Kaiser <ubuntu at kaiser-linux.li> wrote:
>> We need to know what USB ID your device has. A 'lsusb' in a terminal will show
>> you all connected USB devices. Just copy the output of lsusb to the mail and
>> send it to the list.
>>
>>
> 
> Thanks, Thomas. Here it is:
> 
> feisty at feisty-laptop:~$ lsusb
> Bus 002 Device 004: ID 093a:2601 Pixart Imaging, Inc.

So, it's a Pixart PAC7311 chip. gspca is the only Linux driver which has basic 
support for PAC7311 chip (not really good picture quality :-( ).

Get the latest source from 
http://mxhaard.free.fr/spca50x/Download/gspcav1-20071224.tar.gz

Make sure that build-essential and the kernel headers are install on your box:
sudo apt-get install build-essential linux-headers-generic

Untar the source of gspca:
(In the folder where you downloaded the gspca source)
tar xvzf gspcav1-20071224.tar.gz

Change in that (untared) folder:
cd gspcav1-20071224

Modifiy the make file for Ubuntu install.
Open the Makefile in your favorite editor and change line 41 to:
MODULE_INSTALLDIR = /lib/modules/$(KERNEL_VERSION)/ubuntu/gspcav1/media/
Save and exit the editor.

Compile the driver (module) (in the terminal):
make
You shouldn't see lines with 'Error' in the output of the make command.

Install the module (driver):
sudo make install

Make sure your cam is unplugged and unload the old module (driver), in case it 
was already loaded:
sudo modprobe -r gspca

Plug your cam and check if the device /dev/video* is created:
ls /dev/video*

If you got this device, you should be OK.

A good place to check is the kernel log:
Open /var/log/kern.log with your editor. You should find some messages from 
gspca at the end of this file which will tell you if the cam is detected.

A good command to monitor the kernel log "online" is tail -f /var/log/kern.log.

Hope this helps

Thomas

PS: A good programm to test the webcam is spcaview from mxhaards site. You need 
libsdl1.2-dev installed to compile spcaview.


-- 
http://www.kaiser-linux.li




More information about the ubuntu-users mailing list