Need help in installing Microdia PC Camera (SN9C120)

Asked by anilmani

I am a newbie trying out Ubuntu 8.10. With the help from this forum I have solved my printer problem. I need some assistance with my webcam. From the lsusb out put,
anil@anil-desktop:~$ lsusb
Bus 004 Device 002: ID 047d:105e Kensington Bluetooth EDR Dongle
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 004: ID 0c45:613c Microdia PC Camera (SN9C120)
Bus 003 Device 002: ID 046d:c025 Logitech, Inc. MX500 Optical Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 049f:0051 Compaq Computer Corp. KU-0133 Easy Access Interner Keyboard
Bus 002 Device 002: ID 04f9:01ab Brother Industries, Ltd MFC-240C
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
anil@anil-desktop:~$
However, the Microdia PC Camera (SN9C120) is not detected in ekiga, skype or XawTV. I tried out an old logitech camera and it works fine. But I like this Microdia PC Camera better because of the clarity and inbuilt Mic option. Can some please offer some assistance. New to Linux, please explain steps.

Regards

Anil

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu cheese Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
ankit (ankitguptajpr) said :
#1

Try to install it using wine

Revision history for this message
Shane Fagan (shanepatrickfagan) said :
#2

It wont work using wine, wine is not made to do that sort of thing.
The best thing you can do is wait a new version of the linux kernel might have drivers for your camera.
What version of ubuntu are you using?

Revision history for this message
anilmani (kurianmani) said :
#3

Ankit, thank you for the answer.. but like shane , i do not think wine will resolve this issue. Because wine , i thinks is for software compatibility issues. Here we have a hardware driver issue.

Shane I am using Ubuntu 8.10.. Thanks.

Regards

Anil

Revision history for this message
anilmani (kurianmani) said :
#4

Hello Shane

I am using Ubuntu 8.10. Any further ideas to get this cam working?
Thanks.

Regards

Anil

On Fri, 2009-04-17 at 12:32 +0000, shane fagan wrote:
> Your question #67717 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/67717
>
> shane fagan requested for more information:
> It wont work using wine, wine is not made to do that sort of thing.
> The best thing you can do is wait a new version of the linux kernel might have drivers for your camera.
> What version of ubuntu are you using?
>

Revision history for this message
Steve Dodier-Lazaro (sidi) said :
#5

Hello anilmani,

I suggest you to try to install your webcam via Easycam. See https://help.ubuntu.com/community/EasyCam for detailed instructions.

This piece of software can install drivers for several hundreds of webcams, and it might include yours.

Hope this helps.

Revision history for this message
anilmani (kurianmani) said :
#6

Hello Steve.

Tried that. it recognised the camera as some sonix. But installation did not complete properly. error messages. But thanks ..

Regards

Anil

Revision history for this message
Steve Dodier-Lazaro (sidi) said :
#7

Hello anilmani,

I'm sorry to hear that. Yet, it would be kind from you to save the error messages you got into a log file and send them over to the developer of Easycam, so that he can work on improving it.

Thanks in advance if you do it.

Revision history for this message
anilmani (kurianmani) said :
#8

While searching the web I found this information:

http://www.kernel.org/doc/Documentation/video4linux/gspca.txt

In the List of the webcams known by gspca.

if found ,
sonixj 0c45:613c Sonix Pccam168

where the 0c45:613c matches with my lsusb out put of 0c45:613c Microdia PC Camera (SN9C120)

now the next question is how to get the
gspca_main main driver
gspca_xxxx subdriver module to be installed into my system.

May work.. Any suggestions?

Regards

Anil

Revision history for this message
anilmani (kurianmani) said :
#9

Hello Steve

Here (below) is a copy/paste version of my error message I got. I do not know how to contact
developer of Easycam. Can you please do it for me. Really appreciate your effort.

Regards

Anil

