Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    usb camera not detected

    I am working on an embedded linux and I think its a problem of generic kind so I am posting it here. The problem is that the USB camera is not detected . I plugged in the camera via USB and the following messages were shown:

    usb 1-1: new full speed USB device using at91_ohci and address 2
    usb 1-1: configuration #1 chosen from 1 choice`

    Now when I did lsmod following message was shown:

    Module Size Used by Not tainted`
    gspca 673512 0 - Live 0xbf000000`

    This means the driver is there and hence camera should be detected. Please tell me how to rectify the problem.

  2. #2
    How I detect my netbook camera

    $ cd /dev
    $ ls
    agpgart          loop6               ram6        tty13  tty40  ttyS1
    audio            loop7               ram7        tty14  tty41  ttyS2
    autofs           loop-control        ram8        tty15  tty42  ttyS3
    block            MAKEDEV             ram9        tty16  tty43  uinput
    bsg              mapper              random      tty17  tty44  urandom
    btrfs-control    mcelog              rfkill      tty18  tty45  v4l
    bus              media0              root        tty19  tty46  vcs
    char             mem                 rtc         tty2   tty47  vcs1
    console          mixer               rtc0        tty20  tty48  vcs2
    core             net                 sda         tty21  tty49  vcs3
    cpu              network_latency     sda1        tty22  tty5   vcs4
    cpu_dma_latency  network_throughput  sdb         tty23  tty50  vcs5
    disk             null                sequencer   tty24  tty51  vcs6
    dri              port                sequencer2  tty25  tty52  vcs7
    dsp              ppp                 sg0         tty26  tty53  vcsa
    fb0              psaux               sg1         tty27  tty54  vcsa1
    fd               ptmx                shm         tty28  tty55  vcsa2
    full             pts                 snapshot    tty29  tty56  vcsa3
    fuse             ram0                snd         tty3   tty57  vcsa4
    gpmctl           ram1                sndstat     tty30  tty58  vcsa5
    hpet             ram10               stderr      tty31  tty59  vcsa6
    input            ram11               stdin       tty32  tty6   vcsa7
    kmsg             ram12               stdout      tty33  tty60  vga_arbiter
    log              ram13               tpm0        tty34  tty61  vhost-net
    loop0            ram14               tty         tty35  tty62  video0
    loop1            ram15               tty0        tty36  tty63  xconsole
    loop2            ram2                tty1        tty37  tty7   zero
    loop3            ram3                tty10       tty38  tty8
    loop4            ram4                tty11       tty39  tty9
    loop5            ram5                tty12       tty4   ttyS0
    $ sux
    bash: cannot set terminal process group (-1): Inappropriate ioctl for device
    bash: no job control in this shell
    root@biker:/dev# lsusb -t
    /:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    /:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    /:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    /:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
    /:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
        |__ Port 6: Dev 2, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
        |__ Port 6: Dev 2, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
        |__ Port 7: Dev 3, If 0, Class=vend., Driver=rt73usb, 480M
        |__ Port 8: Dev 4, If 0, Class=stor., Driver=ums-realtek, 480M
    First I make sure video0 is in /dev which is supplied by the kernel. Then if usb camera I look for the driver and it is named uvcvideo.
    I know my camera works because of
    MPlayer is capable of displaying a webcam video stream,
    3.4.1. Recording Video

    To record video from the command line:

    Open a terminal window and type the following:

    mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0

    If you use vlc or something else. The test record commands can be found there assuming that your webcam device is at /dev/video0
    I refuse to let fear and fear of others rule my life. It puts my humanity at risk.
    Accepting Death is the only way to stay alive.

  3. #3
    Both video and video0 are present even before camera is plugged in .
    and when gqcam is executed, which is for frame grabbing , it says

    /dev/video: No such device

    I not able figure out what is the problem.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts