Logitech QuickCam Messenger fails on 4.0 [Solved]

Issues Related to Hardware (Sound, Video, Printers, Scanners, Webcams, Touchpads, Keyboards, Sensors, Drives, GRUB, etc.)

Moderator: Moderators

Logitech QuickCam Messenger fails on 4.0 [Solved]

Postby thenthenio » Mon Jan 05, 2009 22:36

It should be related to gspca driver.

Luckily on my portable PC I still have SL 3.5.1 (x86_64).
Here is what happens on it:
Before connecting the USB camera:
Code: Select all
#lsmod | grep gspca

After connecting the USB camera:
Code: Select all
#lsmod | grep gspca
gspca                 626960  0
compat_ioctl32         10112  1 gspca
videodev               34816  2 gspca,compat_ioctl32

On my home PC with SL 4.0 (x86_64) it works but image is odd.
Here is what happens on it:
Before connecting the USB camera:
Code: Select all
#lsmod | grep gspca

After connecting the USB camera:
Code: Select all
#lsmod | grep gspca
gspca_zc3xx            50432  0
gspca_main             29568  1 gspca_zc3xx
compat_ioctl32         17408  1 gspca_main
videodev               42752  2 gspca_main,compat_ioctl32

So now the loaded driver are different, it seems that the gspca driver has been splitted in two: the basic driver and the chip driver.
Unfortunately now it doesn't work any more!

Could you/I revert to the previous gspca version?
Thanks.
Mauro

EDIT:
Very strange the installed gspca package is exactly the same version in both systems but on the portable it is for kernel 2.6.25 (gspcav1-20071224#2.6.25-sabayon-r1) and on the home one is for kernel 2.6.26 (gspcav1-20071224#2.6.26-sabayon)!

EDIT:
I found something:
The installed gspca driver is for kernel 2.6.26 but:
Code: Select all
# uname -r
2.6.27-sabayon

my kernel is 2.6.27!!!
I'm going to recompile the module for 2.6.27...
Last edited by thenthenio on Tue Jan 06, 2009 23:01, edited 1 time in total.
thenthenio
Old Dear Hen
 
Posts: 522
Joined: Thu Mar 01, 2007 23:11
Location: Melegnano (MI) Italy

Re: Logitech QuickCam Messenger fails on 4.0 (was ok on 3.5.1)

Postby xlnagla » Tue Jan 06, 2009 3:11

eselect kernel list. make sure it's set for .27 - otherwise you've already discovered what you should do.

~xlnagla
xlnagla
Sagely Hen
 
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Logitech QuickCam Messenger fails on 4.0 [Solved]

Postby thenthenio » Tue Jan 06, 2009 16:24

Ok here is the result.
Mainly thanks to Lwonderltoo, Thev00d00 and Tangent on the Sabayon IRC!

Here is the explanation and solution:
I was confused because gspcav1-20071224#2.6.26-sabayon was installed and I was on 2.6.27-sabayon.
So I was thinking that the loaded driver was wrong for the kernel version...
This was proved to be wrong: kernel 2.6.27 has an embedded gspca driver and the driver loaded was correct for the kernel version!
So, the diagnosis was: the gspca driver that comes with 2.6.27 is broken!
I tried to recompile kernel.
I tried to install libv4l to enable v4l support for v4l2 gspca driver embedded with the kernel (using LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so kopete to run for example kopete with v4l to v4l2 support), but wit absolutely no result.
So, at the end the solution was reverting to 2.6.26 kernel and external gspcav1 driver:
Code: Select all
# eselect kernel set 2.6.26-sabayon
Edit /boot/grub/grub.conf to load kernel 2.6.26 instead of 2.6.27.
Remove the nVidia driver for 2.6.27 and install the latest for 2.6.26:
Code: Select all
# equo remove nvidia-drivers
# equo install nvidia-drivers-173.14.12-r10#2.6.26-sabayon
# equo conf update
# eselect opengl set nvidia

Then reboot.
The old external gspcav1 driver is now loaded automatically and the webcam works!

Pay attention: some other drivers like, in my case, vboxdrv may need to revert to previous version...

EDIT:
In fact I had to reinstall Virtualbox, here is what I did:
Package virtualbox-modules was not available in Entropy for kernel 2.6.26 so I had to use Portage.
I removed with equo virtualbox-modules (and it removed also package virtualbox-bin):
Code: Select all
# equo remove virtualbox-modules

Then moved to emerge to install them for kernel in use (2.6.26):
Code: Select all
# emerge virtualbox-bin

Now emerge told me to donload virtualbox-bin from http://download.virtualbox.org/virtualbox/2.0.6/VirtualBox-2.0.6-39760-Linux_amd64.run, to put it in /usr/portage/distfiles and rerun emerge:
Code: Select all
# emerge virtualbox-bin

Now also Virtualbox is up and running again!

Cheers.
Mauro
thenthenio
Old Dear Hen
 
Posts: 522
Joined: Thu Mar 01, 2007 23:11
Location: Melegnano (MI) Italy

Re: Logitech QuickCam Messenger fails on 4.0 [Solved]

Postby xlnagla » Wed Jan 07, 2009 17:15

you are quite self-sufficient now mauro. Thanks for posting back your steps to your solution for the benefit of others in the forum with similar issues. It's because of users like you that we have such an extensive, friendly, and useful knowledge base.

~xlnagla
xlnagla
Sagely Hen
 
Posts: 1078
Joined: Mon May 28, 2007 2:44

Re: Logitech QuickCam Messenger fails on 4.0 [Solved]

Postby thenthenio » Thu Jan 08, 2009 21:23

Thank you Xinagla, I'm very happy for your appreciation!
I do this because here I found this same help from this community and others may need it.
I do also because I strongly believe that the spread of information (at any level) is the best way to improve everything.
Lastly I do because it could be a reference even for me in the future, it's better writing it here than in some block-notes...

Cheers.
Mauro
thenthenio
Old Dear Hen
 
Posts: 522
Joined: Thu Mar 01, 2007 23:11
Location: Melegnano (MI) Italy

Re: Logitech QuickCam Messenger fails on 4.0 [Solved]

Postby Thev00d00 » Thu Jan 08, 2009 22:36

Its all down to the excellent IRC crew
Image
Please report Bugs on the Bugzilla, not forum
Please Adopt an Unanswered thread
Website / Blog : v00d00.net
twitter: Follow Me
G+: Circle Me
Thev00d00
Generally Awesome (tm)
 
Posts: 1472
Joined: Wed Feb 21, 2007 15:52
Location: United Kingdom

Re: Logitech QuickCam Messenger fails on 4.0 [Solved]

Postby Fitzcarraldo » Tue Jan 13, 2009 17:07

gspcav1 was moved into the kernel sources in kernel 2.6.27, that's why people who used it with kernel 2.6.26 and earlier are having trouble with SL 4.0/4.0-r1 (or with earlier versions of SL if they have updated the kernel to 2.6.27).

I also have the 2.6.27 kernel installed, but did not need to revert to the 2.6.26 kernel in order to get my Webcam working again. I found the answer on the Gentoo forums, namely the thread [SOLVED] GSPCA driver problem (Thank you, hasselhoff!).

The solutions for SL x86 and x86_64 are in the above-mentioned Gentoo thread. I use the x86_64 edition of SL, so the solution is a little bit more complicated than for the x86 edition, but not much. Here's what I did for SL x86_64:

1) emerge -C gspcav1
2) Copy the file libv4l-0.5.7-r1.ebuild from Gentoo Bugzilla Bug Report No. 244918 to the directory /usr/portage/media-libs/libv4l/
3) Recreate the manifest: ebuild /usr/portage/media-libs/libv4l/libv4l-0.5.7-r1.ebuild manifest
4) emerge -1v =libv4l-0.5.7-r1

