Logitech QuickCam Messenger

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
User avatar
moa333
n00b
n00b
Posts: 45
Joined: Sat May 22, 2004 4:13 pm
Location: France

Post by moa333 »

with verssion 0.7 i have this:

# modprobe quickcam
FATAL: Error inserting quickcam (/lib/modules/2.6.9-gentoo-r9/misc/quickcam.ko): Invalid module format
User avatar
MaxDamage
l33t
l33t
Posts: 650
Joined: Sat Jan 03, 2004 4:03 pm
Location: Oviedo, Spain
Contact:

Post by MaxDamage »

Version 0.5 worked like a charm. I saw my image in Gyach buth the other only saw a black box. But I think it was becouse I had the port closed in my firewall. I'll try later if it is solved.

Camorama crashed until I ran it as root. Now with 0.7 drivers I can run it as normal user without problems.

I get 10fps at 320x200. I think in windows I get faster. Not really sure. Will check later.

The box says the camera is capable of 640x480 @ 30fps. Well, I think the linux drivers need more work to be done. But for my current needs, it's working very good. Thanx to the developer!

My girlfriend gave me the camera last 28 as a birthday present, and without those drivers I'd had to bring it back to the shop. I'm really happy. :wink:
Sanderfox
Tux's lil' helper
Tux's lil' helper
Posts: 101
Joined: Thu Apr 08, 2004 1:27 pm

Post by Sanderfox »

All versions up to 0.8 seem to work great :)
User avatar
m0x
n00b
n00b
Posts: 26
Joined: Thu Dec 18, 2003 2:26 am
Location: Montreal, Canada

Post by m0x »

Yup yup, I've had version 0.5, 0.7 and 0.8 work great! Well, I actually never tried video-conference but it seems to be alright.
User avatar
MaxDamage
l33t
l33t
Posts: 650
Joined: Sat Jan 03, 2004 4:03 pm
Location: Oviedo, Spain
Contact:

Post by MaxDamage »

I'm not able to access the page http://home.mag.cx/messenger/ Is it down?
Sanderfox
Tux's lil' helper
Tux's lil' helper
Posts: 101
Joined: Thu Apr 08, 2004 1:27 pm

Post by Sanderfox »

MaxDamage wrote:I'm not able to access the page http://home.mag.cx/messenger/ Is it down?
Same problem here.
I think it's down.
User avatar
MaxDamage
l33t
l33t
Posts: 650
Joined: Sat Jan 03, 2004 4:03 pm
Location: Oviedo, Spain
Contact:

Post by MaxDamage »

I can't belive it. I hope the project resurge in a few days.

Meanwhile, here is a mirror to the latest driver: http://mgtroyas.home.dyndns.org/qc-usb- ... 0.8.tar.gz

*** EDIT ***

There is a mirror that'll do better the job than my home pc.

http://www.ee.oulu.fi/~tuukkat/quickcam/messenger/
Last edited by MaxDamage on Wed Jan 19, 2005 9:31 pm, edited 1 time in total.
Why-Not
n00b
n00b
Posts: 7
Joined: Thu Jun 10, 2004 1:49 pm
Location: Munich, Germany

QuickCam Messenger VendorId:ProductId 046D:08F0

Post by Why-Not »

qc-usb (with kernel 2.4) from here
http://www.ee.oulu.fi/~tuukkat/quickcam/quickcam.html
works for 046d:08f0 Logitech, Inc.
while that from a portage qc-usb-0.6.2 does not
tightcode
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Tue Mar 23, 2004 3:26 am

Post by tightcode »

Much like moa333, I get this with version 0.8:

Code: Select all

# modprobe quickcam
FATAL: Error inserting quickcam (/lib/modules/2.6.10-gentoo-r6/drivers/usb/quickcam.ko): Invalid module format
I then happened to check my /var/log/messages and found this:

Code: Select all

