View Full Version : Webcam not detected
kendew
8th December 2007, 08:57 PM
Greetings to this forum
I am new to Fedora, and recently installed it for a friend on his Dell Inspiron 1721 as I had too many incompatibility problems trying to install Ubuntu with the 1721 hardware configuration. Pretty much where I was fooling around with Ubuntu for weeks, got everything working with Fedora in a day. There remains one hurdle, though, and that is the laptop integrated webcam made by Creative Technology Ltd. It isn't even getting recognized by Fedora 8 (2.6.23.8-63.fc8), let alone working. I've tried testing it in CamStream, and lspci shows nothing relevant.
Any suggestions or successes with my hardware or close?
I needed ndiswrapper to get wireless working, as linux drivers didn't work. Should I try ndiswrapper with the webcam driver? Problem here is Vista is installed, and these drivers don't seem to work with ndiswrapper. Also, how many drivers for how many different devices can ndiswrapper handle at the same time?
Well, this is what's been going through my head. Any help sorting it out is much, much appreciated.
FriedChips
8th December 2007, 09:11 PM
can you post the output of:
/sbin/lsusb
kendew
8th December 2007, 10:08 PM
Thanks for replying. What I'm finding is an OmniVision device, whereas Vista listed it as Creative Technologies.
When I try to post results of /sbin/lsusb I get error message:
The text that you have entered is too long (19725 characters). Please shorten it to 10000 characters long.
So am just posting what might be relevant:
Bus 001 Device 002: ID 05a9:2640 OmniVision Technologies, Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 Common Class
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 64
idVendor 0x05a9 OmniVision Technologies, Inc.
idProduct 0x2640
bcdDevice 1.00
iManufacturer 1 OmniVision Technologies, Inc. -2640-07.07.20.3
iProduct 2 Laptop Integrated Webcam
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 705
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 500mA
UNRECOGNIZED: 08 0b 00 02 0e 03 00 02
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 1 Video Control
bInterfaceProtocol 0
iInterface 2 Laptop Integrated Webcam
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 16
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 0
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceProtocol 0
iInterface 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 1
bNumEndpoints 1
bInterfaceClass 14 Video
bInterfaceSubClass 2 Video Streaming
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 5
Transfer Type Isochronous
Synch Type Asynchronous
Usage Type Data
wMaxPacketSize 0x03fc 1x 1020 bytes
bInterval 1
UNRECOGNIZED: 30 ff 42 49 53 54 00 01 08 01 10 00 00 00 00 00 d1 03 f4 01 d2 04 f4 01 d3 05 f4 01 d4 06 f4 01 d5 07 f4 01 d6 08 f4 01 d7 09 f4 01 d8 0a f4 01
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 239 Miscellaneous Device
bDeviceSubClass 2 Common Class
bDeviceProtocol 1 Interface Association
bMaxPacketSize0 8
bNumConfigurations 1
psyklops
8th December 2007, 10:58 PM
Your webcam vendor ID and Product ID don't seem to show up here: http://mxhaard.free.fr/spca5xx.html
I'm running the gspca kernel driver available from Livna "kmod-gspca" and my Logitech Quickcam works perfectly.
You may want to try installing the gspca package as per above and see whether it detects it and enables it.
kendew
8th December 2007, 11:13 PM
Psyclops, thanks for checking that out. I installed the driver, but still nothing happens with CamStream. It would really be nice if a Livna driver would work, and I didn't have to mess around finding proprietary drivers.
After installing a driver, do I have to set it up somewhere, for example in xorg.conf, before it will work?
Brian1
8th December 2007, 11:14 PM
Qucik google search using the product ID seems to point to linux-uvc module. Download the svn release from here and compile. http://openfacts.berlios.de/index-en.phtml?title=Linux+UVC
Use the same module and have written this post on setting up. Check this post out.
http://www.linuxquestions.org/questions/linux-laptop-and-handheld-25/acer-5100-5840-webcam-working-589915/
Brian
kendew
8th December 2007, 11:50 PM
Brian,
Thanks for the links and info. The one link tells what to do in case of Ubuntu, which I've had some experience with, but I'm new to Fedora. How to download this file? If I follow advice at http://openfacts.berlios.de/index-e...title=Linux+UVC I get error:
[root@localhost ~]# svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
-bash: svn: command not found
So would appreciate very much if you could tell me how to get file and compile in Fedora.
Thanks
Brian1
9th December 2007, 12:31 AM
You will need to install svn. Not sure if yum will do it or if certain repo is needed. Try ' yum install svn '
Brian
kendew
9th December 2007, 01:02 AM
Brian, yum did install svn, and I was able to compile and install the driver. Trying CamStream, a one of the tiny lights next to the webcam did flash, but the webcam is still not working, returning an error -19. I downloaded and untarred luvcview-20070512. However, changing to that directory and running make just gives out lots of errors. How were you able to get luvcview installed?
Brian1
9th December 2007, 05:54 AM
Had no problem compiling and installing. Post the last 10 or so lines of the compiling errors. probably missing some devel packages.
Brian
kendew
9th December 2007, 08:53 PM
Brian, thanks.
I took the problem over to the software forum as I thought it would be more appropriate there, and got an answer:
http://forums.fedoraforum.org/showthread.php?t=174877
With that answer I was able to install luvcview and get the camera working, just like you did. So I have to thank you for leading me in that direction.
With that my driver problems are taken care of for the time being, and now it's a matter of fine tuning. I want to fine tune the video settings in xorg.conf, but will start a new post just for that matter if I can't find info already posted. If you have any ideas, please help!
Thanks to everyone who helped me here.
Brian1
9th December 2007, 09:48 PM
Glad to be of help. Just remember if you upgrade the kernel you need to recompile the uvc-video module for the new kernel.
Brian
kendew
9th December 2007, 10:26 PM
Thanks for the warning, Brian. I guess that will apply to svn and all the development files I needed too??? When you say upgrade, are you just talking about major ones, like from 8 to 9, or minor kernel changes, like may be included in updates if I do a general yum update before installing new stuff?
FriedChips
10th December 2007, 01:50 AM
he means ANY update to the kernel will mean you will need to recompile that kernel module... It's not as bad as it sounds just CD to that directory and run
make && make install && make clean
done!
johnpeach
10th December 2007, 01:59 PM
check out dkms; it will automatically rebuild your kernel modules on a kernel change once it's been configured - I use it for kqemu and the r5u870 webcam module.
kendew
11th December 2007, 04:28 AM
FriedChips, thanks.
Johnpeach, you sent me on an interesting exploration. First checking out man showed me dkms is pretty robust, overwhelming so. Then trying find / -name dkms.conf -print
showed me two dkms.conf files already present:
/var/lib/dkms/ipw3945/1.2.1-1/build/dkms.conf
Here is /usr/src/ipw3945-1.2.1-1/dkms.conf:
PACKAGE_NAME=ipw3945
PACKAGE_VERSION=1.2.1-1
BUILT_MODULE_NAME[0]=ipw3945
DEST_MODULE_LOCATION[0]=/kernel/drivers/net/wireless
AUTOINSTALL="YES"
Here is /var/lib/dkms/ipw3945/1.2.1-1/build/dkms.conf:
PACKAGE_NAME=ipw3945
PACKAGE_VERSION=1.2.1-1
BUILT_MODULE_NAME[0]=ipw3945
DEST_MODULE_LOCATION[0]=/kernel/drivers/net/wireless
AUTOINSTALL="YES"
Pretty much the same. So is it possible this ipw3945 driver configured dkms on installation? If so, why not uvc-video?
In any case, could you tell me how to configure this uvc driver with dkms? It would save me a lot of time.
I am trying to set up a friend's computer, not my own, where I might be happy with FriedChips solution. Thanks
johnpeach
11th December 2007, 01:27 PM
Totally irrelevant to this, but ipw3945 has been replaced by iwl3945, which works fine on my laptop and does not need building.
/usr/src is where you put the source for your module and configure its dkms.conf. /var/lib is where dkms itself builds it.
I don't use uvc-video, my webcam uses r5u870, but your /usr/src/uvc-video/dkms.conf should look something like:
PACKAGE_NAME="uvc-video"
PACKAGE_VERSION="0.10.0"
MAKE="make -j 2 INCLUDEDIR=/lib/modules/$kernel/build/include"
DEST_MODULE_LOCATION="/kernel/../extra"
BUILT_MODULE_NAME="uvc-video"
AUTOINSTALL="yes"
CLEAN="clean"
You then need to let dkms know about it (man dkms).
kendew
13th December 2007, 03:32 AM
Totally irrelevant to this, but ipw3945 has been replaced by iwl3945, which works fine on my laptop and does not need building.
/usr/src is where you put the source for your module and configure its dkms.conf. /var/lib is where dkms itself builds it.
I don't use uvc-video, my webcam uses r5u870, but your /usr/src/uvc-video/dkms.conf should look something like:
PACKAGE_NAME="uvc-video"
PACKAGE_VERSION="0.10.0"
MAKE="make -j 2 INCLUDEDIR=/lib/modules/$kernel/build/include"
DEST_MODULE_LOCATION="/kernel/../extra"
BUILT_MODULE_NAME="uvc-video"
AUTOINSTALL="yes"
CLEAN="clean"
You then need to let dkms know about it (man dkms).
Thanks. Would you know how I can verify the package version. I can't find anything using yum list installed, or find search.
johnpeach
13th December 2007, 01:13 PM
As it's not really a package and, I believe, uvc-video source needs downloading from the subversion repository, make up your own. :)
put it in a directory like /usr/src/uvc-video-20071213 and tell dkms that the version is 20071213.
kendew
14th December 2007, 04:47 AM
John,
So, say I create the file you suggested for a version 07.12.13 (sorry, but I've never run across a version in the tens of millions--maybe my great, great grandchildren will) then, is it enough to just do:
dkms add -m uvc-video -v 07.12.13
??
Sounds unscientific somehow assigning it any number. Will that be enough.
Thanks
johnpeach
14th December 2007, 01:26 PM
As you're pulling it from the subversion repository, I think it's unlikely to have a version number. What you put there is entirely up to you - I just used the date.....
I don't recall whether or not the -k <kernel version> is required....., but in essence, yes,
You probably want to do a build and install as well. Make sure it all works.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.