VectorLinux

Vectorbie Station => Vectorbie Questions => Topic started by: acous on May 01, 2007, 09:49:19 am

Title: How do I install webcam?
Post by: acous on May 01, 2007, 09:49:19 am
I have a Amitech AWK-310 that I want to install and use in aMSN, how do I do that?
Title: Re: How do I install webcam?
Post by: acous on May 01, 2007, 10:07:25 am
when I write lsusb there is a line:

Bus 1 Device 2: ID 0ac8:301b Z-star Microelectronics Corp. ZC0301 WebCam

and under lsmod I find one line:

videodev    21504  1  zc0301


I thought this ment that the webcam was installed but it still isnt, e.g. aMSN says so.

what should I do now?

Title: Re: How do I install webcam?
Post by: JohnB316 on May 01, 2007, 06:36:22 pm
Have you tried configuring the webcam from within aMSN? Please read the following FAQ item from the aMSN home page: http://www.amsn-project.net/wiki/FAQ#What_is_WebcamWizard.3F

Hope this helps. Post again if you still have problems.

Thanks,
John
Title: Re: How do I install webcam?
Post by: acous on May 01, 2007, 11:54:25 pm
the configure webcam dialogue under "preferences->others->   says

"Please connect first"
"Webcam extension is loaded"
"capture extension -capture- is loaded"

when i press "change video settings" it says "currently no devices are installed"

so it does not work still.
Title: Re: How do I install webcam?
Post by: acous on May 02, 2007, 06:09:28 am
ok, I connected  :)

now it says

Type IP-Restrict-NAT
Listening false

You are firewalled or behind a router


I found that I should open some ports for the webcam, how do i do this?
Title: Re: How do I install webcam?
Post by: JohnB316 on May 02, 2007, 09:46:12 am
If your computer is connected to a router that is connected to a broadband modem, then it will be safe to turn off the VL firewall using VASM. You could also edit the rc.firewall script as the root user if you know which ports need to be opened for the webcam. I don't know which ports would need opening, so you might do well to search the forums at http://amsn-project.net/forums for that information.

If somebody else knows how to help the original poster with better advice than mine, please feel free to jump in. ;-)

Cheers,
John
Title: Re: How do I install webcam?
Post by: acous on May 02, 2007, 11:18:46 am
i disabled the firewall in vasm, in amsn i still get:

Type IP-Restrict-NAT
Listening false

You are firewalled or behind a router


**************


when i write spcagui in terminal I get:

video device /dev/video0
ERROR opening V4L interface
: No such file or directory


is the webcam installed?
Title: Re: How do I install webcam?
Post by: M-ake on May 02, 2007, 12:32:53 pm
My logitech webcam worked out-of-the-box with amsn. I use the following method to check if my webcam is working:

In amsn, choose "change my personal image", and there choose "webcam shot", if its installed, you should see the webcam video and change your webcam settings there. I dont know if the options are exactly named like that, since I use amsn with my native language.

Good luck
Title: Re: How do I install webcam?
Post by: acous on May 02, 2007, 03:30:36 pm
i tried this but it said i should check if the camera was installed or plugged in correctly  :(

thanks for advice though!
Title: Re: How do I install webcam?
Post by: acous on May 03, 2007, 06:59:24 am
I found this under dmesg:

zc0301: V4L2 driver ZC0301[P] Image Processor and Control Chip v1:1.05
usb 1-2: ZC0301[P] Image Processor and Control Chip detected (vid/pid 0x0AC8/0x301B)
usb 1-2: No supported image sensor detected
usbcore: registered new driver zc0301


is it installed?
Title: Re: How do I install webcam?
Post by: newt on May 03, 2007, 11:15:19 am
I can't answer if it's connected or not, but the msn/amsn ports that will need to be available are 6891 to 6900.  It **seems** like your hardware is setup and working - it just can't find the correct, open port to bind to.  I would start by making sure you have the necessary ports open before delving too much into driver/hardware issues.  For the firewall you'd need to edit the rc.firewall files as described above, and you'd probably need to forward the ports via the router (if you're using a router).  We could certainly help you get through this if needed.