Jan 21 15:00:07 echobox quickcam: version magic '2.6.9-gentoo-r1 SMP preempt PENTIUM4 4KSTACKS gcc-3.3' should be '2.6.10-gentoo-r6 SMP preempt PENTIUM4 4KSTACKS gcc-3.3'
What happened is that I recompiled a I new kernel before actually rebooting with it and compiled quickcam while the old kernel was in use, so when I rebooted with the new kernel, it came up with that problem. After realizing that I re-emerged the package and now /var/log/messages reports:

Code: Select all

an 21 15:59:51 echobox quickcam [51.103219]: ----------LOADING QUICKCAM MODULE------------
Jan 21 15:59:51 echobox quickcam [51.103484]: struct quickcam size: 3924
Jan 21 15:59:51 echobox quickcam: QuickCam USB camera found (driver version QuickCam Messenger/Communicate USB $Date: 2004/12/30 10:00:00 $)
Jan 21 15:59:51 echobox quickcam: Kernel:2.6.10-gentoo-r6 bus:1 class:FF subclass:FF vendor:046D product:08F0
Jan 21 15:59:51 echobox quickcam [51.107244]: poisoning qc in qc_usb_init
Jan 21 15:59:51 echobox quickcam [51.107863]: E00A contains 08F0
Jan 21 15:59:51 echobox quickcam: Sensor VV6450 detected
Jan 21 15:59:51 echobox quickcam [51.108258]: Quickcam snapshot button registered on usb-0000:00:1d.7-6.4/input0
Jan 21 15:59:51 echobox quickcam: Registered device: /dev/video0
Jan 21 15:59:51 echobox usbcore: registered new driver quickcam
Jan 21 15:59:56 echobox wait_for_sysfs[21236]: either wait_for_sysfs (udev 045) needs an update to handle the device '/class/video4linux/video0' properly (no device symlink) or the sysfs-support of your device's driver needs to be fixed, please report to <linux-hotplug-devel@lists.sourceforge.net>
Jan 21 15:59:56 echobox devfsd[1264]: error calling: "unlink" in "GLOBAL"
Which I think is somewhat normal. I will keep playing with this a little later and see if I can get any further. It should at least help out the other lad with the "invalid module format" error.

Thanks everyone for keeping at this I had lost all hope for getting this working and on a whim checked this thread again and found that some of you have succeeded ! I am queuing up to be next in line hopefully !

Cheers,

TightCode
User avatar
m0x
n00b
n00b
Posts: 26
Joined: Thu Dec 18, 2003 2:26 am
Location: Montreal, Canada

Post by m0x »

Well, I'm sorry I can't help much, as far as I'm concerned it worked almost out of the box as soon as I installed the drivers.

Anyway, here's a proof it works fine.

http://soulsbane.ath.cx/images/My%20Log ... 321792.png

I haven't played much with the resolution and all.
tightcode
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Tue Mar 23, 2004 3:26 am

Post by tightcode »

Oh I believe you that it works. What are you using to grab frames from it ? I have tried:
- camorama: crashes with:
VIDIOCSYNC: Function not implemented

- camE: exits with:
camE: * taking shot
ioctl VIDIOCSYNC: Function not implemented
no image captured

- camserv: gives a black rectangle with the time.

So I am still finding a way to get something out, at least the machine sees it and recognizes it now. Thanks for any and all help.

Cheers,

TightCode
User avatar
MaxDamage
l33t
l33t
Posts: 650
Joined: Sat Jan 03, 2004 4:03 pm
Location: Oviedo, Spain
Contact:

Post by MaxDamage »

When I boot and the module is loaded via modules-autoload I get those errors.

Then I rmmod the module and run the quickcam.sh script to install it again, and then everything is solved.

Perhaps the script does something with permissions that the loading of the module at boot time doesn't. I'll investigate it further. But as a quick fix this could be of help.
User avatar
m0x
n00b
n00b
Posts: 26
Joined: Thu Dec 18, 2003 2:26 am
Location: Montreal, Canada

Post by m0x »

I use, if I remember correctly:

camorama -d=/dev/v4l/video1
(video0 is my capture card)


