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: 46

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: 2158
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: 46

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
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Fri Jun 27, 2014 8:25 am    Post subject: Reply with quote

Enabling GSPCA you say... But my kernel config does not have any keyword with the "GSPCA" substring. menuconfig does not have them under "USB Devices". What should I do to enable GSPCA then?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Jun 27, 2014 11:21 am    Post subject: Reply with quote

Sigma Kappa wrote:
Enabling GSPCA you say... But my kernel config does not have any keyword with the "GSPCA" substring. menuconfig does not have them under "USB Devices". What should I do to enable GSPCA then?

Sigma Kappa ... the Linux Kernel Driver Database has it depend on CONFIG_VIDEO_V4L2, I asume this is disabled and so the menu item isn't listed.

best ... khay
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Fri Jun 27, 2014 2:31 pm    Post subject: Reply with quote

Thanks khay, now I seem to have enabled thoise GSPCAs. This is dmesg out out after plugging in the device
Code:
[  100.009884] usb 2-1.8: New USB device found, idVendor=046d, idProduct=0819
[  100.009887] usb 2-1.8: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[  100.009889] usb 2-1.8: SerialNumber: 1EE29FC0
[  100.010009] usb 2-1.8: usb_probe_device
[  100.010013] usb 2-1.8: configuration #1 chosen from 1 choice
[  100.010107] usb 2-1.8: adding 2-1.8:1.0 (config #1, interface 0)
[  100.010168] usb 2-1.8: adding 2-1.8:1.1 (config #1, interface 1)
[  100.010193] usb 2-1.8: adding 2-1.8:1.2 (config #1, interface 2)
[  100.010216] usb 2-1.8: adding 2-1.8:1.3 (config #1, interface 3)
[  100.010254] hub 2-1:1.0: state 7 ports 8 chg 0000 evt 0100

My kernel version is 3.10.25, and the config is at http://pastebin.com/Vkr8m4Bk (Thanks for pastebinit!)

lsmod yields nothing, although I tried both compiling the gspca drivers as modules and as built-in.[/code]
Back to top
View user's profile Send private message
chithanh
Developer
Developer


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

PostPosted: Fri Jun 27, 2014 2:40 pm    Post subject: Reply with quote

Code:
idVendor=046d, idProduct=0819
That is a UVC camera, not GSPCA. Set CONFIG_USB_VIDEO_CLASS=y in your kernel configuration.
Back to top
View user's profile Send private message
Sigma Kappa
n00b
n00b


Joined: 04 Mar 2012
Posts: 45

PostPosted: Fri Jun 27, 2014 2:52 pm    Post subject: Reply with quote

Thank you all! Enabling UVC did the trick.
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