hi,i'm having trouble getting my webcam to work,does someone know a solution?

won't detect my webcam
(13 posts) (5 voices)-
Posted 9 years ago #
-
How do you try to make it work? What software do you use?
Posted 9 years ago # -
I'm using guvcview and if i connect my webcam and open it it says:
Please make sure the camera is connected
and that the correct driver is installed.Posted 9 years ago # -
Is it a laptop-integrated webcam? Type "lspci -k" and post result here.
Is it a USB webcam? Type "lsusb" and "dmesg|tail -20" just after plugging it, and post results here.Type "ls -l /dev/video" and post results here.
Try vlc, go to Media > Open Capture Device. Does the arrow at the right of "Video device name" offer you a choice?
Posted 9 years ago # -
well it's uses a usb port but is made to fit on a laptop screen and i'm using a desktop so:
VLC:no VLC does NOT offer me a choice
lspci -k = 00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface (rev 03)
Subsystem: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM Controller/Host-Hub Interface
Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
Subsystem: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device
Kernel driver in use: i915
00:1d.0 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02)
Subsystem: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1
Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02)
Subsystem: Intel Corporation Device 24d2
Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02)
Subsystem: Intel Corporation Device 24d2
Kernel driver in use: uhci_hcd
00:1d.3 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02)
Subsystem: Intel Corporation Device 24d2
Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
Subsystem: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02)
Subsystem: Intel Corporation 82801EB (ICH5) SATA Controller
Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
Subsystem: Intel Corporation Device 24d2
00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
Subsystem: Device 414c:4761
Kernel driver in use: snd_intel8x0
01:04.0 Ethernet controller: Sundance Technology Inc / IC Plus Corp IC Plus IP100A Integrated 10/100 Ethernet MAC + PHY (rev 31)
Subsystem: Sundance Technology Inc / IC Plus Corp Device 0201
Kernel driver in use: sundancelsusb = Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001
Bus 004 Device 001: ID 1d6b:0001
Bus 005 Device 001: ID 1d6b:0001
Bus 001 Device 005: ID 046d:0829
Bus 003 Device 002: ID 093a:2510
Bus 005 Device 002: ID 04d9:1603dmesg|tail = fb0: inteldrmfb frame buffer device
drm: registered panic notifier
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
NET: Registered protocol family 10
eth0: Link up
eth0: Link changed: 100Mbps, full duplex
eth0: no IPv6 routers present
usb 1-7: USB disconnect, device number 3
usb 1-7: new high-speed USB device number 5 using ehci_hcd
usbcore: registered new interface driver snd-usb-audiols -l/dev/video = ls: invalid option -- '/'
Command line: ls -l/dev/video
BusyBox v1.23.2 (2015-03-23 09:54:30 CET) multi-call binary.
Usage: ls [-1AaCxdLHRFplinsehrSXvctu] [-w WIDTH] [FILE]...
List directory contents
-1 One column output
-a Include entries which start with .
-A Like -a, but exclude . and ..
-C List by columns
-x List by lines
-d List directory entries instead of contents
-L Follow symlinks
-H Follow symlinks on command line
-R Recurse
-p Append / to dir entries
-F Append indicator (one of */=@|) to entries
-l Long listing format
-i List inode numbers
-n List numeric UIDs and GIDs instead of names
-s List allocated blocks
-e List full date and time
-h List sizes in human readable format (1K 243M 2G)
-r Sort in reverse order
-S Sort by size
-X Sort by extension
-v Sort by version
-c With -l: sort by ctime
-t With -l: sort by mtime
-u With -l: sort by atime
-w N Assume the terminal is N columns wide
--color[={always,never,auto}] Control coloringPosted 9 years ago # -
Hi,
Please install the package linux-media.
Then retry camera reconnect and these commands:
lsusb lsmod | grep uvc ls -l /dev/video/
Don't forget about spaces between command and between it's options.
Post outputs here.Posted 9 years ago # -
After installing linux-media:
lsusb =
Bus 001 Device 001: ID 1d6b:0002
Bus 002 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001
Bus 004 Device 001: ID 1d6b:0001
Bus 005 Device 001: ID 1d6b:0001
Bus 001 Device 005: ID 046d:0829
Bus 003 Device 002: ID 093a:2510
Bus 005 Device 002: ID 04d9:1603lsmod | grep uvc = nothing
ls -l /dev/video/ = ls: /dev/video/: No such file or directory
and still no luck with vlc.
Posted 9 years ago # -
Hi!
I forgot to ask starting question: what is your Linux Kernel version?
uname -a
My output is:
Linux slitaz 3.2.71-slitaz #4 SMP Mon Sep 21 00:19:25 CEST 2015 i686 GNU/Linux
Why I ask? Different SliTaz distributions has different versions of Linux Kernel and, correspondingly, different packages versions. You can install Linux module package that contains module for Linux version 3.2.71 while your system running Linux Kernel version 2.6.37, and this module will not work: kernel just not find it and will not support it.Next question to be sure your Kernel modules versions matched your Kernel version:
tazpkg -l | fgrep linux
My output is:
linux 3.2.71 base-system linux-acpi 3.2.71 base-system linux-agp 3.2.71 base-system linux-autofs 3.2.71 base-system linux-cpufreq 3.2.71 base-system linux-crypto 3.2.71 base-system linux-drm 3.2.71 base-system linux-firmware 3.2.71 non-free linux-hwmon 3.2.71 base-system linux-ipv6 3.2.71 base-system linux-media 3.2.71 base-system linux-memstick 3.2.71 base-system linux-mmc 3.2.71 base-system linux-sound 3.2.71 base-system linux-squashfs 3.2.71 base-system linux-video 3.2.71 base-system linux-wireless 3.2.71 base-system
Next question assuming it's OK with your Kernel: you may use "tazpkg" with the bug that causes post-install command not executed. Try to become root and to execute post-install command now:
su
(then type root password blindly, then press Enter)
depmod -a
Now assuming you're using Linux Kernel v.3.2.71 and Linux Kernel modules v.3.2.71 and Kernel informed about modules installed from the "linux-media" packages.
Re-connect your web camera and see what your Kernel says:
dmesg | fgrep -C4 uvc
My output is:
usb 1-5: USB disconnect, device number 3
usb 1-5: new high-speed USB device number 4 using ehci_hcd
Linux media interface: v0.10
Linux video capture interface: v2.00
uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
input: USB 2.0 Camera as /devices/pci0000:00/0000:00:1d.7/usb1/1-5/1-5:1.0/input/input4
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
usb 1-5: USB disconnect, device number 4
hub 1-0:1.0: unable to enumerate USB device on port 5
usb 1-5: new high-speed USB device number 6 using ehci_hcd
hub 1-0:1.0: unable to enumerate USB device on port 5
usb 4-1: new full-speed USB device number 2 using uhci_hcd
usb 4-1: not running at top speed; connect to a high speed hub
uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
input: USB 2.0 Camera as /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/input/input5
EXT3-fs (sda7): using internal journal
kjournald starting. Commit interval 5 seconds
EXT3-fs (sda6): using internal journal
I've found that Kernel see my netbook's web camera.
And I can be sure about Kernel modules in use by issuing this command:
lsmod | fgrep uvc
My output is:
uvcvideo 46650 0 videodev 56659 1 uvcvideo media 6541 2 uvcvideo,videodev
But what about
/dev/video
? Sorry, I've give you yesterday wrong command, the right command is:
ls -l /dev/video*
My output is:
crw-rw---- 1 root video 81, 0 Окт 31 10:03 /dev/video0
You see that you can use this video device if you're root user, or if you belong to the "video" group. Let's check:
grep video /etc/group
My output is:
video:x:18:tux
(My user "tux" can use this video device.)And finally I can install the package "guvcview" and run the command "guvcview" from terminal, and it write so more info, and after seconds I can see my face in the window. My web camera works!
(But it's pretty small: 320x240px, and pretty slow: 2 to 4.5fps)
Good luck!
________
PS. Forgot to mention, seems package "libv4l" is also required.Posted 9 years ago # -
uname -a:
Linux West 3.2.53-slitaz #4 SMP Wed Mar 25 11:33:01 CET 2015 i686 GNU/Linuxtazpkg -l | fgrep linux:
/usr/libexec/tazpkg/list: line 204: title: not found
grub4dos-linux 0.4.4 system-tools
linux 3.2.53 base-system
linux-agp 3.2.53 base-system
linux-crypto 3.2.53 base-system
linux-drm 3.2.53 base-system
linux-firmware 3.2.53 non-free
linux-media 3.2.71 base-system
linux-sound 3.2.53 base-system
linux-wireless 3.2.53 base-system
syslinux 4.06 base-system
syslinux-extra 4.06 system-tools
util-linux-blkid 2.24 base-system
util-linux-eject 2.24 base-system
util-linux-getopt 2.24 base-system
util-linux-mount 2.24 base-system
util-linux-uuid 2.24 base-system
/usr/libexec/tazpkg/list: line 204: _p: not found
/usr/libexec/tazpkg/list: line 204: footer: not founddepmod -a and dmesg | fgrep -C4 uvc and lsmod | fgrep uvc do nothing at all
ls -l /dev/video* or ls -l /dev/video (I tried both)say ls: /dev/video*: No such file or directory
ls: /dev/video: No such file or directorygrep video /etc/group: video:x:18:West
And when i try to open Guvcview from terminal or desktop it says:
Unable to open device
Please make sure the camera is connected
and that the correct driver is installed.Posted 9 years ago # -
> linux 3.2.53 base-system
> linux-media 3.2.71 base-systemThis cannot work. Update your system - run
tazpkg up
then rebootanother, faster way - you can get old version
wget ftp://ftp.rz.uni-kiel.de/pub2/linux/slitaz/packages/cooking/linux-media-3.2.53.tazpkg
and install it
tazpkg -i linux-media-3.2.53.tazpkg
Posted 9 years ago # -
< off-topic >
Oh, my! Aleksej, you're the double of Russell Crowe!
< /off-topic >Posted 9 years ago # -
thank you az_ua !!
this solved my problem, i had the same linux kernel, with the same incorrect linux-media tazpkg
slitaz is definately going to be my main distro now.
Posted 9 years ago # -
Sorry for the late reply,but thank you az_ua my problem is fixed!!!Now I just need to hope skype works...
Posted 9 years ago #
Reply
You must log in to post.