SliTaz SliTaz Forum

You are not logged in.

#1 2012-06-05 17:09:35

Guest
Guest

WEBCAM USB

I can't use my webcam , i can't install it

When i try with the Tazhwbox i this message :

Ne peut trouver : v4l-dvb dans la liste des paquets du miroirs

Ne peut trouver : get-v4l-dvb dans la liste des paquets du miroirs

* Ne peut trouver = can't find

What i have to install to use my webcam??

I don't find informations in the documentation...

can you help me?

Thanks !

#2 2012-06-05 17:31:25

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: WEBCAM USB

Maybe try installing v4l-dvb or v4l-dvb-development_2.6.37

Offline

#3 2012-06-05 20:35:30

Guest
Guest

Re: WEBCAM USB

Yes, thank you a lot Trixar_za for your help,

i can install v4l-dvb-development_2.6.37 and my webcam is recognize

But after i have this message : would you like to test the webcam?

i answer "y" for yes

It install Mplayer

but i have this :

Mplayer interrupted bu signal 6 in module :preinit_libvo

-Mplayer crashed. This shouldn'd happen.

and my webcam don't work in skype

do you have an idea ? what can i do?

#4 2012-06-05 21:13:48

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: WEBCAM USB

I don't really have much experience with webcams and Linux, but maybe try installing xorg-xf86-video-v4l to see if that helps Xorg see the Video4Linux device.

Offline

#5 2012-06-05 21:34:24

Guest
Guest

Re: WEBCAM USB

yes i've installed it but how i launch it ? i don't find it in my menu list

#6 2012-06-05 22:13:00

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: WEBCAM USB

Xorg is started automatically. It's what makes Windows and Program GUIs show up. It also controls how your mouse and keyboard interacts with them.

Offline

#7 2012-06-06 00:43:29

Guest
Guest

Re: WEBCAM USB

ah ok...

Yes i've installed it , my webcam appears in skype but it don't work.

Anybody has an idea??

we can't use webcam in slitaz???

#8 2012-06-06 10:35:21

Guest
Guest

Re: WEBCAM USB

I'm sure there is a way but i can't find it, do you know others drivers for my webcam? it is recognized by skype as USB webcam 2.0, why it isn't work?

#9 2012-06-06 10:40:46

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: WEBCAM USB

Another wild guess but try installing linux-video and see if that helps. Running [c]tazhw detect-usb[/c] as root might also help.

Offline

#10 2012-06-06 10:53:50

Guest
Guest

Re: WEBCAM USB

I've installed linux-video

and it is the same

when i run tazhw detect-usb, my web is recognized,

but i can't test or use it because :  when i try to test it : Mplayer crash

and in skype i can chose the webcam but IT DON'T WORK, the screen stay black

Why can i test or use my webcam? in skype or other software

#11 2012-06-06 16:12:39

Guest
Guest

Re: WEBCAM USB

I bought  another webcam Logitech C210, and it's worse, when i plug it, all slytaz bug, i have a black screen with code and i can't do anything but shut off my pc manually...

can you help?

#12 2012-06-06 17:22:56

Guest
Guest

Re: WEBCAM USB

Je pense que je vais être obligé de passer à lubuntu, vraiment dommage, mais si je dois revenir sur windows à chaque fois que je veux utiliser skype ou msn, ce n'est pas possible

I think i will have to go to lubuntu, really a shame, but if i have to go back to windows everytime i want use skype or msn, it is'nt possible

#13 2012-06-07 08:37:41

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: WEBCAM USB

I have the same issue.

lsusb list that it is a Logitech Quickcam and I can get the microphone working but not video.

Ran fswebcam and I get the following message...

root@GDES:/proc# ls -la /dev/video0

crw-rw-rw-    1 root     video      81,   0 Jun  8 01:40 /dev/video0

root@GDES:/proc# fswebcam

--- Opening /dev/video0...

Trying source module v4l2...

Error opening device: /dev/video0

open: Device or resource busy

Trying source module v4l1...

Error opening device: /dev/video0

open: Device or resource busy

Unable to find a source module that can read /dev/video0.

Skype and Ekiga cannot find a video device.

r

Offline

#14 2012-06-07 11:43:01

Guest
Guest

Re: WEBCAM USB

i have found the solution : move to another distribution, i've moved to lubuntu, it isn't as light as slitaz but it's ok it's lighter than ubuntu, and i have no problem, all work instantly. I did want a very light distrib, but if drivers don't exist for devices very common like standard webcam (UVC), it serves at nothing. byebye slitaz, with regrets

#15 2012-06-09 05:49:12

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: WEBCAM USB

It appears that the pwc driver is broken. A dump of /var/log/messages when the camera was plugged in and when fswebcam app was run is given here - http://pastebin.com/htmNjkE2

Downloaded a Logitech supplied qc-usb-0.6.4 driver from http://sourceforge.net/projects/qce-ga/files/qc-usb/0.6.4/ and tried to compile it but did not have much success.

Any ideas? thanks.

Offline

#16 2012-06-09 06:23:13

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: WEBCAM USB

Try this I have resolved on my italian topic http://forum.slitaz.org/topic/slitaz-su-eeepc-900hd#post-9197

Offline

#17 2012-06-09 07:16:22

pipein
Member
Registered: 2012-05-30
Posts: 46

Re: WEBCAM USB

@gdesilva

Hopefully gibor's resolution fixes it for you (my Italian is not great).

Just for reference, if you are using Logitech Quickcam 4000 Pro, it seems to be listed in the Unsupported Cameras section of the driver sourceforge page you linked to.  The same section refers to using a different driver in that case.

Offline

#18 2012-06-09 10:39:06

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: WEBCAM USB

@gibor - tried to translate the posts using Google Translate which did not make much sense at all! Could you kindly list the steps taken to overcome this issue? I removed pwc and inserted uvcvideo but that does not give a /dev/video0 device file. thanks.

@pipein, thanks for the alert. Just downloaded gspcav1-20071224.tar.gz which is the recommended driver. Will update the progress...

EDIT: wrong driver! it appears QC 4000 Pro drivers are virtually non-existent!

Offline

#19 2012-06-09 10:43:15

pipein
Member
Registered: 2012-05-30
Posts: 46

Re: WEBCAM USB

@gdesilva

(noting gibor's topic is a year old, however...)

In gibor's topic he provides another package (media-001.tazpkg):

http://www.freefilehosting.net/media-001

gibor mentioned that adding this on several pcs (live) helped webcam work 1st time.

Also in same topic nickname113 says "I just put the check mark on auto install optional packages or something like that and it worked smile"... probably meaning an option when running tazhw box.

Offline

#20 2012-06-09 11:15:49

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: WEBCAM USB

@pipein, NBG! Installed media-001.tazpkg and set auto install optional packages in Tazhw Box - the latter caused installation of a number of additional packages but the camera is dead as a door nail. /dev/video0 file exists but vlc claims that it cannot open /dev/video0 (in capture mode). Checked to make sure tux is in video group.

Offline

#21 2012-06-09 11:49:23

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: WEBCAM USB

Sorry

It means having the right driver package then you run the test from the command line with play webcam

mplayer tv:// -vo x11 driver=v4l2:device=/dev/video0

if it does not work then I'm wrong advice hmm

Offline

#22 2012-06-09 13:36:04

pipein
Member
Registered: 2012-05-30
Posts: 46

Re: WEBCAM USB

@gdesilva

yeah pwc seems to be the right (only) one to handle quickcam pro 4000 and you suspected it was broken.  I don't have any webcam (let alone one using pwc) so I can't really test.

Long shot 1: check udev is correct version for your SliTaz version (170 for Slitaz 4.0 I think). I found udev had been updated to 182 somehow one time on my machine which seemed to cause a problem creating /dev/dri/card0. (well forcing reinstall of udev-170 fixed it anyway).

Long shot 2: did you happen to try selecting the WebCam button in tazhw box?

You might try seeing if /dev/video0 really is busy/in use by something else by using command fuser /dev/video0 in terminal.  That might output a PID which you can look the for details of using using something likeps | grep XXXX where XXXX is that PID.

Could try disconnecting webcam, deleting /dev/video0 as root and rebooting. Then replugging webcam. Then try gibor's mplayer line.

Beyond that I'm afraid I'm not much help on this.

Offline

#23 2012-06-10 09:59:58

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: WEBCAM USB

@gibor - thanks for the clarification. mplayer fails all the time.

@pipein, tried both options suggested by you. 1. I am running udev-170 and 2. did try to install via tazhw box. And no one is using /dev/video0 either.

However, my /var/log/messages clearly puts out an error message when the camera is plugged in as follows;

Jun 10 19:54:01 (none) user.info kernel: usb 1-2.6: new full speed USB device using ehci_hcd and address 10

Jun 10 19:54:01 (none) daemon.err udevd[1626]: bind failed: Address already in use

Jun 10 19:54:01 (none) user.notice error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1626]: error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1628]: bind failed: Address already in use