And what kernel are you all using? 2.4 or 2.6? Anyway, I'll try to write a quick walkthrough of how I did it, maybe that can help.
User avatar
m0x
n00b
n00b
Posts: 26
Joined: Thu Dec 18, 2003 2:26 am
Location: Montreal, Canada

Post by m0x »

Alright, here's how I got it working, with the ebuild and version 0.8

First, we need to make sure we have a portage overlay. So open up your make.conf and modify it if you need to

Code: Select all

nano -w /etc/make.conf
Make sure you have a line somewhere that says something like

Code: Select all

PORTDIR_OVERLAY="/usr/local/portage"
If can be whatever you want, but we'll assume you want it at that location. Now, we'll want to create the actual directories

Code: Select all

mkdir /usr/local/portage/media-video/qc-usb-messenger/ -p
Alright. Now we need to create the ebuild. First we'll open up the file

Code: Select all

nano -w /usr/local/portage/media-video/qc-usb-messenger/qc-usb-messenger-0.8.ebuild
Then we paste all that text into it

Code: Select all

inherit kernel-mod eutils

DESCRIPTION="Logitech USB Quickcam Messenger Linux Driver Modules"
HOMEPAGE="http://home.mag.cx/messenger/"
SRC_URI="http://www.ee.oulu.fi/~tuukkat/quickcam/messenger/${P}.tar.gz"

IUSE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

DEPEND="virtual/linux-sources"

src_compile() {
	emake KERNEL_DIR=${KERNEL_DIR} all || die
}

src_install() {
	insinto /lib/modules/${KV}/drivers/usb
	if kernel-mod_is_2_6_kernel; then
		doins quickcam.ko
	else
		doins quickcam.o
	fi

	dobin /usr/bin/qcset
	dodoc README* APPLICATIONS COPYING CREDITS TODO FAQ

	insinto /usr/share/doc/${PF}
	doins quickcam.sh debug.sh freeshm.sh
}

pkg_postinst() {
	if kernel-mod_is_2_4_kernel; then
		/usr/sbin/update-modules
	fi

	einfo "The driver is based on qc-usb-0.6.2, but I have removed the support"
	einfo "for all cameras except Quickcam Messenger in this source, since I"
	einfo "don't have any other cameras at home."
	einfo "The kernel module for quickcam.{o,ko} is installed for the"
	einfo "kernel linked by /usr/src/linux."
}
We save the file, close it.
There's one last step we need to do before emerging it At this point the package should download so you need an internet connection.

Code: Select all

ebuild /usr/local/portage/media-video/qc-usb-messenger/qc-usb-messenger-0.8.ebuild digest
Alright! Now we try to emerge it (btw, don't be stupid like me and make sure your /usr/src/linux symlink actually links to the kernel you're currently using)

Code: Select all

emerge -v qc-usb-messenger
Everything should be alright now if you didn't receive any error message. We're now going to try loading up the module.

Code: Select all

modules-update
modprobe quickcam
If you have coldplug installed, now would be a good time to restart it

Code: Select all

/etc/init.d/coldplug restart
Then you'll most probably need to change the permissions on the new video device which was just created, this should automatically be done every other time you start an X session (of course, replace 'm0x' with your current user, and video0 with video1 if you already had something like a capture card)

Code: Select all

chown m0x /dev/v4l/video0
Now it should be ready and operational, let's try it with camorama

Code: Select all

emerge -v camorama
camorama -d=/dev/v4l/video0
It should be working fine by now! If you want it to be loaded by default at boot time I would suggest installing coldplug and having it run at that moment (rc-update add coldplug default), or just put "quickcam" in the /etc/modules.autoload.d/kernel-2.6.


I hope this is useful to those of you who have had problems getting this to work, I welcome any feedback whatsoever about this little howto.
Becks
Tux's lil' helper
Tux's lil' helper
Posts: 90
Joined: Fri Dec 06, 2002 8:12 am

Post by Becks »

Howto is good and understandable (from my point of view).