Or, perhaps a better starting point, if there is some other application that can use the webcam locally then you could test it that way.  I'm thinking along the lines of some application that intializes the webcam and shows you what the webcam sees, thus taking ports out of the equation.  Anyone know of an application (perferably that's already installed) that could be used to test this?
Title: Re: How do I install webcam?
Post by: acous on May 03, 2007, 11:42:54 am
thanks for helping me!  :)

Ii also think it is a good idea to try a local program, i tried spcagui, i think this is a program which shows what the camera sees.

Also I am only connected to a broadband modem, some people call breadband modem for 'router'  ??? and when i diabled the firewall it still said that I was firewalled or behind a router? please look at the above post what the error message is.


everything works with vector linux except this  :-\
Title: Re: How do I install webcam?
Post by: blurymind on May 04, 2007, 09:13:54 am
i had simular woes under vector and solved it my self
http://www.vectorlinux.com/forum2/index.php?topic=2845.0

its weird..i never had nat/fw problems with mine.
Try stopping vl firewall.Disabling it (not to boot) doesnt work. :-\
Title: Re: How do I install webcam?
Post by: acous on May 04, 2007, 03:14:56 pm
yes I saw your thread earlier. Nice that you solved it! But the camera I want to install is not supported in the driver package u referred to so I guess it wont work, or is it worth a try? I have no idea.

Will try to stop the firewall, didn´t know the 'disable when boot' didnt work.
Title: Re: How do I install webcam?
Post by: blurymind on May 06, 2007, 12:32:12 am
yes I saw your thread earlier. Nice that you solved it! But the camera I want to install is not supported in the driver package u referred to so I guess it wont work, or is it worth a try? I have no idea.

Will try to stop the firewall, didn´t know the 'disable when boot' didnt work.
i saw that..
and spcagui doesnt work...hmm..

But amsn didnt give you a message "device not connected" ?
Title: Re: How do I install webcam?
Post by: acous on May 06, 2007, 03:52:18 am
I stop the firewall and in aMSN the same as before:

Type IP-Restrict-NAT
Listening false

You are firewalled or behind a router


when I press "change video settings" I get "Currently, no devices are installed"

 :-\
Title: Re: How do I install webcam?
Post by: lagagnon on May 06, 2007, 08:39:33 am
acous: Are you behind a hardware router?
Title: Re: How do I install webcam?
Post by: acous on May 06, 2007, 10:56:45 pm
The Laptop is directly connected to a broadband modem. This modem has 5 connections for computers to connect to. Except the laptop another computer is connected to it.
Title: Re: How do I install webcam?
Post by: newt on May 07, 2007, 12:08:22 am
At a time when you think that your device is installed check to see if you can find it's device.  I believe it should be: /dev/video0

If you cannot find the device you could try creating one.  Since I'm not a udev expert I can only provide an example to create the device I found through my searching:
Code: [Select]
mknod -m 644 /dev/video0 c 81 0
HTH
Title: Re: How do I install webcam?
Post by: acous on May 08, 2007, 12:48:46 am
I tried the command, and there is no difference, aMSN gives me the same errors as written earlier in his thread and spcagui says:

root:# spcagui
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0
ERROR opening V4L interface
: No such device


should I give up?  :-\
Title: Re: How do I install webcam?
Post by: acous on May 08, 2007, 12:52:36 am
i also tried video1, and it is the same.

When i tried the commands again, I get this:

root:# mknod -m 644 /dev/video1 c 81 1
mknod: `/dev/video1': File exists
vector://home/la
root:# spcagui
SpcaGui version: 0.3.5 date: 18 September 2005
video device /dev/video0
ERROR opening V4L interface
: No such device
vector://home/la
root:# mknod -m 644 /dev/video0 c 81 0
mknod: `/dev/video0': File exists


so the files exist now, whatever that means  ???

