SliTaz SliTaz Forum

You are not logged in.

#1 2015-10-26 17:30:38

Linux Forever
Member
Registered: 2015-10-15
Posts: 55

won't detect my webcam

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

Offline

#2 2015-10-26 21:01:06

llev
Member
Registered: 2011-12-09
Posts: 568

Re: won't detect my webcam

How do you try to make it work? What software do you use?

Offline

#3 2015-10-27 03:46:11

Linux Forever
Member
Registered: 2015-10-15
Posts: 55

Re: won't detect my webcam

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.

Offline

#4 2015-10-30 20:15:44

llev
Member
Registered: 2011-12-09
Posts: 568

Re: won't detect my webcam

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?

Offline

#5 2015-10-31 01:26:56

Linux Forever
Member
Registered: 2015-10-15
Posts: 55

Re: won't detect my webcam

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: sundance

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:1603

dmesg|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-audio

ls -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 coloring

Offline

#6 2015-10-31 02:16:20

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: won't detect my webcam

Hi,

Please install the package linux-media.

Then retry camera reconnect and these commands:

[c]lsusb
lsmod | grep uvc
ls -l /dev/video/[/c]
Don't forget about spaces between command and between it's options.

Post outputs here.

Offline

#7 2015-10-31 06:14:46

Linux Forever
Member
Registered: 2015-10-15
Posts: 55

Re: won't detect my webcam

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:1603

lsmod | grep uvc = nothing

ls -l /dev/video/ = ls: /dev/video/: No such file or directory

and still no luck with vlc.

Offline

#8 2015-10-31 08:41:39

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: won't detect my webcam

Hi!

I forgot to ask starting question: what is your Linux Kernel version?

[c]uname -a[/c]

My output is:

[c]Linux slitaz 3.2.71-slitaz #4 SMP Mon Sep 21 00:19:25 CEST 2015 i686 GNU/Linux[/c]

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:

[c]tazpkg -l | fgrep linux[/c]

My output is:

[c]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[/c]
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:

[c]su[/c]

(then type root password blindly, then press Enter)

[c]depmod -a[/c]

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:

[c]dmesg | fgrep -C4 uvc[/c]

My output is:

[c]usb 1-5: USB disconnect, device number 3[/c]

[c]usb 1-5: new high-speed USB device number 4 using ehci_hcd[/c]

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)

[c]usb 1-5: USB disconnect, device number 4[/c]

[c]hub 1-0:1.0: unable to enumerate USB device on port 5[/c]

[c]usb 1-5: new high-speed USB device number 6 using ehci_hcd[/c]

[c]hub 1-0:1.0: unable to enumerate USB device on port 5[/c]

[c]usb 4-1: new full-speed USB device number 2 using uhci_hcd[/c]

[c]usb 4-1: not running at top speed; connect to a high speed hub[/c]

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

[c]EXT3-fs (sda7): using internal journal[/c]

[c]kjournald starting.  Commit interval 5 seconds[/c]

[c]EXT3-fs (sda6): using internal journal[/c]

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:

[c]lsmod | fgrep uvc[/c]

My output is:

[c]uvcvideo               46650  0
videodev               56659  1 uvcvideo
media                   6541  2 uvcvideo,videodev[/c]
But what about [c]/dev/video[/c]? Sorry, I've give you yesterday wrong command, the right command is:

[c]ls -l /dev/video*[/c]

My output is:

[c]crw-rw---- 1 root video 81, 0 Окт 31 10:03 /dev/video0[/c]

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:

[c]grep video /etc/group[/c]

My output is:

[c]video:x:18:tux[/c]

(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)

Image.jpg

Good luck!

________

PS. Forgot to mention, seems package "libv4l" is also required.

Offline

#9 2015-11-01 01:59:16

Linux Forever
Member
Registered: 2015-10-15
Posts: 55

Re: won't detect my webcam

uname -a:

Linux West 3.2.53-slitaz #4 SMP Wed Mar 25 11:33:01 CET 2015 i686 GNU/Linux

tazpkg -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 found

depmod -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 directory

grep 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.

Offline

#10 2015-11-01 02:32:57

az_ua
Moderator
Registered: 2014-05-02
Posts: 284

Re: won't detect my webcam

> linux 3.2.53 base-system

> linux-media 3.2.71 base-system

This cannot work. Update your system - run  [c]tazpkg  up[/c]

then reboot

another, 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

[c]tazpkg -i linux-media-3.2.53.tazpkg[/c]

Offline

#11 2015-11-01 11:04:26

llev
Member
Registered: 2011-12-09
Posts: 568

Re: won't detect my webcam

< off-topic >

Oh, my! Aleksej, you're the double of Russell Crowe!

< /off-topic >

Offline

#12 2015-11-06 20:40:22

dussehra
Member
Registered: 2015-10-21
Posts: 5

Re: won't detect my webcam

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.

Offline

#13 2015-11-07 15:41:00

Linux Forever
Member
Registered: 2015-10-15
Posts: 55

Re: won't detect my webcam

Sorry for the late reply,but thank you az_ua my problem is fixed!!!Now I just need to hope skype works...

Offline

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

Board footer

Powered by FluxBB
Modified by Visman

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