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

WEBCAM USB
(64 posts) (10 voices)-
Posted 12 years ago #
-
@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.
Posted 12 years ago # -
@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!
Posted 12 years ago # -
@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 :)"... probably meaning an option when running tazhw box.
Posted 12 years ago # -
@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.
Posted 12 years ago # -
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 :/Posted 12 years ago # -
@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.
Posted 12 years ago # -
@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 useThis 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
Posted 12 years ago # -
@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
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
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.
Posted 12 years ago # -
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.
# 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
}
Posted 12 years ago # -
mine here is not working also.
i have genius and logitech usb webcam. with linux-video driver in slitaz 3 was working well but in slitaz 4, skype doesnt recognize it.
even i tried to install v4l, nothing changed.
Posted 12 years ago # -
@pipein, with regards to your suggestion to unload and load the modules in the given order, I tried it but the result is the same. A copy of /var/log/messages can be found here -> http://pastebin.com/LbPq4has . The trace starts with removal of pwc, videodev and v4l1_compat and then insertion of each of them in the reverse order. As you can see the error starts when pwc in inserted. Ran mplayer which gets immediately killed which is also logged.
Haven't tried cooking the libv4l yet but will do so and let you know the outcome.
Thank you very much for your time in helping to resolve this issue - greatly appreciated.
Posted 12 years ago # -
@gdesilva at least your device is getting registered as /dev/video0 again.
I have read plenty of historic problems re: webcams similar to yours and pwc. Seems there is a sweet spot mix of pwc version, kernel version and v4l version... just what that mix is I don't know.
Noticed a couple of comments on other distros re: problems with pwc (10.0.13) and kernel 2.6.37 (both of which you have). Have seen some other distros using more recent libv4l (>0.8.1) and pwc (10.0.14) with kernel 2.6.37. So its possible that a good mix may exist.
Posted 12 years ago # -
I hope you will find a solution because i'd like to use slitaz but not if i can't use my webcam, and i don't have enough experience to fix the probleme, i'm lost so i will come back in slitaz when this webcam probleme will be fixed
Posted 12 years ago # -
Looks like we are running out of options. Downloaded libv4lc and cooked the package. I presumed there are no changes required in the receipt - I will verify this straight after this. But unfortunately, the result is the same - same error message.
Posted 12 years ago #
Reply »
You must log in to post.