Same webcam works on one computer, not on the other

Hello,

I have the following webcam : Microsoft Corp. LifeCam VX-1000.

ben@vegas:~> lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 13ba:0017 Unknown PS/2 Keyboard+Mouse Adapter
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 045e:00f7 Microsoft Corp. LifeCam VX-1000
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

When it is plugged to my desktop (11.2, see full specs in sig), everything works out of the box - cheese for instance.
No such luck with my laptop - no image at all in cheese.

The laptop and the desktop both run 11.2. The laptop only has the following repositories : OSS, non-OSS, Update and Packman.

So 11.2 obviously supports that webcam somehow, since it works on my desktop. Looks to me like something simple should make it work on the laptop as well, but I have no idea what… Can anyone help ?

Thanks!

Hope this helps:

gwen@arizona:~> rpm -qa | grep v4l
libv4l-0.6.4-1.pm.5.1.i586
libv4l2-0-0.6.4-1.pm.5.1.i586
libv4l1-0-0.6.4-1.pm.5.1.i586
libv4lconvert0-0.6.4-1.pm.5.1.i586
v4l-tools-3.95-211.1.i586
v4l-conf-3.95-211.1.i586


gwen@arizona:~> v4l-info

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
	driver                  : "sonixj"
	card                    : "USB camera"
	bus_info                : "usb-0000:00:1d.0-1"
	version                 : 2.6.0
	capabilities            : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
	index                   : 0
	name                    : "sonixj"
	type                    : CAMERA
	audioset                : 0
	tuner                   : 0
	std                     : 0x0 ]
	status                  : 0x0 ]

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
	index                   : 0
	type                    : VIDEO_CAPTURE
	flags                   : 1
	description             : "JPEG"
	pixelformat             : 0x4745504a [JPEG]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
	type                    : VIDEO_CAPTURE
	fmt.pix.width           : 640
	fmt.pix.height          : 480
	fmt.pix.pixelformat     : 0x4745504a [JPEG]
	fmt.pix.field           : NONE
	fmt.pix.bytesperline    : 640
	fmt.pix.sizeimage       : 230990
	fmt.pix.colorspace      : JPEG
	fmt.pix.priv            : 0

controls
    VIDIOC_QUERYCTRL(BASE+0)
	id                      : 9963776
	type                    : INTEGER
	name                    : "Brightness"
	minimum                 : 0
	maximum                 : 65535
	step                    : 1
	default_value           : 32768
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+1)
	id                      : 9963777
	type                    : INTEGER
	name                    : "Contrast"
	minimum                 : 0
	maximum                 : 127
	step                    : 1
	default_value           : 63
	flags                   : 0
    VIDIOC_QUERYCTRL(BASE+2)
	id                      : 9963778
	type                    : INTEGER
	name                    : "Saturation"
	minimum                 : 0
	maximum                 : 40
	step                    : 1
	default_value           : 25
	flags                   : 0

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

channels
    VIDIOCGCHAN(0)
	channel                 : 0
	name                    : "sonixj"
	tuners                  : 0
	flags                   : 0x0 ]
	type                    : CAMERA
	norm                    : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
    VIDIOCGAUDIO
	audio                   : 0
	volume                  : 0
	bass                    : 0
	treble                  : 0

picture
    VIDIOCGPICT
	brightness              : 32768
	hue                     : 0
	colour                  : 40959
	contrast                : 32509
	whiteness               : 32768
	depth                   : 8
	palette                 : unknown

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
	x                       : 0
	y                       : 0
	width                   : 640
	height                  : 480
	chromakey               : 0
	flags                   : 0

gwen@arizona:~> export LD_PRELOAD="/usr/lib/libv4l/v4l1compat.so"
gwen@arizona:~> cheese
cheese: error while loading shared libraries: libv4lconvert.so.0: cannot open shared object file: No such file or directory

I am not familiar with this webcam, but what you could do is run what you provided above with both PCs and compare the difference. Also check to see if there are any differences in kernels and graphic drivers. Try also more than one application when testing for webcam functionality.

OK, will try that later today. I’m pretty sure it’s the same kernel (will double-check). The graphic driver is definitely not the same. ATI proprietary driver on the desktop, default open-source driver on the laptop (by the way, how can I know its exact name?).

What other webcam applications would you suggest for testing? I tested with cheese and skype.

Thank you!

You might find the following post useful to read. The 1st post is an index into the remainder (some of which are in different threads): openSUSE Graphic Card Practical Theory Guide for Users - openSUSE Forums

In essence, if you look in /var/log/Xorg.0.log you can tell.

wxcam ? kopete (if using kde) ? ffmpeg ? mplayer ? For playing with the commandn line and your webcam, take a look here: webcam & microphone command line fun … - openSUSE Forums

Hello oldcpu,

Looks identical to me:

ben@vegas:~> diff ~/Bureau/desktop ~/Bureau/laptop 
1c1
< ben@vegas:~> v4l-info
---
> gwen@arizona:~> v4l-info
8c8
< 	bus_info                : "usb-0000:00:13.0-1"
---
> 	bus_info                : "usb-0000:00:1d.0-2"
123d122
< 

Same kernel:

ben@vegas:~> uname -r
2.6.31.12-0.2-desktop
gwen@arizona:~> uname -r
2.6.31.12-0.2-desktop

The graphic driver is fglrx on the machine on which the webcam works. As for the laptop:

gwen@arizona:~> cat /var/log/Xorg.0.log | grep '('II')'' 'FBDEV
(II) FBDEV: driver for framebuffer: fbdev
gwen@arizona:~> cat /var/log/Xorg.0.log | grep '('II')'' 'VESA
(II) VESA: driver for VESA chipsets: vesa

Now I am a bit confused…

  1. Is it the fbdev driver or the vesa driver that’s installed?
  2. Do you suggest installing the intel driver? Do you think that could explain why the webcam doesn’t work?

Thanks you very much for your support :slight_smile: !

Try

/usr/sbin/hwinfo --gfxcard

Now it looks like it’s intel driver after all?! I’m getting more and more confused…

gwen@arizona:~> /usr/sbin/hwinfo --gfxcard
08: PCI 02.0: 0300 VGA compatible controller (VGA)              
  [Created at pci.318]
  UDI: /org/freedesktop/Hal/devices/pci_8086_2592
  Unique ID: _Znp.8KVRiyDmv50
  SysFS ID: /devices/pci0000:00/0000:00:02.0
  SysFS BusID: 0000:00:02.0
  Hardware Class: graphics card
  Model: "Hewlett-Packard Company NX6110/NC6120"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x2592 "915 GM"
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x099c "NX6110/NC6120"
  Revision: 0x03
  Memory Range: 0xd0400000-0xd047ffff (rw,non-prefetchable)
  I/O Ports: 0x7000-0x7007 (rw)
  Memory Range: 0xc0000000-0xcfffffff (rw,prefetchable)
  Memory Range: 0xd0480000-0xd04bffff (rw,non-prefetchable)
  IRQ: 16 (40048 events)
  I/O Ports: 0x3c0-0x3df (rw)
  Module Alias: "pci:v00008086d00002592sv0000103Csd0000099Cbc03sc00i00"
  Driver Info #0:
    XFree86 v4 Server Module: intel
  Driver Info #1:
    XFree86 v4 Server Module: intel
    3D Support: yes
    Extensions: dri
  Config Status: cfg=no, avail=yes, need=no, active=unknown

09: PCI 02.1: 0380 Display controller
  [Created at pci.318]
  UDI: /org/freedesktop/Hal/devices/pci_8086_2792
  Unique ID: ruGf.Q7+qtkTl2O2
  SysFS ID: /devices/pci0000:00/0000:00:02.1
  SysFS BusID: 0000:00:02.1
  Hardware Class: graphics card
  Model: "Hewlett-Packard Company NX6110/NC6120"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x2792 "Mobile 915GM/GMS/910GML Express Graphics Controller"
  SubVendor: pci 0x103c "Hewlett-Packard Company"
  SubDevice: pci 0x099c "NX6110/NC6120"
  Revision: 0x03
  Memory Range: 0xd0500000-0xd057ffff (rw,non-prefetchable)
  Module Alias: "pci:v00008086d00002792sv0000103Csd0000099Cbc03sc80i00"
  Config Status: cfg=no, avail=yes, need=no, active=unknown

Primary display adapter: #8

I’ve yet to see one case where the /var/log/Xorg.0.log file did not indicate the driver that was loaded. If you copy the entire /var/log/Xorg.0.log file to Pastebin.com and press ‘submit’ and then when it gives you a url/address, post that url/address here. I’ll look at the webpage copy of that log file and point out where it tells you the driver you are using.

There you go:

X.Org X Server 1.6.5 Releas - Toto - w4pSp4QU - Pastebin.com

Yes, it is the intel driver thats loaded.

(II) LoadModule: “intel”

(II) Loading /usr/lib/xorg/modules//drivers/intel_drv.so

(II) Module intel: vendor=“X.Org Foundation”

    compiled for 1.6.5, module version = 2.9.1

    Module class: X.Org Video Driver

    ABI class: X.Org Video Driver, version 5.0

When you plug in your webcam, note what is reported with each computer by

dmesg |tail

Maybe the differences will show you what the problem is.

This Ubuntu thread may also be useful.

Looks good to me on both computers:

ben@vegas:~> dmesg | tail
 5571.090044] usb 2-1: USB disconnect, address 4
 9681.107169] usb 5-1: new full speed USB device using ohci_hcd and address 3
 9681.252074] usb 5-1: New USB device found, idVendor=045e, idProduct=00f7
 9681.252103] usb 5-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
 9681.252122] usb 5-1: Product: USB camera
 9681.252353] usb 5-1: configuration #1 chosen from 1 choice
 9681.254205] gspca: probing 045e:00f7
 9681.262048] sonixj: Sonix chip id: 11
 9681.266178] gspca: probe ok
 9681.266358] gspca: probing 045e:00f7
gwen@arizona:~> dmesg | tail
 8572.624019] SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC=00:90:4b:f3:d9:b1:00:14:a4:51:ef:82:08:00 SRC=10.0.1.3 DST=10.0.1.5 LEN=136 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=3275 DPT=36574 LEN=116 
 8754.646091] usb 2-2: new full speed USB device using uhci_hcd and address 3
 8754.792134] usb 2-2: New USB device found, idVendor=045e, idProduct=00f7
 8754.792159] usb 2-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
 8754.792172] usb 2-2: Product: USB camera
 8754.792368] usb 2-2: configuration #1 chosen from 1 choice
 8754.795229] gspca: probing 045e:00f7
 8754.802221] sonixj: Sonix chip id: 11
 8754.804328] gspca: probe ok
 8754.804474] gspca: probing 045e:00f7

OK, there is hope :):slight_smile: !! The webcam works with the following command line:

mplayer -vf screenshot -fps 15 tv:// -tv driver=v4l2:device=/dev/video0

Now I only need to figure out how to make it work with Skype…

Problem solved rotfl!lol! !!

What did I do?

  1. Make sure that my multimedia setup was correct by following the forum’s multimedia FAQ (especially the “Check your multimedia problem in ten steps” post)
  2. Reinstall all v4l rpms
  3. Launch skype with the following command : env LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype

I suspect that the main problem was fixed by the second action. For some reason, the v4l libs had a problem.

Skype can now use my webcam on my laptop rotfl!

A big THANK YOU to everyone who helped :).

Hi
Set the LD_PRELOAD…? Skype - openSUSE Wiki


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.12-0.7-default
up 4 days 9:41, 3 users, load average: 0.47, 0.15, 0.04
GPU GeForce 8600 GTS Silent - Driver Version: 256.35

I have a similar problem. I have a LifeCam V300 that works on the Laptop but not on the PC. It only works with Kopete though, not with Cheese. I also have a V-5000 that works perfectly on all machines and the colours are just perfect. i don’t know why the older versions are giving so much problems.