Jun 10 19:54:01 (none) user.notice error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1628]: error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1629]: bind failed: Address already in use

Jun 10 19:54:01 (none) user.notice error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1629]: error binding udev control socket

Jun 10 19:54:01 (none) user.info kernel: Linux video capture interface: v2.00

Jun 10 19:54:01 (none) daemon.err udevd[1631]: bind failed: Address already in use

Jun 10 19:54:01 (none) user.notice error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1631]: error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1632]: bind failed: Address already in use

Jun 10 19:54:01 (none) user.notice error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1632]: error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1634]: bind failed: Address already in use

Jun 10 19:54:01 (none) user.notice error binding udev control socket

Jun 10 19:54:01 (none) daemon.err udevd[1634]: error binding udev control socket

Jun 10 19:54:01 (none) user.info kernel: pwc: Philips webcam module version 10.0.13 loaded.

Jun 10 19:54:01 (none) user.info kernel: pwc: Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840.

Jun 10 19:54:01 (none) user.info kernel: pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30,

Jun 10 19:54:01 (none) user.info kernel: pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100.

Jun 10 19:54:01 (none) user.debug kernel: pwc: Trace options: 0x0001

Jun 10 19:54:02 (none) daemon.err udevd[1635]: bind failed: Address already in use

Jun 10 19:54:02 (none) user.notice error binding udev control socket

Jun 10 19:54:02 (none) daemon.err udevd[1635]: error binding udev control socket

Jun 10 19:54:02 (none) daemon.err udevd[1636]: bind failed: Address already in use

Jun 10 19:54:02 (none) user.notice error binding udev control socket

Jun 10 19:54:02 (none) daemon.err udevd[1636]: error binding udev control socket

Jun 10 19:54:02 (none) daemon.err udevd[1639]: bind failed: Address already in use

Jun 10 19:54:02 (none) user.notice error binding udev control socket

Jun 10 19:54:02 (none) daemon.err udevd[1639]: error binding udev control socket

Jun 10 19:54:02 (none) user.info kernel: pwc: Logitech QuickCam 4000 Pro USB webcam detected.

Jun 10 19:54:02 (none) user.warn kernel: ------------[ cut here ]------------

Jun 10 19:54:02 (none) user.warn kernel: WARNING: at drivers/media/video/v4l2-dev.c:450 __video_register_device+0x38/0x3de [videodev]()

Jun 10 19:54:02 (none) user.warn kernel: Hardware name: Dell DXP051

Jun 10 19:54:02 (none) user.warn kernel: Modules linked in: pwc(+) videodev snd_usb_audio snd_pcm snd_timer snd_page_alloc snd_hwdep snd_usbmidi_lib snd_rawmidi snd_seq_device snd soundcore button nvidia(P) i2c_core intel_agp intel_gtt agpgart

Jun 10 19:54:02 (none) user.warn kernel: Pid: 1630, comm: modprobe Tainted: P            2.6.37-slitaz #2

Jun 10 19:54:02 (none) user.warn kernel: Call Trace:

Jun 10 19:54:02 (none) user.warn kernel:  [<c1029efc>] warn_slowpath_common+0x65/0x7a

Jun 10 19:54:02 (none) user.warn kernel:  [<f8090502>] ? __video_register_device+0x38/0x3de [videodev]

Jun 10 19:54:02 (none) user.warn kernel:  [<c1029f20>] warn_slowpath_null+0xf/0x13

Jun 10 19:54:02 (none) user.warn kernel:  [<f8090502>] __video_register_device+0x38/0x3de [videodev]

Jun 10 19:54:02 (none) user.warn kernel:  [<f80908be>] video_register_device+0xa/0xc [videodev]

Jun 10 19:54:02 (none) user.warn kernel:  [<f8148e18>] usb_pwc_probe+0x6df/0x8ec [pwc]

Jun 10 19:54:02 (none) user.warn kernel:  [<c129b8e3>] usb_probe_interface+0xb2/0xec

Jun 10 19:54:02 (none) user.warn kernel:  [<c11faee2>] driver_probe_device+0x81/0xf9

Jun 10 19:54:02 (none) user.warn kernel:  [<c11faf9d>] __driver_attach+0x43/0x5f

Jun 10 19:54:02 (none) user.warn kernel:  [<c11fa456>] bus_for_each_dev+0x3d/0x60

Jun 10 19:54:02 (none) user.warn kernel:  [<c11fac9b>] driver_attach+0x14/0x16

Jun 10 19:54:02 (none) user.warn kernel:  [<c11faf5a>] ? __driver_attach+0x0/0x5f

Jun 10 19:54:02 (none) user.warn kernel:  [<c11fa9c7>] bus_add_driver+0x8d/0x1c5

Jun 10 19:54:02 (none) user.warn kernel:  [<c11fb159>] driver_register+0x77/0xd6

Jun 10 19:54:02 (none) user.warn kernel:  [<c129b292>] usb_register_driver+0x66/0xf3

Jun 10 19:54:02 (none) user.warn kernel:  [<f806837f>] usb_pwc_init+0x37f/0x387 [pwc]

Jun 10 19:54:02 (none) user.warn kernel:  [<c1001210>] do_one_initcall+0x71/0x11d

Jun 10 19:54:02 (none) user.warn kernel:  [<f8068000>] ? usb_pwc_init+0x0/0x387 [pwc]

Jun 10 19:54:02 (none) user.warn kernel:  [<c104cc29>] sys_init_module+0x1278/0x1419

Jun 10 19:54:02 (none) user.warn kernel:  [<c137a079>] syscall_call+0x7/0xb

Jun 10 19:54:02 (none) user.warn kernel: ---[ end trace 7d3294f9d31de7cb ]---

Jun 10 19:54:02 (none) user.err kernel: pwc: Failed to register as video device (-22).

Jun 10 19:54:02 (none) user.warn kernel: Philips webcam: probe of 1-2.6:1.0 failed with error -22

Jun 10 19:54:02 (none) daemon.err udevd[1637]: bind failed: Address already in use

This obviously suggests that there is a problem inserting the pwc module due to some udev address conflic? My knowledge about udev is zilch and would appreciate if some one can shed some light on resolving this conflict. Thanks

Offline

#24 2012-06-10 16:34:52

pipein
Member
Registered: 2012-05-30
Posts: 46

Re: WEBCAM USB

@gdesilva

Sorry no help so far.  Until an answer comes along, some more info from a bit of poking around:

udev may not be part the problem (at least not directly). I have many of the

[c]daemon.err udevd[1639]: bind failed: Address already in use

user.notice error binding udev control socket

daemon.err udevd[1639]: error binding udev control socket

[/c]

triplets in /var/log/messages and /var/log/messages.0, including when inserting various usb devices which function without issue.

If you still have the media-001.tazpkg installed, then you might remove it and make sure you have the v4l-dvb package (v4l-dvb-development_2.6.37.tazpkg) and the libv4l package installed.

Do you get the same results in the logs if the webcam is plugged in before booting?  I had read that was an issue for some people on other distros with the pwc module.

I also read that the order of loading modules is important for pwc.  You might try plugging in camera, then unloading the modules in order (pwc, then videodev, then v4l1-compat), then loading modules in correct order (v4l1-compat, videodev, pwc).

I'm afraid I can't test these.

Offline

#25 2012-06-11 03:49:38

pipein
Member
Registered: 2012-05-30
Posts: 46

Re: WEBCAM USB

One more thing to try...

If you can cook your own packages, cook a new libv4l using a newer version (libv4l in SliTaz 4.0 is using v0.8.1 and in Cooking it is v0.8.5).

Using the receipt from Cooking, it compiles without error and is worth a try.

[c]# SliTaz package receipt.

PACKAGE="libv4l"

VERSION="0.8.5"

CATEGORY="multimedia"

MAINTAINER="jozee@slitaz.org"

SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)"

WEB_SITE="http://freshmeat.net/projects/libv4l"

SOURCE="v4l-utils"

TARBALL="${SOURCE}-${VERSION}.tar.bz2"

WGET_URL="http://linuxtv.org/downloads/v4l-utils/$TARBALL"

TAGS="webcam video"

DEPENDS="libjpeg"

BUILD_DEPENDS="jpeg-dev"

# Rules to configure and make the package.

compile_rules()

{

    cd $src

    make &&

    make install PREFIX="/usr" DESTDIR="$DESTDIR"

}

# Rules to gen a SliTaz package suitable for Tazpkg.

genpkg_rules()

{

    mkdir -p $fs/usr/lib

    cp -a $_pkg/usr/lib/*so* $fs/usr/lib/

    cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib

}

post_install()

{

  echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile

}

post_remove()

{

  sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile

}

[/c]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.036 seconds, 7 queries executed - Memory usage: 1.6 MiB (Peak: 1.77 MiB) ]