anil@anil-desktop:~$ gksudo 'python /usr/share/EasyCam2/core.py --gtk'
GO !
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.27-14-generic is already the newest version.
The following packages were automatically installed and are no longer required:
  libglib1.2ldbl libswscale0 liblzo1 mythtv-transcode-utils libxvidcore4
  libgtk1.2 linux-headers-2.6.27-7 libqt3-mt-mysql libfame-0.9 toolame libpvm3
  linux-headers-2.6.27-7-generic transcode-doc libmyth-0.21-0 libx264-59
  libmp3lame0 libmjpegtools0c2a transcode pvm libgtk1.2-common libmyth-perl
  libxvmc1 mythtv-theme-projectgrayhem-wide mjpegtools
  mythtv-theme-projectgrayhem mythtv-themes libquicktime1 libnet-upnp-perl
  libfaac0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

 REMOVE the old module if present
ERROR: Module gspca does not exist in /proc/modules
eneric/build/include/linux/config.h': File exists

 CLEAN gspca source tree
rm -r -f *.o decoder/.gspcadecoder.o.cmd decoder/*.o \
 .gspca.o.cmd *.o *.ko *.mod.* .[a-z]* core *.i \
 *.symvers *.err

 COMPILE gspca Please Wait ....!!

 INSTALL gspca in the kernel binary tree
mkdir -p /lib/modules/`uname -r`/kernel/drivers/usb/media/
rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/spca5xx.ko
rm -f /lib/modules/`uname -r`/kernel/drivers/media/video/gspca.ko
install -c -m 0644 gspca.ko /lib/modules/`uname -r`/kernel/drivers/usb/media/
install: cannot stat `gspca.ko': No such file or directory

 LOAD gspca in memory
make: *** [install] Error 1
FATAL: Module gspca not found.

 PRINT COMPILATION MESSAGES if ERRORS look kgspca.err
make -C /lib/modules/`uname -r`/build SUBDIRS=/usr/share/EasyCam2/drivers/gspca CC=cc modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.27-14-generic'
  CC [M] /usr/share/EasyCam2/drivers/gspca/gspca_core.o
/usr/share/EasyCam2/drivers/gspca/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
/usr/share/EasyCam2/drivers/gspca/gspca_core.c: In function ‘spca5xx_ioctl’:
/usr/share/EasyCam2/drivers/gspca/gspca_core.c:2464: error: implicit declaration of function ‘video_usercopy’
/usr/share/EasyCam2/drivers/gspca/gspca_core.c: At top level:
/usr/share/EasyCam2/drivers/gspca/gspca_core.c:2610: error: unknown field ‘owner’ specified in initializer
/usr/share/EasyCam2/drivers/gspca/gspca_core.c:2610: warning: initialization from incompatible pointer type
/usr/share/EasyCam2/drivers/gspca/gspca_core.c:2612: error: unknown field ‘type’ specified in initializer
/usr/share/EasyCam2/drivers/gspca/gspca_core.c: In function ‘spca50x_create_sysfs’:
/usr/share/EasyCam2/drivers/gspca/gspca_core.c:2770: error: implicit declaration of function ‘video_device_create_file’
/usr/share/EasyCam2/drivers/gspca/gspca_core.c:2781: error: implicit declaration of function ‘video_device_remove_file’
/usr/share/EasyCam2/drivers/gspca/gspca_core.c: In function ‘spca5xx_probe’:
/usr/share/EasyCam2/drivers/gspca/gspca_core.c:4310: error: incompatible types in assignment
make[2]: *** [/usr/share/EasyCam2/drivers/gspca/gspca_core.o] Error 1
make[1]: *** [_module_/usr/share/EasyCam2/drivers/gspca] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.27-14-generic'
make: *** [default] Error 2

Revision history for this message
Steve Dodier-Lazaro (sidi) said :
#10

Hello,

We have a gspca-source package in the repository, maybe there's data inside it.

Something else, if you install the package libasm-dev, and try easycam again, what errors do you get ? (the first error you get seems to be because you're missing files that i suspect to be in libasm-dev : asm/semaphore.h)

Ps : i just checked the blog of the developer, he seems to be aware of compilation problems for the gspca drivers. Here's his blog : it's in french but it might be readable with google / yahoo translate.

http://blognux.free.fr/

I hope you'll find a solution to your problem.

Cordially, SD.

Revision history for this message
anilmani (kurianmani) said :
#11

Hello Steve

Tried to translate and install according to instructions from

http://blognux.free.fr/

Looks like either I am missing a step here or there.
May be a little beyond my capabilities in working in terminal.
It looks like probably the answer to my question lies there
but somehow I can't cross that bridge. Need someone to hold my hands
and get me across.

It looks like I need to download, extract, make the package and install the
package. Correct me if I am wrong.

I did the download, I did the extraction. But lost at the point of "make"
How to do this?

Tied to install libasm-dev
but
 error : Dependency is not satisfiable: libasm 1
is the output I get.

Regards

Anil

Revision history for this message
Steve Dodier-Lazaro (sidi) said :
#12

Hello Anil,

The command "make" compiles source code into binaries. You should just type it as it is written, when in the directory where the source is. I read the whole blog entry again and the author reports that this file contains drivers for a lot of webcams, but he also warns that compilation might fail with ubuntu (although he doesn't really explain why).

If make is failing, i'll have a deeper look and try to compile it here, seeing what could be missing, but i don't promise anything. ;)

Revision history for this message
anilmani (kurianmani) said :
#13

Hello Steve

I tried once again. But this is the out put I get:

anil@anil-desktop:~$ wget
http://linuxtv.org/hg/~pinchartl/uvcvideo/archive/tip.tar.gz
--2009-04-22 16:20:31--
http://linuxtv.org/hg/~pinchartl/uvcvideo/archive/tip.tar.gz
Resolving linuxtv.org... 217.160.6.122
Connecting to linuxtv.org|217.160.6.122|:80... connected.
HTTP request sent, awaiting response... 200 Script output follows
Length: unspecified [application/x-tar]
Saving to: `tip.tar.gz.2'

    [ <=> ] 4,226,330 41.4K/s in
2m 0s

2009-04-22 16:22:31 (34.5 KB/s) - `tip.tar.gz.2' saved [4226330]

anil@anil-desktop:~$ tar xfvz uvcvideo*.tar.gz
tar: uvcvideo*.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
anil@anil-desktop:~$

There is one step that is missing here.
I do not know how to proceed.

Regards

Anil

On Fri, 2009-04-17 at 21:04 +0000, Steve Dodier wrote:
> Your question #67717 on Ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+question/67717
>
> Status: Open => Answered
>
> Steve Dodier proposed the following answer:
> Hello,
>
> We have a gspca-source package in the repository, maybe there's data
> inside it.
>
> Something else, if you install the package libasm-dev, and try easycam
> again, what errors do you get ? (the first error you get seems to be
> because you're missing files that i suspect to be in libasm-dev :
> asm/semaphore.h)
>
>
> Ps : i just checked the blog of the developer, he seems to be aware of
> compilation problems for the gspca drivers. Here's his blog : it's in
> french but it might be readable with google / yahoo translate.
>
> http://blognux.free.fr/
>
> I hope you'll find a solution to your problem.
>
> Cordially, SD.
>

Revision history for this message
Steve Dodier-Lazaro (sidi) said :
#14

Hello,

Type "tar xvvf tip.tar.gz.2" in order to extract the uvcvideo folder from
your archive (you can also do it manually, the file is in your personal
folder ;p).

2009/4/23 anilmani <email address hidden>

> Question #67717 on cheese in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/cheese/+question/67717
>
> Status: Answered => Open
>
> anilmani is still having a problem:
>
> Hello Steve
>
> I tried once again. But this is the out put I get:
>
> anil@anil-desktop:~$ wget
> http://linuxtv.org/hg/~pinchartl/uvcvideo/archive/tip.tar.gz
> --2009-04-22<http://linuxtv.org/hg/%7Epinchartl/uvcvideo/archive/tip.tar.gz%0A--2009-04-22>16:20:31--
> http://linuxtv.org/hg/~pinchartl/uvcvideo/archive/tip.tar.gz<http://linuxtv.org/hg/%7Epinchartl/uvcvideo/archive/tip.tar.gz>
> Resolving linuxtv.org... 217.160.6.122
> Connecting to linuxtv.org|217.160.6.122|:80... connected.
> HTTP request sent, awaiting response... 200 Script output follows
> Length: unspecified [application/x-tar]
> Saving to: `tip.tar.gz.2'
>
> [ <=> ] 4,226,330 41.4K/s in
> 2m 0s
>
> 2009-04-22 16:22:31 (34.5 KB/s) - `tip.tar.gz.2' saved [4226330]
>
> anil@anil-desktop:~$ tar xfvz uvcvideo*.tar.gz
> tar: uvcvideo*.tar.gz: Cannot open: No such file or directory
> tar: Error is not recoverable: exiting now
> tar: Child returned status 2
> tar: Error exit delayed from previous errors
> anil@anil-desktop:~$
>
> There is one step that is missing here.
> I do not know how to proceed.
>
> Regards
>
> Anil
>
>

--
Steve Dodier
OpenPGP : 0E5E4ECB
IRC : SiDi on irc.freenode.net
Jabber : <email address hidden>
<email address hidden>
https://launchpad.net/~sidi

Revision history for this message
abudo (almsamim) said :
#15

i've the same webcam and installed easycam 2
but i had this message when i click on install
--------------
>> Ce driver n'est pas compatible avec Easycam, ou l'orthographe est incorrecte ... ou il n'existe pas :)
---------------
easycam2 can read my webcam as "Sonix PCCAM"

Revision history for this message
anilmani (kurianmani) said :
#16

Hello Steve,

Yes. My downloads are moved to my download folder.
In any case, This is what I did:

I created a directory called uvcvideo in /home/anil.
I copied the tip.tar.gz to that location. Extracted it the
/home/anil/uvcvideo folder. I got a new folder named
uvcvideo-ff60eb8838d1

I changed directory /home/anil/uvcvideo/uvcvideo-ff60eb8838d1 in
terminal and executed the steps below:

make

sudo rm -f /lib/modules/`uname -r`/kernel/drivers/usb/media/gspca.ko

sudo /sbin/depmod -aq

sudo make install

As far as I know the installation was successfully completed. But the
webcam still do not work.

My doubt now is that whether the location of the folder uvcvideo and
uvcvideo/uvcvideo-ff60eb8838d1 is a problem. Do they need to be in a
specific location (any specific system assigned default location)?
Any clues.

Sorry.. I am not yet willing to give up on this.

On Thu, 2009-04-23 at 07:03 +0000, Steve Dodier wrote:
> Your question #67717 on cheese in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/cheese/+question/67717
>
> Status: Open => Answered
>
> Steve Dodier proposed the following answer:
> Hello,
>
> Type "tar xvvf tip.tar.gz.2" in order to extract the uvcvideo folder from
> your archive (you can also do it manually, the file is in your personal
> folder ;p).
>
> 2009/4/23 anilmani <email address hidden>
>
> > Question #67717 on cheese in ubuntu changed:
> > https://answers.launchpad.net/ubuntu/+source/cheese/+question/67717
> >
> > Status: Answered => Open
> >
> > anilmani is still having a problem:
> >
> > Hello Steve
> >
> > I tried once again. But this is the out put I get:
> >
> > anil@anil-desktop:~$ wget
> > http://linuxtv.org/hg/~pinchartl/uvcvideo/archive/tip.tar.gz
> > --2009-04-22<http://linuxtv.org/hg/%7Epinchartl/uvcvideo/archive/tip.tar.gz%0A--2009-04-22>16:20:31--
> > http://linuxtv.org/hg/~pinchartl/uvcvideo/archive/tip.tar.gz<http://linuxtv.org/hg/%7Epinchartl/uvcvideo/archive/tip.tar.gz>
> > Resolving linuxtv.org... 217.160.6.122
> > Connecting to linuxtv.org|217.160.6.122|:80... connected.
> > HTTP request sent, awaiting response... 200 Script output follows
> > Length: unspecified [application/x-tar]
> > Saving to: `tip.tar.gz.2'
> >
> > [ <=> ] 4,226,330 41.4K/s in
> > 2m 0s
> >
> > 2009-04-22 16:22:31 (34.5 KB/s) - `tip.tar.gz.2' saved [4226330]
> >
> > anil@anil-desktop:~$ tar xfvz uvcvideo*.tar.gz
> > tar: uvcvideo*.tar.gz: Cannot open: No such file or directory
> > tar: Error is not recoverable: exiting now
> > tar: Child returned status 2
> > tar: Error exit delayed from previous errors
> > anil@anil-desktop:~$
> >
> > There is one step that is missing here.
> > I do not know how to proceed.
> >
> > Regards
> >
> > Anil
> >
> >
>
>
> --
> Steve Dodier
> OpenPGP : 0E5E4ECB
> IRC : SiDi on irc.freenode.net
> Jabber : <email address hidden>
> <email address hidden>
> https://launchpad.net/~sidi
>

Revision history for this message
Steve Dodier-Lazaro (sidi) said :
#17

No, they don't need to be in a specific location. The rule "make" will
transform the source into libraries/executables/modules (ie. drivers for the
kernel), or whatever else, and the rule "make install" is usually the one
that will move the files in the good locations (/usr/bin, /usr/lib, etc,
etc).

Since the drivers didn't work, I fear there is nothing much I can do to help
you, so I'll leave it to someone more capable, and wish you good luck.

One last thing though, since the drivers won't be useful, i suggest you
uninstall them. In order to do this, you should be able to do a "sudo make
uninstall" or "sudo make clean" in the folder where the files were located,
this should remove the files, since they unfortunately don't work for you.

Cordially, SD.

--
Steve Dodier
OpenPGP : 0E5E4ECB
IRC : SiDi on irc.freenode.net
Jabber : <email address hidden>
<email address hidden>
https://launchpad.net/~sidi

Revision history for this message
anilmani (kurianmani) said :
#18

Hello Steve

Thanks for the replies. Well.. to say the least, I did learn quite a
bit. I will keep looking for the posts for a possible answer. Once
again thank you for your effort. I really appreciate that.

Regards

Anil

On Sat, 2009-04-25 at 18:36 +0000, Steve Dodier wrote:
> Your question #67717 on cheese in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/cheese/+question/67717
>
> Status: Open => Answered
>
> Steve Dodier proposed the following answer:
> No, they don't need to be in a specific location. The rule "make" will
> transform the source into libraries/executables/modules (ie. drivers for the
> kernel), or whatever else, and the rule "make install" is usually the one
> that will move the files in the good locations (/usr/bin, /usr/lib, etc,
> etc).
>
> Since the drivers didn't work, I fear there is nothing much I can do to help
> you, so I'll leave it to someone more capable, and wish you good luck.
>
> One last thing though, since the drivers won't be useful, i suggest you
> uninstall them. In order to do this, you should be able to do a "sudo make
> uninstall" or "sudo make clean" in the folder where the files were located,
> this should remove the files, since they unfortunately don't work for you.
>
> Cordially, SD.
>
> --
> Steve Dodier
> OpenPGP : 0E5E4ECB
> IRC : SiDi on irc.freenode.net
> Jabber : <email address hidden>
> <email address hidden>
> https://launchpad.net/~sidi
>

Revision history for this message
anilmani (kurianmani) said :
#19

Till 2 days back I was working on this Microdia camera on my Desktop. Long story short though I am having a problem with my webcam , yesterday I installed Ubuntu 9.04 on my lap top, and started trying to solve the webcam problem. well, I got this cam installed (Don't ask me what I did... read so many posts and tried out n number of procedures and lost track.) and working. Clarity is good. But... The skype test gives a Black and white output. Any one with any further solutions to get the color, please....

Regards

Anil

Revision history for this message
Launchpad Janitor (janitor) said :
#20

This question was expired because it remained in the 'Open' state without activity for the last 15 days.