To run Skype with a working Webcam under SL x86_64 I just need to enter the following command under my normal user name:
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype

(Of course I could set this up as an alias so I just need to enter "skype", or modify my Desktop Config File for Skype so it enters the command for me.)
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Logitech QuickCam Messenger fails on 4.0 [Solved]

Postby thenthenio » Tue Jan 13, 2009 23:44

Once again thank you very much Fitzcarraldo!
Even if I said the problem was solved I continued trying other solutions in order to be able to upgrade kernel in the future (not to freeze on 2.6.26).
On the Sabayon IRC somebody came out with a similar solution (with LD_PRELOAD), but didn't work for me...
Maybe I did it wrong, maybe there was a step missing, I can't remember.
Anyway I did your simple steps and it worked!!!
It seems LD_PRELOAD does not work, but it is working indeed.
Code: Select all
$ LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype
ERROR: ld.so: object '/usr/lib32/libv4l/v4l1compat.so' from LD_PRELOAD cannot be preloaded: ignored.

Without LD_PRELOAD it doesn't work at all (fails as before).
A difference that I found with the gspcav1 module is that in skype the correct device name was displayed (in drop-down menu) "Logitech QuickCam Messenger" and now a generic "USB camera (046d:08da) (/dev/video1)" appears.
But I do prefer this generic device identification with new upgraded kernel than correct device identification with old (frozen) kernel 2.6.26!

Ciao.
Mauro
thenthenio
Old Dear Hen
 
Posts: 522
Joined: Thu Mar 01, 2007 23:11
Location: Melegnano (MI) Italy

Re: Logitech QuickCam Messenger fails on 4.0 [Solved]

Postby Fitzcarraldo » Thu Jan 15, 2009 8:56

Note that Skype is a 32-bit application, that's why it is necessary to specify the "lib32" in the command on an x86_64 edition of SL:

Code: Select all
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype".


However, applications such as aMSN and Camorama are 64-bit in the x86_64 edition of SL, and you would need to enter to the following command in order to get the Webcam working with 64-bit applications:

Code: Select all
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so amsn
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so camorama
User avatar
Fitzcarraldo
Sagely Hen
 
Posts: 7998
Joined: Sat Mar 10, 2007 5:40
Location: United Kingdom

Re: Logitech QuickCam Messenger fails on 4.0 [Solved]

Postby thenthenio » Thu Jan 15, 2009 17:07

Really interesting, Fitzcarraldo!!!
I have a similar problem with dvb module (downloaded from Mercurial, the module embedded in 2.6.27 and following is not working).
The module is em28xx(-alsa, -sound, -dvb...).
I tried LD_PRELOAD (32 bit) with Kaffenine to see if that could work with dvb module but didn't work, I will try also with LD_PRELOAD (64 bit) if it fixes the problem...

Thanks.
Mauro
thenthenio
Old Dear Hen
 
Posts: 522
Joined: Thu Mar 01, 2007 23:11
Location: Melegnano (MI) Italy

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 1 guest

cron