Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
logitech webcam not recognized by custom kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
nomadicME
n00b
n00b


Joined: 24 Mar 2012
Posts: 45

PostPosted: Thu Apr 10, 2014 11:25 pm    Post subject: logitech webcam not recognized by custom kernel Reply with quote

I have a webcam that I have not used in a few years, that I am having trouble getting recognized.
Quote:

$ lsusb
Bus 001 Device 002: ID 13d3:5702 IMC Networks UVC VGA Webcam
Bus 002 Device 002: ID 046d:08d7 Logitech, Inc. QuickCam Communicate STX
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

The first device listed is the built-in webcam which is working fine. The second device is the problem.
Quote:

$ ls /dev/video*
crw-rw----+ 1 root video 81, 0 2014-04-10 16:05 /dev/video0

video0 is the built-in webcam. I was expecting to see /dev/video1 as well.
Quote:

$ grep -i V4L /usr/src/linux/.config
CONFIG_VIDEO_V4L2=y
# CONFIG_VIDEO_V4L2_INT_DEVICE is not set
# CONFIG_V4L_PLATFORM_DRIVERS is not set
# CONFIG_V4L_MEM2MEM_DRIVERS is not set
# CONFIG_V4L_TEST_DRIVERS is not set

Quote:

$ grep -i CONFIG_USB_VIDEO_CLASS /usr/src/linux/.config
CONFIG_USB_VIDEO_CLASS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y

Quote:

$ grep -i MEDIA_CAMERA_SUPPORT /usr/src/linux/.config
CONFIG_MEDIA_CAMERA_SUPPORT=y

Quote:

$ grep -i GSPCA /usr/src/linux/.config
CONFIG_USB_GSPCA=y
# CONFIG_USB_GSPCA_BENQ is not set
# CONFIG_USB_GSPCA_CONEX is not set
# CONFIG_USB_GSPCA_CPIA1 is not set
...
none of the other gspca drivers are set

Here is the tail end of dmesg after plugging in webcam:
Quote:

...
[ 2057.460066] usb 2-2: new full-speed USB device number 3 using uhci_hcd
[ 2057.655139] usb 2-2: New USB device found, idVendor=046d, idProduct=08d7
[ 2057.655147] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0

The kernel version is 3.10.17. I've thought maybe the device is broken, but I have 3 identical logitech webcams and none of them are working. Any ideas why this device is not being recognized?

UPDATE:
This appears to be the culprit (from /var/log/Xorg.0.log):
Quote:

[ 27.422] (II) config/udev: Adding input device USB2.0 UVC VGA WebCam (/dev/input/event7)
[ 27.422] (**) USB2.0 UVC VGA WebCam: Applying InputClass "evdev keyboard catchall"
[ 27.422] (II) Using input driver 'evdev' for 'USB2.0 UVC VGA WebCam'
[ 27.422] (**) USB2.0 UVC VGA WebCam: always reports core events
[ 27.423] (**) evdev: USB2.0 UVC VGA WebCam: Device: "/dev/input/event7"
[ 27.423] (--) evdev: USB2.0 UVC VGA WebCam: Vendor 0x13d3 Product 0x5702
[ 27.423] (--) evdev: USB2.0 UVC VGA WebCam: Found keys
[ 27.423] (II) evdev: USB2.0 UVC VGA WebCam: Configuring as keyboard
[ 27.423] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/input/input7/event7"
[ 27.423] (II) XINPUT: Adding extended input device "USB2.0 UVC VGA WebCam" (type: KEYBOARD, id 10)

How do I keep this webcam from falling into "evdev keyboard catchall"? Thanks.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 1561
Location: Berlin, Germany

PostPosted: Fri Apr 11, 2014 2:46 pm    Post subject: Reply with quote

Xorg log is not related to your problem. It just recognizes the camera button/slider as keyboard.

grepping in the kernel source for the USB ID of your camera results in
Code:
drivers/media/usb/gspca/zc3xx.c:        {USB_DEVICE(0x046d, 0x08d7)},
So presumably enabling USB_GSPCA_ZC3XX may help.
Back to top
View user's profile Send private message
nomadicME
n00b
n00b


Joined: 24 Mar 2012
Posts: 45

PostPosted: Thu Apr 17, 2014 9:01 pm    Post subject: Reply with quote

Thank you chithanh, that did the trick. Come to think of it, the last time I used these cameras I was still using Kubuntu. I switched to Gentoo a couple of years ago. So that explains why I never had to specify that specific driver in the past, it was already built into their monster kernel. I also did not know that you could look up the USB ID in the kernel documentation. Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum