Laptop webcam driver not working as expected UVC

Hi,

I just upgraded from OpenSUSE 10.3 but now I can’t get my webcam to work.

According to Yast, my hardware I have:
Chicony USB 2.0 Camera on /dev/input/input8

I successfully installed:
uvcvideo-kmp-default

According to Linux UVC driver & tools my camera should work. However, the power does not even come on using both Kopete and gqcam.

I am on a 64 bit machine, but that should not make any difference because it worked fine in OpenSUSE 10.3

I am wondering why #luvcview is reporting the output:
luvcview version 0.2.1
Video driver: x11
A window manager is available
video /dev/video0
Unable to set format: 22.
Init v4L2 failed !! exit fatal

I am noting especially that luvcview thinks my video is on /dev/video0 and not /dev/input/input8

One more thing …

I did try installing gspcav1-kmp-default at HCL/Web Cameras - openSUSE but that did not work and gave the error that it “partially failed” for an unknown reason.

Thanks!

  • dpicella,

make sure Kopete (or any other app trying to access the cam) isn’t running when you play with luvcview.

Uwe

I checked it out and the results are still the same in luvcview

Skype and kopete both know about my cam but won’t turn the power on.

  • dpicella wrote, On 02/16/2009 03:56 PM:

> I am noting especially that luvcview thinks my video is on /dev/video0
> and not /dev/input/input8

Try
luvcview -f yuv -d /dev/video0
or
luvcview -f yuv -d /dev/input/input8

Anything?

Uwe

Yes! luvcview turns on my webcam!

I wonder why Kopete and Skype do not?? The device shows up in the preferences of both of these programs…

:confused:

  • dpicella wrote, On 02/26/2009 03:26 PM:
    > Yes! luvcview turns on my webcam!
    >
    > I wonder why Kopete and Skype do not?? The device shows up in the
    > preferences of both of these programs…

They still don’t? Please launch either app from a console and check for errors when you try and configure the webcam inside the app.

Uwe

Skype Says

Starting the process...
Skype Xv: Xv ports available: 4
Skype XShm: XShm support enabled
Skype Xv: Using Xv port 131

Skype does actually turn on the power but no picture.

Kopete Says

 VIDIOC_ENUMSTD: Invalid argument
VIDIOC_ENUM_FMT: Invalid argument
VIDIOC_ENUMSTD: Invalid argument
VIDIOC_ENUM_FMT: Invalid argument
VIDIOC_S_INPUT: Device or resource busy
VIDIOC_S_INPUT: Device or resource busy
VIDIOC_REQBUFS error 16, Device or resource busy
VIDIOC_STREAMON error 16, Device or resource busy
QObject::connect: Cannot connect (null)::onlineStatusChanged(Kopete::Contact *, const Kopete::OnlineStatus &, const Kopete::OnlineStatus &) to Kopete::Identity::updateOnlineStatus()
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
QColor::setNamedColor: Unknown color name 'fafafa'
QColor::setNamedColor: Unknown color name 'fafafa'
QColor::setNamedColor: Unknown color name 'fafafa'
QColor::setNamedColor: Unknown color name 'fafafa'
QColor::setNamedColor: Unknown color name 'fafafa'
QColor::setNamedColor: Unknown color name 'fafafa'
QColor::setNamedColor: Unknown color name 'fafafa'
QColor::setNamedColor: Unknown color name 'fafafa'
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy
VIDIOC_DQBUF error 16, Device or resource busy

No power, no picture with kopete.

luvcview -f yuv -d /dev/video0 works between running all other programs as long as skype and kopete not running. The picture in luvcview is excellent.

Something to try…

As root go to /lib/udev/rules.d

Edit the file 60-persistent-v4l.rules and comment
out the IMPORT and ENV lines there… reboot and
give things a try and let us know if that fixes
things or not.

Nope … that didn’t work. But thanks for the info.

There is a line in that file saying that when udev updates any changes will be overwritten, so that probably is not a long term solution.

It was worth a try. This is weird. I don’t use the webcam much but it would be nice to be able to use skype webcam once in a while.

  • dpicella,

which version of Kopete are you using?

Uwe

Kopete: 0.60.3

  • dpicella wrote, On 02/28/2009 11:06 PM:
    > Kopete: 0.60.3

Can you try a more recent version? I’m on KDE4.2 using Kopete 0.70 and the KDE4 version fixed a lot of issues for me,including the webcam problem.

Uwe

That works! Skype and Kopete using webcam now!

Thanks!!

Another tip … I was using Compiz instead of the Kwin KDE Window manager and even though that didn’t seem to be the problem, I don’t recommend it. Kwin in KDE 4.2 works great and faster that Compiz, but the rest I will leave to a different forum thread.

  • dpicella wrote, On 03/01/2009 05:06 PM:
    > That works! Skype and Kopete using webcam now!
    >
    > Thanks!!

Great! I didn’t expect a fix for Skype, but hey… What did you do, upgrade to KDE4.2?

Uwe

Yes … but I had to go to OpenSUSE at:

KDE/KDE4 - openSUSE

… to get the installation since it is not in the repositories for update yet. There is a 1 click install link and from there I noticed that the updated Kopete was in the download list automatically!

Thanks!