Hi. My webcam works like a charm with Ubuntu 9.04 and previous versions.
Under Gentoo, I have so far been unable to make it work. I am suspecting something missing in my kernel, but I have no idea what.
Symptoms: it just "doesn't work". Driver loads fine (whether built-in or module, whether v4l or v4l2), but I can never have a video output.
Relevant boot-up info from dmesg:
Linux video capture interface: v2.00
usbcore: registered new interface driver stkwebcam
Other dmesg info:
drivers/usb/core/inode.c: creating file '002'
hub 4-0:1.0: state 7 ports 2 chg 0002 evt 0000
hub 4-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
usb 4-1: new full speed USB device using uhci_hcd and address 2
usb 4-1: default language 0x0409
usb 4-1: New USB device found, idVendor=174f, idProduct=a311
usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 4-1: Product: USB2.0
usb 4-1: Manufacturer: Syntek
usb 4-1: uevent
usb 4-1: usb_probe_device
usb 4-1: configuration #1 chosen from 1 choice
usb 4-1: adding 4-1:1.0 (config #1, interface 0)
usb 4-1:1.0: uevent
stkwebcam 4-1:1.0: usb_probe_interface
stkwebcam 4-1:1.0: usb_probe_interface - got id
stkwebcam: Syntek USB2.0 Camera is now controlling video device /dev/video0
drivers/usb/core/inode.c: creating file '002'
$ xawtv -hwscan
This is xawtv-3.95, running on Linux/i686 (2.6.29-gentoo-r5)
looking for available devices
/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : stk
flags: capture
$ xawtv -c /dev/video0
This is xawtv-3.95, running on Linux/i686 (2.6.29-gentoo-r5)
WARNING: v4l-conf is compiled without DGA support.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "7x13bold" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font
Warning: Missing charsets in String to FontSet conversion
Error: Aborting: no font found
(well here xawtv exits with a font error but well other programs don't work either)
and relevant following tail of dmesg:
stkwebcam: OmniVision sensor detected, id 9652 at address 60
usb 4-1: selecting invalid altsetting 5<3>stkwebcam: usb_set_interface failed !
usb 4-1: bogus endpoint ep2in in usb_submit_urb (bad maxpacket 0)
Trying with the v4l compatibility layer (libv4l):
$ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so xawtv -c /dev/video0
This is xawtv-3.95, running on Linux/i686 (2.6.29-gentoo-r5)
WARNING: v4l-conf is compiled without DGA support.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "7x13bold" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font
Warning: Missing charsets in String to FontSet conversion
Error: Aborting: no font found
nothing more in dmesg
With vlc:
Using v4l2, output:
[00000303] v4l2 demux error: VIDIOC_STREAMON failed
And dmesg tail:
usb 4-1: selecting invalid altsetting 5<3>stkwebcam: usb_set_interface failed !
usb 4-1: bogus endpoint ep2in in usb_submit_urb (bad maxpacket 0)
Using v4l, output:
[00000303] v4l demux error: cannot get capabilities (Invalid argument)
And dmesg tail:
usb 4-1: selecting invalid altsetting 5<3>stkwebcam: usb_set_interface failed !
usb 4-1: bogus endpoint ep2in in usb_submit_urb (bad maxpacket 0)
If anyone has an idea of what the problem might be... please help!!!
Thank you very much!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. My webcam works like a charm with Ubuntu 9.04 and previous versions.
Under Gentoo, I have so far been unable to make it work. I am suspecting something missing in my kernel, but I have no idea what.
Symptoms: it just "doesn't work". Driver loads fine (whether built-in or module, whether v4l or v4l2), but I can never have a video output.
Relevant boot-up info from dmesg:
Linux video capture interface: v2.00
usbcore: registered new interface driver stkwebcam
Other dmesg info:
drivers/usb/core/inode.c: creating file '002'
hub 4-0:1.0: state 7 ports 2 chg 0002 evt 0000
hub 4-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
usb 4-1: new full speed USB device using uhci_hcd and address 2
usb 4-1: default language 0x0409
usb 4-1: New USB device found, idVendor=174f, idProduct=a311
usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 4-1: Product: USB2.0
usb 4-1: Manufacturer: Syntek
usb 4-1: uevent
usb 4-1: usb_probe_device
usb 4-1: configuration #1 chosen from 1 choice
usb 4-1: adding 4-1:1.0 (config #1, interface 0)
usb 4-1:1.0: uevent
stkwebcam 4-1:1.0: usb_probe_interface
stkwebcam 4-1:1.0: usb_probe_interface - got id
stkwebcam: Syntek USB2.0 Camera is now controlling video device /dev/video0
drivers/usb/core/inode.c: creating file '002'
$ xawtv -hwscan
This is xawtv-3.95, running on Linux/i686 (2.6.29-gentoo-r5)
looking for available devices
/dev/video0: OK [ -device /dev/video0 ]
type : v4l2
name : stk
flags: capture
$ xawtv -c /dev/video0
This is xawtv-3.95, running on Linux/i686 (2.6.29-gentoo-r5)
WARNING: v4l-conf is compiled without DGA support.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "7x13bold" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font
Warning: Missing charsets in String to FontSet conversion
Error: Aborting: no font found
(well here xawtv exits with a font error but well other programs don't work either)
and relevant following tail of dmesg:
stkwebcam: OmniVision sensor detected, id 9652 at address 60
usb 4-1: selecting invalid altsetting 5<3>stkwebcam: usb_set_interface failed !
usb 4-1: bogus endpoint ep2in in usb_submit_urb (bad maxpacket 0)
Trying with the v4l compatibility layer (libv4l):
$ LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so xawtv -c /dev/video0
This is xawtv-3.95, running on Linux/i686 (2.6.29-gentoo-r5)
WARNING: v4l-conf is compiled without DGA support.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "7x13bold" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font
Warning: Missing charsets in String to FontSet conversion
Error: Aborting: no font found
nothing more in dmesg
With vlc:
Using v4l2, output:
[00000303] v4l2 demux error: VIDIOC_STREAMON failed
And dmesg tail:
usb 4-1: selecting invalid altsetting 5<3>stkwebcam: usb_set_interface failed !
usb 4-1: bogus endpoint ep2in in usb_submit_urb (bad maxpacket 0)
Using v4l, output:
[00000303] v4l demux error: cannot get capabilities (Invalid argument)
And dmesg tail:
usb 4-1: selecting invalid altsetting 5<3>stkwebcam: usb_set_interface failed !
usb 4-1: bogus endpoint ep2in in usb_submit_urb (bad maxpacket 0)
If anyone has an idea of what the problem might be... please help!!!
Thank you very much!
Forgot to say, I also got these dmesg messages, but to be honest I don't remember how I triggered them:
stkwebcam: isobufs already allocated. Bad
stkwebcam: isobuf data already allocated
stkwebcam: Killing URB
I eventually managed to find where the problem was coming from. Very silly: I only had UHCI in my kernel, not EHCI… Need EHCI…