I am just wondering about a message in my logfiles which i get when i plug the camera into the usb port:
Jan 27 12:28:34 [wait_for_sysfs] either wait_for_sysfs (udev 045) needs an update to handle the device '/class/video4linux/video0' properly (no device symlink) or the sysfs-support of your device's driver needs to be fixed, please report to <linux-hotplug-devel@lists.sourceforge.net>
Looks like a warning message from udev. Will have a look at this problem later.

And another problem:
canorama quits unexpectedly when i try to run it with the given options.

Alex
User avatar
WyriHaximus
n00b
n00b
Posts: 56
Joined: Thu Jan 08, 2004 1:11 pm
Location: koedijk(alkmaar), The Netherlands
Contact:

Post by WyriHaximus »

m0x wrote:Alright, here's how I got it working, with the ebuild and version 0.8

First, we need to make sure we have a portage overlay. So open up your make.conf and modify it if you need to

Code: Select all

nano -w /etc/make.conf
Make sure you have a line somewhere that says something like

Code: Select all

PORTDIR_OVERLAY="/usr/local/portage"
If can be whatever you want, but we'll assume you want it at that location. Now, we'll want to create the actual directories

Code: Select all

mkdir /usr/local/portage/media-video/qc-usb-messenger/ -p
Alright. Now we need to create the ebuild. First we'll open up the file

Code: Select all

nano -w /usr/local/portage/media-video/qc-usb-messenger/qc-usb-messenger-0.8.ebuild
Then we paste all that text into it

Code: Select all

inherit kernel-mod eutils

DESCRIPTION="Logitech USB Quickcam Messenger Linux Driver Modules"
HOMEPAGE="http://home.mag.cx/messenger/"
SRC_URI="http://www.ee.oulu.fi/~tuukkat/quickcam/messenger/${P}.tar.gz"

IUSE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

DEPEND="virtual/linux-sources"

src_compile() {
	emake KERNEL_DIR=${KERNEL_DIR} all || die
}

src_install() {
	insinto /lib/modules/${KV}/drivers/usb
	if kernel-mod_is_2_6_kernel; then
		doins quickcam.ko
	else
		doins quickcam.o
	fi

	dobin /usr/bin/qcset
	dodoc README* APPLICATIONS COPYING CREDITS TODO FAQ

	insinto /usr/share/doc/${PF}
	doins quickcam.sh debug.sh freeshm.sh
}

pkg_postinst() {
	if kernel-mod_is_2_4_kernel; then
		/usr/sbin/update-modules
	fi

	einfo "The driver is based on qc-usb-0.6.2, but I have removed the support"
	einfo "for all cameras except Quickcam Messenger in this source, since I"
	einfo "don't have any other cameras at home."
	einfo "The kernel module for quickcam.{o,ko} is installed for the"
	einfo "kernel linked by /usr/src/linux."
}
We save the file, close it.
There's one last step we need to do before emerging it At this point the package should download so you need an internet connection.

Code: Select all

ebuild /usr/local/portage/media-video/qc-usb-messenger/qc-usb-messenger-0.8.ebuild digest
Alright! Now we try to emerge it (btw, don't be stupid like me and make sure your /usr/src/linux symlink actually links to the kernel you're currently using)

Code: Select all

emerge -v qc-usb-messenger
Everything should be alright now if you didn't receive any error message. We're now going to try loading up the module.

Code: Select all

modules-update
modprobe quickcam
If you have coldplug installed, now would be a good time to restart it

Code: Select all

/etc/init.d/coldplug restart
Then you'll most probably need to change the permissions on the new video device which was just created, this should automatically be done every other time you start an X session (of course, replace 'm0x' with your current user, and video0 with video1 if you already had something like a capture card)

Code: Select all

chown m0x /dev/v4l/video0
Now it should be ready and operational, let's try it with camorama

Code: Select all

emerge -v camorama
camorama -d=/dev/v4l/video0
It should be working fine by now! If you want it to be loaded by default at boot time I would suggest installing coldplug and having it run at that moment (rc-update add coldplug default), or just put "quickcam" in the /etc/modules.autoload.d/kernel-2.6.


