View previous topic :: View next topic |
Author |
Message |
pente n00b
Joined: 21 Mar 2013 Posts: 29
|
Posted: Thu Mar 21, 2013 5:06 pm Post subject: No /dev/video0 after plugging in webcam |
|
|
This is my webcam:
Code: |
~$ lsusb
Bus 008 Device 002: ID 0c45:6310 Microdia Sonix USB 2.0 Camera
|
This webcam worked on Ubuntu before out of the box (some very old Ubuntu version, something like 4 years out of date). A few weeks ago I overwrote my Ubuntu partition with Gentoo, but found that the webcam does not work with it.
No errors show up on dmesg:
Code: |
usb 8-2: new high-speed USB device number 3 using ehci-pci
usb 8-2: New USB device found, idVendor=0c45, idProduct=6310
usb 8-2: New USB device strings: Mfr=2, Product=1, SerialNumber=0
usb 8-2: Product: USB 2.0 Camera
usb 8-2: Manufacturer: Sonix Technology Co., Ltd.
|
But nothing shows up in /dev:
Code: |
~$ ls /dev/video* /dev/v4l*
ls: cannot access /dev/video*: No such file or directory
ls: cannot access /dev/v4l*: No such file or directory
|
Applications like v4l-info and luvcview complain that /dev/video0 does not exist.
I tried modprobe, but I don't know what I'm looking for:
Code: |
~$ sudo modprobe -a v4l uvc uvcvideo
modprobe: WARNING: Module v4l not found.
modprobe: WARNING: Module uvc not found.
modprobe: WARNING: Module uvcvideo not found.
|
I have a 3.8.0 genkernel. The .config is at http://bpaste.net/show/85373/.
Any help would be appreciated! |
|
Back to top |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 916
|
Posted: Thu Mar 21, 2013 8:43 pm Post subject: |
|
|
uvcvideo should be the right one, see http://www.ideasonboard.org/uvc/.
IIRC correctly I found my webcam had stopped working when upgrading to either kernel 3.5.x or 3.7.x. The resp. config options had changed compared to previous versions. Maybe you have the same problem with 3.8?
I'm still running a 3.7 kernel here (not genkernel), and the uvc driver is found under Device Drivers -> Multimedia support -> Media USB Adapters -> USB Video Class (UVC). You also need ... Multimedia support -> Cameras/video grabbers support.
HTH. |
|
Back to top |
|
|
pente n00b
Joined: 21 Mar 2013 Posts: 29
|
Posted: Thu Mar 21, 2013 9:05 pm Post subject: |
|
|
Thanks for the help. If I understand correctly, the reason modprobe was unable to load the uvcvideo module is that the genkernel configuration did not include the requisite options that you mentioned? And therefore that for me to use this webcam I cannot use the genkernel?
I've done manual kernel configuration before but inevitably omit something essential when I do so... do you know if there's an easy way for me to configure my kernel using all the same options that the genkernel sets, but with additionally the ones you suggested? I'm familiar with the kernel compilation instructions in the Gentoo handbook but not much more.
Thanks again. |
|
Back to top |
|
|
Logicien Veteran
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Thu Mar 21, 2013 10:14 pm Post subject: |
|
|
Hi,
in plus of the options you already use, if you use the --menuconfig option when you start genkernel, after it will configure the kernel by itself, this option will allow you to modify genkernel kernel configuration and add the uvcvideo using the menuconfig of the Linux kernel. Something like
Code: | genkernel --menuconfig all |
would work.
uvcvideo is in the /Devices Drivers/Multimedia support/Media USB Adapters section. You can access the v4l options too from the /Devices Drivers/ Multimedia support section. Just do not forget to save the modifications you made when leaving the menuconfig.
After that, genkernel will continue his work normally like when you do not use this option but with your modifications. _________________ Paul |
|
Back to top |
|
|
pente n00b
Joined: 21 Mar 2013 Posts: 29
|
Posted: Sun Mar 24, 2013 5:25 am Post subject: |
|
|
Thank you both for your help. I used the suggested genkernel configuration and now have no problems with my webcam. |
|
Back to top |
|
|
rokj n00b
Joined: 05 Sep 2005 Posts: 43
|
Posted: Sun Feb 01, 2015 11:13 pm Post subject: |
|
|
Helped me also. Thanks. |
|
Back to top |
|
|
|