Title: Re: How do I install webcam?
Post by: newt on May 08, 2007, 09:01:44 am
Well, the error message has changed.  It's indicating 'no such device' rather than 'no such file or directory'.  Gonna have another look around considering the new circumstances.
Title: Re: How do I install webcam?
Post by: newt on May 08, 2007, 11:30:00 am
I notice that the Amitech AWK-300 is support and reported working using the following driver: http://alpha.dyndns.org/ov511/
I would read through that page and see if you can figure out how to use that driver rather than the spc5xxx driver that's currently being used.

Maybe someone with better knowledge on these sorts of things can help you out??
Title: Re: How do I install webcam?
Post by: acous on May 08, 2007, 12:13:45 pm
First, thanks a lot for helping me! Appreciate it!  :D

I also found that driver for awk-300, I sent him a mail and asked if he thought it supported awk-310, no answer in a week now.
Installing this driver I must try.

I just wonder, how do i see if a driver is installed? Because it seems as the driver is installed when I compare to the tutorial on how to install the awk-300.

But really I dont know what the different lsmod etc commands show. So how do I know if a driver is installed?
Title: Re: How do I install webcam?
Post by: rbistolfi on May 08, 2007, 12:27:27 pm
Quote
root:# mknod -m 644 /dev/video1 c 81 1
mknod: `/dev/video1': File exists

I am not an expert, but I note this output and I think: Why there is a video1 dev already?
May be it is your videocam, just a thougth
Title: Re: How do I install webcam?
Post by: acous on May 08, 2007, 01:50:00 pm
no i created this one also, just like video0
Title: Re: How do I install webcam?
Post by: newt on May 08, 2007, 09:25:05 pm
You can find out what a command does by typing 'man <name_of_command>' in the terminal.  For instance, typing 'man lsmod' comes back with this description:
Code: [Select]
NAME
       lsmod -- program to show the status of modules in the Linux Kernel

SYNOPSIS
       lsmod

DESCRIPTION
       lsmod  is  a  trivial  program which nicely formats the contents of the
       /proc/modules, showing what kernel modules are currently loaded.

BACKWARDS COMPATIBILITY
       This version of lsmod is for kernels 2.5.48 and above.  If it detects a
       kernel  with  support  for  old-style  modules,  it will attempt to run
       lsmod.old in its place, so it is completely transparent to the user.

COPYRIGHT
       This manual page Copyright 2002, Rusty Russell, IBM Corporation.

SEE ALSO
       modprobe(8), lsmod.old(8)

Based on the description, this command show which kernel modules are currently loaded on your system.  Now, whether or not this is the _correct_ module is a different story :D .  I'd imagine/assume that (just like in windows) you can accidentally load the incorrect module/driver for a device and it will not operate correctly.

I feel like this thread should be moved to the hardware/drivers forum since it sure seems to be more specific to that department, and PERHAPS it would attract the attention of some folks that have more knowledge in this department.  Hopefully a moderator stops by and will move this over. ;D
Title: Re: How do I install webcam?
Post by: acous on May 12, 2007, 12:15:03 pm
didnt manage to install the driver i think,  ???

anyone knows what to do?

Title: Re: How do I install webcam?
Post by: lagagnon on May 12, 2007, 02:55:41 pm
Please tell us the full name of the driver file so we know what type of file it is and then we might be able to tell you how to install it. (The thing is that some Linux drivers are shell scripts, others need compiling and others are a special package file...).
Title: Re: How do I install webcam?
Post by: acous on May 13, 2007, 12:22:02 pm
the file name is: ov511-2.32.tar.bz2

and can be found here: http://alpha.dyndns.org/ov511/download.html

thanks for helping!
Title: Re: How do I install webcam?
Post by: acous on May 16, 2007, 09:18:57 am
this is solved! with this driver: gspcav1-20070508  it did say it supported the camera model but it did anyway! ;D
Title: Re: How do I install webcam?
Post by: JohnB316 on May 16, 2007, 09:21:16 am
The tarball you referenced is a source code file. You will need to compile it using the usual ./configure - make - make install routine. You will also need to ensure that the kernel source code is on your box.

HTH,
John