I hope this is useful to those of you who have had problems getting this to work, I welcome any feedback whatsoever about this little howto.
Hi thnxs very much for that but I got only one problem:
tux qc-usb-messenger-0.8 # modprobe quickcam
FATAL: Error inserting quickcam (/lib/modules/2.6.9-rc4-love1/drivers/usb/quickcam.ko): Unknown symbol in module, or unknown parameter (see dmesg)
tux qc-usb-messenger-0.8 # dmesg
quickcam: Unknown symbol remap_page_range
quickcam: Unknown symbol remap_page_range
tux qc-usb-messenger-0.8 #
Someone any idee how to slove that?

Grtz,

WyriHaximus
svf
n00b
n00b
Posts: 50
Joined: Tue Feb 01, 2005 12:22 am

Post by svf »

hey

mhhh just FYI... i tried a long time and now i got a pic with the 0.8 and cam connected to the _root_ hub...

when i connect the cam to any other hub the best i get is a blank pic and the worst some sick errors..


HTH some ppl
uchafu!
User avatar
gmcle454
Apprentice
Apprentice
Posts: 173
Joined: Wed Mar 10, 2004 6:16 pm
Location: U.S. - Virginia

Post by gmcle454 »

Thanks for posting. It worked for me pretty much out of the box. I had a lot of trouble with the quick cam zoom and had to return it. But the drivers m0x listed worked GREAT. Once I get the sound working i'll be in great shape.
Ged tha mi bochd tha mi uasal; buidheachas do Dhia is ann de chlann 'Ill Eathain mi.
User avatar
MaxDamage
l33t
l33t
Posts: 650
Joined: Sat Jan 03, 2004 4:03 pm
Location: Oviedo, Spain
Contact:

Post by MaxDamage »

If somebody gets the integrated microphone working, please post here. I've compiled the alsa usb audio module, and a mic appears in the volume manager, but it doesn't record anything (or I wasn't able to make it the default recorder).
User avatar
WyriHaximus
n00b
n00b
Posts: 56
Joined: Thu Jan 08, 2004 1:11 pm
Location: koedijk(alkmaar), The Netherlands
Contact:

Post by WyriHaximus »

No body a solution for my problem? Ifso please post it.

Grtz,

WyriHaximus
User avatar
MaxDamage
l33t
l33t
Posts: 650
Joined: Sat Jan 03, 2004 4:03 pm
Location: Oviedo, Spain
Contact:

Post by MaxDamage »

WyriHaximus wrote:No body a solution for my problem? Ifso please post it.

Grtz,

WyriHaximus
Try removing the .ko file and emerging again. Perhaps the module is incompatible with the Love sources?

BTW I wanted to notice http://home.mag.cx/messenger/ is up again. No new version of the drivers, anyway. But the ebuild posted before works like a charm. I haven't got any permissions problems aymore.
dusdus
Apprentice
Apprentice
Posts: 208
Joined: Thu Jan 20, 2005 3:08 pm
Location: Netherlands

Post by dusdus »

8)

I'm running Gentoo on an amd64-machine (gentoo-dev-sources 2.6.9-rc14), this is what I did to get it running --GURU ALERT-- :wink:
- plug it in.
- download and tar http://home.mag.cx/messenger/source/qc- ... 0.8.tar.gz
- run quickcam.sh
- press Enter
- ignore the error messages, even the one about not able to find a webcam
- keep pressing Enter
- enjoy

:P

My question now is...why is it still masked (missing keyword)? ~amd64 should at least be available
Sorry, I don't understand...
User avatar
MaxDamage
l33t
l33t
Posts: 650
Joined: Sat Jan 03, 2004 4:03 pm
Location: Oviedo, Spain
Contact:

Post by MaxDamage »

The module is failing to load via modprobe when usink kernel 2.6.11. It says:

Code: Select all

marcos@Mutsumi ~ $ sudo modprobe quickcam
FATAL: Error inserting quickcam (/lib/modules/2.6.11-gentoo-r3/drivers/usb/quickcam.ko): Unknown symbol in module, or unknown parameter (see dmesg)

Code: Select all

marcos@Mutsumi ~ $ dmesg | grep quickcam
quickcam: Unknown symbol remap_page_range
I've googled around, and a similar error happens with the ATI binary drivers. There is a patch for them, but as the quickcam module development seems to be freezed, I hope somebody fixes it. Perhaps the normal qc-usb module has the same problem, and the fix is aplicable to the messenger one.

**EDIT**

WyriHaximus, just noticed this is the same problem as you reported. So now all of us are in the same situation. If you made it work, please post how you did it. Thanx.
User avatar
WyriHaximus
n00b
n00b
Posts: 56
Joined: Thu Jan 08, 2004 1:11 pm
Location: koedijk(alkmaar), The Netherlands
Contact:

Post by WyriHaximus »

MaxDamage wrote:WyriHaximus, just noticed this is the same problem as you reported. So now all of us are in the same situation. If you made it work, please post how you did it. Thanx.
Ofcourse. Gonne try somethings tonight maybe I get it to work mybe not I'll let you know :D.

Grtz,

WyriHaximus
User avatar
MaxDamage
l33t
l33t
Posts: 650
Joined: Sat Jan 03, 2004 4:03 pm
Location: Oviedo, Spain
Contact:

Post by MaxDamage »

Problem solved:

I edited the patch that qc-usb applies to the sources so it could be applied to the qc-usb-messenger ones:

Code: Select all

--- qc-usb-messenger-0.8/qc-memory.c-old    2005-02-24 19:40:37.000000000 -0500
+++ qc-usb-messenger-0.8/qc-memory.c    2005-02-24 19:41:12.000000000 -0500
@@ -233,7 +233,11 @@
    pos = (unsigned long)src;
    while ((long)size > 0) {
        physaddr = kvirt_to_pa(pos);
-       if (remap_page_range(vma, start, physaddr, PAGE_SIZE, PAGE_SHARED))
+        if (remap_pfn_range(vma,
+                   start,
+                   physaddr >> PAGE_SHIFT,
+                   PAGE_SIZE,
+                   PAGE_SHARED))
            return -EAGAIN;
        start += PAGE_SIZE;
        pos += PAGE_SIZE;
Supossing your overlay is /usr/local/portage save it as /usr/local/portage/media-video/qc-usb-messenger/files/0.8-linux-2.6.11.patch

Here is the ebuild edited to use the patch:

Code: Select all

inherit kernel-mod eutils

DESCRIPTION="Logitech USB Quickcam Messenger Linux Driver Modules"
HOMEPAGE="http://home.mag.cx/messenger/"
SRC_URI="http://www.ee.oulu.fi/~tuukkat/quickcam/messenger/${P}.tar.gz"

IUSE=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"

DEPEND="virtual/linux-sources"

src_unpack() {
	cd ${S}
	unpack ${A}
	epatch ${FILESDIR}/${PV}-linux-2.6.11.patch
}
			
src_compile() {
	emake KERNEL_DIR=${KERNEL_DIR} all || die
}

src_install() {
	insinto /lib/modules/${KV}/drivers/usb
	if kernel-mod_is_2_6_kernel; then
		doins quickcam.ko
	else
		doins quickcam.o
	fi

	dobin /usr/bin/qcset
	dodoc README* APPLICATIONS COPYING CREDITS TODO FAQ

	insinto /usr/share/doc/${PF}
	doins quickcam.sh debug.sh freeshm.sh
}

pkg_postinst() {
	if kernel-mod_is_2_4_kernel; then
		/usr/sbin/update-modules
	fi

	einfo "The driver is based on qc-usb-0.6.2, but I have removed the support"
	einfo "for all cameras except Quickcam Messenger in this source, since I"
	einfo "don't have any other cameras at home."
	einfo "The kernel module for quickcam.{o,ko} is installed for the"
	einfo "kernel linked by /usr/src/linux."
}

Overwrite the /usr/local/portage/media-video/qc-usb-messenger/qc-usb-messenger-0.8.ebuild file with this one.

And that's it. Hope it works for you.
Post Reply