Announcement

Collapse
No announcement yet.

Webcam self-sabotage

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Webcam self-sabotage

    Hi, my webcam was working fine yesterday. Since then I've messed around with some software and now when I try to load an app I get:

    Could not connect to video device (/dev/video0/). check connection.


    I suspect It has something to do with installing xawtv which i had to xkill because I couldn't get it to work.

    nnjond@nnjond-den:~$ lsusb
    Bus 002 Device 002: ID 09da:0006 A4 Tech Co., Ltd Optical Mouse WOP-35 / Trust 450L Optical Mouse
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 005: ID 041e:4083 Creative Technology, Ltd Live! Cam Socialize [VF0640]
    Bus 001 Device 004: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash Flash Drive
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    nnjond@nnjond-den:~$

    Could you advise me please?

    Thanks for your time.

    #2
    Re: Webcam self-sabotage

    We are not psychics here. You'll need to supply more information.
    What kind of webcam do you have, external or built-in?
    What is the make and model of your PC (and your webcam if it is external)?

    What is the output of
    lspci
    lshw
    lsusb

    THEN, perhaps, we can be of some help.
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      Re: Webcam self-sabotage

      nnjond@nnjond-den:~$ lspci
      00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
      00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
      00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
      00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
      00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
      00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
      00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1)
      00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
      00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2)
      00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
      00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
      00:08.1 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
      00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
      00:0b.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
      00:0c.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
      00:0d.0 VGA compatible controller: nVidia Corporation C61 [GeForce 6150SE nForce 430] (rev a2)
      00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
      00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
      00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
      00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
      nnjond@nnjond-den:~$ lshw
      WARNING: you should run this program as super-user.
      ^[[F^[[3~^[[3~^[[C
      nnjond-den
      description: Computer
      width: 32 bits
      *-core
      description: Motherboard
      physical id: 0
      *-memory:0
      description: System memory
      physical id: 3
      size: 1015MiB
      *-cpu
      product: AMD Athlon(tm) 64 Processor 3800+
      vendor: Advanced Micro Devices [AMD]
      physical id: a
      bus info: cpu@0
      version: 15.15.2
      size: 2400MHz
      capacity: 2400MHz
      width: 64 bits
      capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp x86-64 3dnowext 3dnow up extd_apicid pni cx16 lahf_lm svm extapic cr8_legacy cpufreq
      *-cache:0
      description: L1 cache
      physical id: 0
      size: 128KiB
      *-cache:1
      description: L2 cache
      physical id: 1
      size: 512KiB
      *-memory:1 UNCLAIMED
      description: RAM memory
      product: MCP61 Memory Controller
      vendor: nVidia Corporation
      physical id: 0
      bus info: pci@0000:00:00.0
      version: a1
      width: 32 bits
      clock: 66MHz (15.2ns)
      capabilities: bus_master cap_list
      configuration: latency=0
      *-isa
      description: ISA bridge
      product: MCP61 LPC Bridge
      vendor: nVidia Corporation
      physical id: 1
      bus info: pci@0000:00:01.0
      version: a2
      width: 32 bits
      clock: 66MHz
      capabilities: isa bus_master
      configuration: latency=0
      resources: ioport:4f00(size=256)
      *-serial
      description: SMBus
      product: MCP61 SMBus
      vendor: nVidia Corporation
      physical id: 1.1
      bus info: pci@0000:00:01.1
      version: a2
      width: 32 bits
      clock: 66MHz
      capabilities: cap_list
      configuration: driver=nForce2_smbus latency=0
      resources: irq:11 ioport:4900(size=64) ioport:4d00(size=64) ioport:4e00(size=64)
      *-memory:2 UNCLAIMED
      description: RAM memory
      product: MCP61 Memory Controller
      vendor: nVidia Corporation
      physical id: 1.2
      bus info: pci@0000:00:01.2
      version: a2
      width: 32 bits
      clock: 66MHz (15.2ns)
      configuration: latency=0
      *-usb:0
      description: USB Controller
      product: MCP61 USB Controller
      vendor: nVidia Corporation
      physical id: 2
      bus info: pci@0000:00:02.0
      version: a3
      width: 32 bits
      clock: 66MHz
      capabilities: ohci bus_master cap_list
      configuration: driver=ohci_hcd latency=0 maxlatency=1 mingnt=3
      resources: irq:20 memory:fdf7f000-fdf7ffff
      *-usb:1
      description: USB Controller
      product: MCP61 USB Controller
      vendor: nVidia Corporation
      physical id: 2.1
      bus info: pci@0000:00:02.1
      version: a3
      width: 32 bits
      clock: 66MHz
      capabilities: ehci bus_master cap_list
      configuration: driver=ehci_hcd latency=0 maxlatency=1 mingnt=3
      resources: irq:21 memory:fdf7ec00-fdf7ecff
      *-pci:0
      description: PCI bridge
      product: MCP61 PCI bridge
      vendor: nVidia Corporation
      physical id: 4
      bus info: pci@0000:00:04.0
      version: a1
      width: 32 bits
      clock: 66MHz
      capabilities: pci subtractive_decode bus_master cap_list
      *-multimedia
      description: Audio device
      product: MCP61 High Definition Audio
      vendor: nVidia Corporation
      physical id: 5
      bus info: pci@0000:00:05.0
      version: a2
      width: 32 bits
      clock: 66MHz
      capabilities: bus_master cap_list
      configuration: driver=HDA Intel latency=0 maxlatency=5 mingnt=2
      resources: irq:22 memory:fdf78000-fdf7bfff
      *-ide:0
      description: IDE interface
      product: MCP61 IDE
      vendor: nVidia Corporation
      physical id: 6
      bus info: pci@0000:00:06.0
      version: a2
      width: 32 bits
      clock: 66MHz
      capabilities: ide bus_master cap_list
      configuration: driver=pata_amd latency=0 maxlatency=1 mingnt=3
      resources: irq:0 ioport:1f0(size=8) ioport:3f6 ioport:170(size=8) ioport:376 ioport:ffa0(size=16)
      *-bridge
      description: Ethernet interface
      product: MCP61 Ethernet
      vendor: nVidia Corporation
      physical id: 7
      bus info: pci@0000:00:07.0
      logical name: eth0
      version: a2
      serial: 44:87:fc:82:53:93
      width: 32 bits
      clock: 66MHz
      capabilities: bridge bus_master cap_list ethernet physical
      configuration: broadcast=yes driver=forcedeth driverversion=0.64 ip=192.168.1.2 latency=0 maxlatency=20 mingnt=1 multicast=yes
      resources: irq:43 memory:fdf7d000-fdf7dfff ioport:e480(size=8)
      *-ide:1
      description: IDE interface
      product: MCP61 SATA Controller
      vendor: nVidia Corporation
      physical id: 8
      bus info: pci@0000:00:08.0
      version: a2
      width: 32 bits
      clock: 66MHz
      capabilities: ide bus_master cap_list
      configuration: driver=sata_nv latency=0 maxlatency=1 mingnt=3
      resources: irq:23 ioport:e400(size=8) ioport:e080(size=4) ioport:e000(size=8) ioport:dc00(size=4) ioport:d880(size=16) memory:fdf7c000-fdf7cfff
      *-ide:2
      description: IDE interface
      product: MCP61 SATA Controller
      vendor: nVidia Corporation
      physical id: 8.1
      bus info: pci@0000:00:08.1
      version: a2
      width: 32 bits
      clock: 66MHz
      capabilities: ide bus_master cap_list
      configuration: driver=sata_nv latency=0 maxlatency=1 mingnt=3
      resources: irq:22 ioport:d800(size=8) ioport:d480(size=4) ioport:d400(size=8) ioport:d080(size=4) ioport:d000(size=16) memory:fdf77000-fdf77fff
      *-pci:1
      description: PCI bridge
      product: MCP61 PCI Express bridge
      vendor: nVidia Corporation
      physical id: 9
      bus info: pci@0000:00:09.0
      version: a2
      width: 32 bits
      clock: 33MHz
      capabilities: pci normal_decode bus_master cap_list
      configuration: driver=pcieport
      resources: irq:40
      *-pci:2
      description: PCI bridge
      product: MCP61 PCI Express bridge
      vendor: nVidia Corporation
      physical id: b
      bus info: pci@0000:00:0b.0
      version: a2
      width: 32 bits
      clock: 33MHz
      capabilities: pci normal_decode bus_master cap_list
      configuration: driver=pcieport
      resources: irq:41
      *-pci:3
      description: PCI bridge
      product: MCP61 PCI Express bridge
      vendor: nVidia Corporation
      physical id: c
      bus info: pci@0000:00:0c.0
      version: a2
      width: 32 bits
      clock: 33MHz
      capabilities: pci normal_decode bus_master cap_list
      configuration: driver=pcieport
      resources: irq:42 memory:fe000000-fe0fffff
      *-display
      description: VGA compatible controller
      product: C61 [GeForce 6150SE nForce 430]
      vendor: nVidia Corporation
      physical id: d
      bus info: pci@0000:00:0d.0
      version: a2
      width: 64 bits
      clock: 66MHz
      capabilities: vga_controller bus_master cap_list rom
      configuration: driver=nvidia latency=0
      resources: irq:21 memory:fc000000-fcffffff memory:d0000000-dfffffff memory:fb000000-fbffffff memory:fdf40000-fdf5ffff
      *-pci:4
      description: Host bridge
      product: K8 [Athlon64/Opteron] HyperTransport Technology Configuration
      vendor: Advanced Micro Devices [AMD]
      physical id: 100
      bus info: pci@0000:00:18.0
      version: 00
      width: 32 bits
      clock: 33MHz
      *-pci:5
      description: Host bridge
      product: K8 [Athlon64/Opteron] Address Map
      vendor: Advanced Micro Devices [AMD]
      physical id: 101
      bus info: pci@0000:00:18.1
      version: 00
      width: 32 bits
      clock: 33MHz
      *-pci:6
      description: Host bridge
      product: K8 [Athlon64/Opteron] DRAM Controller
      vendor: Advanced Micro Devices [AMD]
      physical id: 102
      bus info: pci@0000:00:18.2
      version: 00
      width: 32 bits
      clock: 33MHz
      *-pci:7
      description: Host bridge
      product: K8 [Athlon64/Opteron] Miscellaneous Control
      vendor: Advanced Micro Devices [AMD]
      physical id: 103
      bus info: pci@0000:00:18.3
      version: 00
      width: 32 bits
      clock: 33MHz
      configuration: driver=k8temp
      resources: irq:0
      *-scsi
      physical id: 1
      bus info: scsi@4
      logical name: scsi4
      capabilities: scsi-host
      configuration: driver=usb-storage
      nnjond@nnjond-den:~$

      Comment


        #4
        Re: Webcam self-sabotage

        Hi nnjond,
        I assume this is your webcam :ID 041e:4083 Creative Technology, Ltd Live! Cam Socialize [VF0640]

        then it's probably using the uvcvideo kernel module (driver). Try unloading and reloading the module with :

        Code:
        sudo modprobe -r uvcvideo  <<< this to unload
        sudo modprobe uvcvideo  <<< here we reload
        If the webcam is plugged through external usb it may help to unplug it after unloading the driver, and then replug it after reloading it ( just plugging it back should trigger the reload).

        You can always check if the module is loaded with :

        Code:
        lsmod | grep uvcvideo
        If it returns something the module is loaded.
        Freedom often comes at a price, doesn&#39;t mean you can buy it.

        Comment


          #5
          Re: Webcam self-sabotage

          Yup, the uvcvideo driver should do it:

          general info
          VIDIOC_QUERYCAP
          driver : "uvcvideo"
          card : "VF0640 Live! Cam Socialize"
          bus_info : "usb-0000:00:1d.7-4"
          version : 0.1.0
          capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

          standards

          inputs
          VIDIOC_ENUMINPUT(0)
          index : 0
          name : "Camera 1"
          type : CAMERA
          audioset : 0
          tuner : 0
          std : 0x0 &#91;]
          status : 0x0 &#91;]

          video capture
          VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
          index : 0
          type : VIDEO_CAPTURE
          flags : 0
          description : "YUV 4:2:2 (YUYV)"
          pixelformat : 0x56595559 [YUYV]
          VIDIOC_G_FMT(VIDEO_CAPTURE)
          type : VIDEO_CAPTURE
          fmt.pix.width : 640
          fmt.pix.height : 480
          fmt.pix.pixelformat : 0x56595559 [YUYV]
          fmt.pix.field : NONE
          fmt.pix.bytesperline : 1280
          fmt.pix.sizeimage : 614400
          fmt.pix.colorspace : unknown
          fmt.pix.priv : 0

          controls
          VIDIOC_QUERYCTRL(BASE+0)
          id : 9963776
          type : INTEGER
          name : "Brightness"
          minimum : -10
          maximum : 10
          step : 1
          default_value : 0
          flags : 0
          VIDIOC_QUERYCTRL(BASE+1)
          id : 9963777
          type : INTEGER
          name : "Contrast"
          minimum : 0
          maximum : 20
          step : 1
          default_value : 10
          flags : 0
          VIDIOC_QUERYCTRL(BASE+2)
          id : 9963778
          type : INTEGER
          name : "Saturation"
          minimum : 0
          maximum : 10
          step : 1
          default_value : 7
          flags : 0
          VIDIOC_QUERYCTRL(BASE+3)
          id : 9963779
          type : INTEGER
          name : "Hue"
          minimum : -5000
          maximum : 5000
          step : 1000
          default_value : 0
          flags : 0

          ### video4linux device info [/dev/video0] ###
          general info
          VIDIOCGCAP
          name : "VF0640 Live! Cam Socialize"
          type : 0x1 [CAPTURE]
          channels : 1
          audios : 0
          maxwidth : 640
          maxheight : 480
          minwidth : 48
          minheight : 32

          channels
          VIDIOCGCHAN(0)
          channel : 0
          name : "Camera 1"
          tuners : 0
          flags : 0x0 &#91;]
          type : CAMERA
          norm : 0

          tuner
          ioctl VIDIOCGTUNER: Invalid argument

          audio
          ioctl VIDIOCGAUDIO: Invalid argument

          picture
          VIDIOCGPICT
          brightness : 32768
          hue : 32768
          colour : 45875
          contrast : 32768
          whiteness : 23405
          depth : 16
          palette : YUYV

          buffer
          ioctl VIDIOCGFBUF: Invalid argument

          window
          VIDIOCGWIN
          x : 0
          y : 0
          width : 640
          height : 480
          chromakey : 0
          flags : 0
          BUT ... it should be plugged into your FIRST USB port (USB0) and more than likely only a plugged in microphone will work. Also, pulseaudio may not drive the audio. In that case you may want to consider replacing pulseaudio with alsa.
          "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
          – John F. Kennedy, February 26, 1962.

          Comment

          Working...
          X