How to get Webcams to work in Puppy

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#41 Post by Lobster »

:? Me again :)

OK I did a fresh install after deleting all the wizards into
Puppy 1.09

It worked. Horrah!

But when I rebooted and ran xawtv got this message
from console:

Code: Select all

# ./xawtv
This is xawtv-3.95, running on Linux/i686 (2.4.29)
WARNING: Your X-Server has no DGA support.
can't open /dev/video0: No such device
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: No such device
v4l2: open /dev/video0: No such device
v4l: open /dev/video0: No such device
no video grabber device available
# 
So xawtv can not find the drivers?

I am trying to keep an eye on our urban garden fox
Foxwatch! I think he is just a puppy . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

#42 Post by NickBiker »

Lobster wrote::? Me again :)

So xawtv can not find the drivers?
.
Hi

Well that sounds like the boot script did not install? Did you select the option in the wizard.

You can look at the boot file:

Code: Select all

 cat /etc/rc.d/rc.local 
It should look something like the following:

Code: Select all

#this file called from rc.local0
#you can edit this file
#When firewall is installed, will append lines to this file...
 
#*** CAMWIZARD GENERATED SCRIPT
#*** VERSION 1.06  17 May 2006
echo 'Installing webcam - thanks to NickBiker - www.moyo.me.uk/pupplinux'
depmod -a
modprobe videodev
modprobe ov511
modprobe ov511_decomp
modprobe ov518_decomp
#*** ENDCAMWIZARD
I wonder if it is something to do with that file not being made permanant?

Let me know what you find!

p.s. I have put the lsusb utility on the website now for your other cam!
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#43 Post by Lobster »

Code: Select all

#  cat /etc/rc.d/rc.local
#this file called from rc.local0
#you can edit this file
#When firewall is installed, will append lines to this file...

if [ -x /etc/rc.d/rc.firewall ]; then
  /etc/rc.d/rc.firewall start
fi
/usr/local/3D-DRI-wizard/resource/rc.sh &
#*** CAMWIZARD GENERATED SCRIPT
#*** VERSION 1.05  15 May 2006
echo 'Installing webcam - thanks to NickBiker - www.moyo.me.uk/pupplinux'
depmod -a
modprobe videodev
#*** ENDCAMWIZARD
# 
the above is what I get . . .
Did not see the lsusb utility on your site will have another look later . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

#44 Post by NickBiker »

Lobster wrote: the above is what I get . . .
Did not see the lsusb utility on your site will have another look later . . .
:oops: Goodness - it looks like another bug, even though I have tested it for hours and hours, with lots of different setups! Try latest Wizard 1.07, this now checks to make sure that it has a list of modules to put into the boot script - if it doe snot then there is an internal error somewhere!

The site was updated and the latest wiz and utility are there!

Good luck!!
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#45 Post by Lobster »

OK tried 1.07

Code: Select all

83 Failed to register the webcam at /dev/video0                                       FAIL
It seems to be failing to register and then no driver is installed so xawtv only runs when the wizard is run first time. However on rebooting xawtv will not run because the driver has failed to register or become available . . .

Is that what is happening?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

#46 Post by NickBiker »

Lobster wrote:OK tried 1.07
Is that what is happening?
Very odd, if it works the first time through the wizard I am not sure what is going on. I see you have emailed me the full text from the Wizard! I am not sure why the check FAILS - I will look at this again - problem is difficult to test the driver as I don't have a camera to try out!! Sorry about this!!
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#47 Post by Lobster »

NickBiker wrote:Sorry about this!!
:)
I may be wrong on this but . . .
You are trying to add something to my boot up script?
Do you need permissions changing to do so?

Would sending my boot up script help? (which file is that?)
I am just guessing - sorry if what I am saying is stoopid . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

#48 Post by NickBiker »

Lobster wrote:
NickBiker wrote:Sorry about this!!
:)
I may be wrong on this but . . .
You are trying to add something to my boot up script?
Do you need permissions changing to do so?

Would sending my boot up script help? (which file is that?)
I am just guessing - sorry if what I am saying is stoopid . . .
Hi!
Well the scrip tests that it has write permission at the start!
I have re-written the sectrion that does the boot script and put a lot more tests there. I have also added more detailed testing of the webcam output in general and updated the drivers. The new wizard is on my site! It had better work this time...!!!
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#49 Post by Lobster »

Sucess 2
Hooray!

Now it writes to bootup and when I open xawtv after a boot - it works!

Will send the txt file in a PM (your auto uploader is a great idea but not working yet . . . you mention it is experimental)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

#50 Post by NickBiker »

Lobster wrote:Sucess 2
Hooray!

Now it writes to bootup and when I open xawtv after a boot - it works!

Will send the txt file in a PM (your auto uploader is a great idea but not working yet . . . you mention it is experimental)
As you say HOOOOO-RAH!!!

I have not implimented the CGI script on my server this end for the upload or update functions. I have some real work to do now and then!! :lol:

Thanks for testing.

Do you think it worth me supporting the new Puppy to be released?
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#51 Post by Lobster »

NickBiker wrote: Do you think it worth me supporting the new Puppy to be released?
Oh yes! Please do. That means recompiling for 2.6 kernel.

I would get the CGI working . . . a Beta of Puppy2 will be available shortly that might be a good time to start on that.

I was looking at your code - is your background in Basic / Pascal? (I am going by the style/layout)

It is useful code because it would be modifiable by those wishing to try similar projects in Script.

Puppy 1.09 has a direct link to your website on the main page Firefox page
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

#52 Post by NickBiker »

Lobster wrote: Oh yes! Please do. That means recompiling for 2.6 kernel.

I would get the CGI working . . . a Beta of Puppy2 will be available shortly that might be a good time to start on that.
Yes I will have to find drivers for 2.6 and test - it might take me a bit of time.
Lobster wrote: I was looking at your code - is your background in Basic / Pascal? (I am going by the style/layout)
Ha! I started in binary (really) on the SCMP processor, then assember 6800, Z80, 68000 , 6809, etc. Then C, C++, Basic, Pascal, Algol68, recently C#, Java, Java Script, Perl. You name it I have probably written in it! Most a home at low level stuff, DSP, algorithms, BIOS that sort of thing! New to BASH script but it is very similar to so many others! I like to make things READABLE so they can be maintained and understood.
Lobster wrote: It is useful code because it would be modifiable by those wishing to try similar projects in Script.
I found the script a bit clumsy, Perl would have been nicer, sometimes you have to go out of your way to do something quite simple in Bash! So I don't think there is anything worth much in my script! I did have to look into gawk and sed!
Lobster wrote: Puppy 1.09 has a direct link to your website on the main page Firefox page
COOL!

:lol:
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#53 Post by Lobster »

NickBiker wrote: Ha! I started in binary (really) on the SCMP processor, then assember 6800, Z80, 68000 , 6809, etc. Then C, C++, Basic, Pascal, Algol68, recently C#, Java, Java Script, Perl. You name it I have probably written in it! Most a home at low level stuff, DSP, algorithms, BIOS that sort of thing! New to BASH script but it is very similar to so many others! I like to make things READABLE so they can be maintained and understood.
Interesting - because your code is very readable. Perl you might like to know is in Puppy2 (not sure if it is in Alpha7 but should be in the Beta)
The last language I really liked was Curl (Curl.com) it is closed source and there is a Linux version (never got that working) It can do realtime 3D raytracing from a script language - but that is another story . . .

Back to Puppy languages; XUL is the one I feel has the most potential but no one has investigated it much. I played with it but I am a very poor programmer. I prefer to hack existing code (in emergencies only)

Anyway good luck with the 2.6 Drivers
Here is a list of some of the Puppy languages:
http://puppylinux.org/wikka/ProgrammingLanguage

:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

eccentric
Posts: 186
Joined: Thu 05 Jan 2006, 11:44
Location: Khon Kaen Thailand.....NOW back in the UK
Contact:

web cam

#54 Post by eccentric »

Hi Nick,
Sorry for th long delay in letting you know how i got on with my web cam.
i was using 2.01 so it did not work. then i rememberd i had a disk of Grafpup 102.
All down loaded ok, the red light came on (bitting my nails ) but this is the message i got

"Xawtv:error while loading shared libaries. so.2: cannot open shared object file:
no such file or directory. i cannot continue "

When i have the time i will download the new pupps and try again.

Busy with my other hobby, making coal fired live steam Locos, and a steam waggon
large enough to haul 3 kids around. ( second childhood ).

Once again thank you for all of your hard work.
Michael, an eccentric

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

Re: web cam

#55 Post by NickBiker »

eccentric wrote:Hi Nick,
Sorry for th long delay in letting you know how i got on with my web cam.
"Xawtv:error while loading shared libaries. so.2: cannot open shared object file:
no such file or directory. i cannot continue "
Hi - I think was a problem from an older version - suggest you download the latest wizard and it will do the rest!

See http://www.moyo.me.uk/pupplinux/download.htm

Good luck :o [/url]
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

#56 Post by NickBiker »

Lobster wrote:Sucess 2
Hooray!
Hi - you might like to try version 1.12 that lets you alter the parameters of the webcam module fo rthings like picture quality etc. If you get a moment! Any joy with your other cam?
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#57 Post by Lobster »

:?
Oh boy I am using Puppy 2 - which uses the 2.6 kernel
- back to square 1 - will you be recompiling for 2.6 kernel?
http://puppylinux.org/wikka/Puppy2
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

#58 Post by NickBiker »

Lobster wrote::?
Oh boy I am using Puppy 2 - which uses the 2.6 kernel
- back to square 1 - will you be recompiling for 2.6 kernel?
http://puppylinux.org/wikka/Puppy2
Hi
When I get some I should be able to re-compile, but it will take quite a bit as some of the drivers may not work under 2.6 at all.

Should I move over to Puppy 2 - is it stable now?

Does Puppy 2 support the Cyrix C3 processor type as part of the Linux Kernel?

Thanks!
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#59 Post by Lobster »

Here are the release details (1 June) this is the stable release version of Puppy2
http://www.puppylinux.com/news.htm

Here is where to download
http://puppylinux.org/wikka/DownloadLatest

and it is compiled I believe for 386 and should work on the celeron

8)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
NickBiker
Posts: 155
Joined: Wed 01 Mar 2006, 13:06
Location: Guildford, UK
Contact:

#60 Post by NickBiker »

Lobster wrote:Here are the release details (1 June) this is the stable release version of Puppy2
http://www.puppylinux.com/news.htm

Here is where to download
http://puppylinux.org/wikka/DownloadLatest

and it is compiled I believe for 386 and should work on the celeron

8)
Hi Thanks I will check it out.

The C3 is a specific low-power embedded processor - Linux supports this but you need to turn on the option when the kernel is compiled. Who is best I ask about this?

Thanks!
Nick

See my Puppy webcam Guide at:
www.moyo.me.uk/pupplinux

Post Reply