open /dev/video0: Device or resource busy

I had strange problem with my EyeToy which meant if I plugged it in before and then booted the slug I would get the following error when I tried to start webcam

v4l2: open /dev/video0: Device or resource busy
v4l2: open /dev/video0: Device or resource busy
v4l: open /dev/video0: Device or resource busy
no grabber device available

However if I plugged it in after it had booted it worked fine. Thus I did the following….

fuser /dev/video0

/dev/video0:          1871m

ps -aux | grep 1871

nobody    1871  0.0  2.4   5492   732 ?        S    19:55   0:00 /usr/bin/camserv

This showed me that the software camserv was trying to access the dev. After reading this I had a ‘Ahhh now I remember moment’ i’d installed a few webcam software when I was looking for the right one amnd not removed it hence the conflict. All is working as it should now.

Continue Reading

“Webcam” Software

I only needed a simple webcam solution so I’ve used one called ‘webcam’ installed using

apt-get install webcam

this creates a config file /root/.webcamrc edit this file to suit your needs. Here’s mine for my own reference….

[grab]
       device = /dev/video0
       text = Logitech 3000 %d-%m-%Y %H:%M:%S (BST)
       fg_red = 255
       fg_green = 255
       fg_blue = 255
       width = 640
       height = 480
       delay = 30
       wait = 1
       input = usb
       norm = webcam
       rotate = 0
       top = 0
       left = 0
       bottom = -1
       right = -1
       quality = 75
       trigger = 0
       once = 0
       archive = /home/blah/archives/cam0 cam0 %d-%m-%Y %H-%M-%S.jpeg
[ftp]
       host = 127.0.0.1
       user = root
       pass = xxxx
       dir  = /var/www/cams
       file = cam0.jpeg
       tmp  = uploading.jpeg
       passive = 1
       debug = 0
       auto = 0
       local = 1
       ssh = 0

Continue Reading

Webcams

I’ve managed to get a couple of cams working on my slug so here’s what ones and how

Logitech Pro 3000/4000

apt-get install qc-usb-source qc-usb-utils


Logitech Quickcam Chat

module-assistant auto-install gspca

EyeToy

module-assistant auto-install ov51x-jpeg-source

Continue Reading

Install Some Packages

Obviously it’s down to personal choice what packages you install so this list is more for personal reference than anything else. (I’ll be updating this list as and when I come across ones I need).

nano

lynx

ntpdate Run ntpdate ntp.yourtimeserver.com

rcconf

unzip

qqlite

php5-sqlite

gcc

make

Continue Reading