[H-GEN] using webcam on linux & windows
David
davido at bigpond.net.au
Tue Sep 9 05:46:21 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
El Lun 08 Sep 2003 07:20 PM, Johann Kwiatkowski escribió:
> [ Humbug *General* list - semi-serious discussions about Humbug and ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
> On Mon, 2003-09-08 at 18:45, David wrote:
> > [ Humbug *General* list - semi-serious discussions about Humbug and ]
> > [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
> >
> > > My guess would be that you need to unload the host machine's driver
> > > that is controlling the device. VMware should then be able to provide
> > > a virtual USB interface to the guest system that it looks at to find
> > > the webcam.
> >
> > How do I unload the driver? I thought of that but don't know how to do
> > it.
>
> lsmod will show if the driver is loaded as a module. For example I get
>
> (typing lsmod at the command prompt)
>
> Module Size Used by Not tainted
> maestro 34888 1 (autoclean)
> appletalk 26692 12 (autoclean)
> iptable_filter 2412 0 (autoclean) (unused)
> ip_tables 15520 1 [iptable_filter]
> parport_pc 19012 1
> qcamvc_usb 5500 0 (autoclean)
> qcamvc 15736 1 [qcamvc_usb]
>
> the last two relate to my quickcam vc webcam
>
The only "cam" entry is as follows:
mod_quickcam 37968 0
but there is also:
usbcore 58304 1 [mod_quickcam printer ehci-hcd usb-uhci]
videodev 5792 1 [mod_quickcam]
Should I be removing any of these?
> so to remove them I would type as root,
>
> rmmod qcamvc and then rmmod qcamvc_usb
>
> if you want to see how the system is detecting your camera, at the
> command prompt type
>
> tail -f /var/log/messages
>
> which will display the messages log file as it is updated, again for
> examples this is what I get when my usb camera is unplugged and plugged
> back in: (carbon is just the host name of my computer)
>
> Sep 8 19:16:39 carbon kernel: usb.c: USB disconnect on device
> 00:07.2-1.2 address 3
> Sep 8 19:16:39 carbon kernel: QuickCam VC(USB) :video device
> unregistered.
> Sep 8 19:16:39 carbon kernel: Quickcam VC: Destroying a camera entry in
> proc quickcam.
> Sep 8 19:16:39 carbon kernel: QuickCam VC: unregistering video
> Sep 8 19:16:46 carbon kernel: hub.c: new USB device 00:07.2-1.2,
> assigned address 6
> Sep 8 19:16:46 carbon kernel: qcamvc usb probe
> Sep 8 19:16:46 carbon kernel: qcamvc usb probe 1
> Sep 8 19:16:46 carbon kernel: qcamvc usb probe 2
> Sep 8 19:16:46 carbon kernel: qcamvc usb probe 3
> Sep 8 19:16:46 carbon kernel: Quickcam VC: Creating a camera entry in
> proc quickcam.
> Sep 8 19:16:46 carbon kernel: Quickcam dev struct in create_proc_qcamvc
> cb7ef000
> Sep 8 19:16:46 carbon kernel: qcamvc dev struct in qcamvc_init_done
> cb7ef008
> Sep 8 19:16:47 carbon kernel: Camera sucessfull registered
> Sep 8 19:16:47 carbon kernel: qcamvc usb probe 4
> Sep 8 19:16:47 carbon kernel: qcamvc usb probe 5
> Sep 8 19:16:50 carbon /etc/hotplug/usb.agent: Setup qcamvc_usb for USB
> product 478/1/100
>
>
>
> you will see something similar or error messages if a driver can't be
> found.
>
tail -f /var/log/messages produced this:
[root at rocket david]# tail -f /var/log/messages
Sep 9 19:09:04 smbd[1649]: [2003/09/09 19:09:04, 0]
lib/access.c:check_access(333)
Sep 9 19:09:04 smbd[1649]: Denied connection from (192.168.211.128)
Sep 9 19:18:48 vmnet-dhcpd: DHCPREQUEST for 192.168.211.128 from
00:50:56:e8:1f:69 via vmnet1
Sep 9 19:18:48 vmnet-dhcpd: DHCPACK on 192.168.211.128 to 00:50:56:e8:1f:69
via vmnet1
Sep 9 19:33:46 vmnet-dhcpd: DHCPREQUEST for 192.168.211.128 from
00:50:56:e8:1f:69 via vmnet1
Sep 9 19:33:46 vmnet-dhcpd: DHCPACK on 192.168.211.128 to 00:50:56:e8:1f:69
via vmnet1
Sep 9 19:37:02 smbd[1669]: [2003/09/09 19:37:02, 0]
lib/access.c:check_access(333)
Sep 9 19:37:02 smbd[1669]: Denied connection from (192.168.211.128)
Sep 9 19:37:02 smbd[1670]: [2003/09/09 19:37:02, 0]
lib/access.c:check_access(333)
Sep 9 19:37:02 smbd[1670]: Denied connection from (192.168.211.128)
Sep 9 19:39:03 /etc/hotplug/usb.agent: Setup mod_quickcam for USB product
46d/870/100
(it stopped at this point until I did ^C. Unplugging and plugging in the
camera appeared to make no difference.)
[root at rocket david]#
As mentioned in an earlier post, I also have:
/proc/video/quickcam/video0
Thanks a lot for all the help. I'm not sure how to proceed from here...
regards,
David
>
> cheers
>
> Johann
--
If Linux doesn't have the solution, you have the wrong problem.
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list