[H-GEN] using webcam on linux & windows

Johann Kwiatkowski johann at spot-the-dog.com
Mon Sep 8 05:20:52 EDT 2003


[ 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

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.


cheers

Johann
-- 
Johann Kwiatkowski <johann at spot-the-dog.com>
Spot The Dog Graphics P/L


--
* 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