Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Webcam not working -- SOLVED
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
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sat Oct 13, 2012 1:13 am    Post subject: Webcam not working -- SOLVED Reply with quote

I'm running a amd64~ system, and after getting back after a long absence an update updated about 250 packages. Now the webcam that used to work doesn't work. Looking at similar questions in the these forums, I'm still at a loss. Any suggestions on where to start looking would be most welcome.

Running guvcview gives
Quote:
guvcview 1.6.1
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
video device: /dev/video0
unable to detect video devices on your system (0)
ERROR opening V4L interface: No such file or directory
Init video returned -1
VIDIOC_REQBUFS - Failed to delete buffers: Invalid argument (errno 22)
cleaned allocations - 100%
Closing portaudio ...OK
Terminated.

lsmod gives
Quote:
Module Size Used by
xt_LOG 6302 9
xt_policy 2066 0
ipt_REJECT 1913 4
ipt_NETMAP 1049 0
ipt_ECN 1616 0
ipt_ah 1005 0
nf_nat_tftp 798 0
nf_nat_sip 5171 0
nf_nat_pptp 1866 0
nf_nat_proto_gre 1141 1 nf_nat_pptp
nf_nat_irc 1198 0
nf_nat_ftp 1396 0
nf_conntrack_tftp 3585 1 nf_nat_tftp
nf_conntrack_sip 17931 1 nf_nat_sip
nf_conntrack_pptp 3689 1 nf_nat_pptp
nf_conntrack_proto_gre 3459 1 nf_conntrack_pptp
nf_conntrack_netlink 14882 0
nf_conntrack_netbios_ns 965 0
nf_conntrack_broadcast 1029 1 nf_conntrack_netbios_ns
nf_conntrack_irc 3283 1 nf_nat_irc
nf_conntrack_ftp 5477 1 nf_nat_ftp
xt_NFQUEUE 1704 0
xt_NFLOG 982 0
nfnetlink_log 5893 1 xt_NFLOG
xt_mark 1053 1
xt_DSCP 1891 6
xt_conntrack 2641 27
xt_connmark 1493 0
xt_state 1071 0
iptable_raw 1140 0
iptable_nat 3384 1
nf_nat 12070 8 nf_nat_ftp,nf_nat_irc,nf_nat_sip,nf_nat_proto_gre,nf_nat_pptp,nf_nat_tftp,ipt_NETMAP,iptable_nat
nf_conntrack_ipv4 6112 30 nf_nat,iptable_nat
nf_defrag_ipv4 1083 1 nf_conntrack_ipv4
iptable_mangle 1344 1
nfnetlink 2753 2 nfnetlink_log,nf_conntrack_netlink
iptable_filter 1232 1
dm_mod 54497 0
snd_usb_audio 87882 3
snd_usbmidi_lib 15088 1 snd_usb_audio
snd_hwdep 4958 1 snd_usb_audio
snd_rawmidi 14861 1 snd_usbmidi_lib
snd_seq_device 4292 1 snd_rawmidi
snd_hda_codec_hdmi 20863 4
sr_mod 10903 0
cdrom 28674 1 sr_mod
nvidia 11185503 40
snd_hda_codec_realtek 49132 1
snd_hda_intel 20033 8
r8169 45436 0
snd_hda_codec 60435 3 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel
parport_pc 15041 0
parport 15734 1 parport_pc


In .config, I have
Quote:
# Multimedia core support
#
CONFIG_MEDIA_CAMERA_SUPPORT=y
# CONFIG_MEDIA_ANALOG_TV_SUPPORT is not set
# CONFIG_MEDIA_DIGITAL_TV_SUPPORT is not set
# CONFIG_MEDIA_RADIO_SUPPORT is not set
# CONFIG_MEDIA_RC_SUPPORT is not set
# CONFIG_MEDIA_CONTROLLER is not set
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y


lsusb does not seem to see my camers
Quote:
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 046d:0826 Logitech, Inc.
Bus 002 Device 003: ID 04e8:3236 Samsung Electronics Co., Ltd ML-1450
Bus 002 Device 004: ID 045e:001e Microsoft Corp. IntelliMouse Explorer


I'm hoping that somewhere in all of this something is suggested. All that I can seem to come up with is a broken webcam. Many thanks.
Fred


Last edited by Fred Krogh on Sat Oct 13, 2012 4:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sat Oct 13, 2012 8:44 am    Post subject: Reply with quote

Fred Krogh,

Your lsusb output suggests you have two USB busses. Thats not wrong but it might be.
What does lspci say?

Your USB root hubs will be be PCI devices of one sort or another and its just possible that you have another (or more than one) USB root hub.

dmesg will also be useful. Webcams typically want all the power that a USB root hub is permitted to provide, so they cannot share.
Do you have any USB overcurrent errors or the like in dmesg?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sat Oct 13, 2012 1:53 pm    Post subject: Reply with quote

Thanks for the reply. At least I learned a little about tracking this down, but unfortunately, not enough to get things working. In response to your input, I have tried moving the usb connector for the webcam from a connector in the front of my computer box to a usb3 port in the back. That move seems a bit questionable to me only because it was working at one time from the front. This box has usb ports all over the place! So, lspci |grep -i usb gives
Quote:

00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
0d:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
I presume this means I have at least 2 USB root hubs.

dmesg |grep -i usb gives
Quote:
[ 0.295732] ACPI: bus type usb registered
[ 0.295969] usbcore: registered new interface driver usbfs
[ 0.296192] usbcore: registered new interface driver hub
[ 0.296422] usbcore: registered new device driver usb
[ 0.660254] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.660749] ehci_hcd 0000:00:1a.0: new USB bus registered, assigned bus number 1
[ 0.670574] ehci_hcd 0000:00:1a.0: USB 2.0 started, EHCI 1.00
[ 0.670901] hub 1-0:1.0: USB hub found
[ 0.671620] ehci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
[ 0.681567] ehci_hcd 0000:00:1d.0: USB 2.0 started, EHCI 1.00
[ 0.681878] hub 2-0:1.0: USB hub found
[ 0.682343] uhci_hcd: USB Universal Host Controller Interface driver
[ 0.682613] usbcore: registered new interface driver usblp
[ 0.682824] Initializing USB Mass Storage driver...
[ 0.683057] usbcore: registered new interface driver usb-storage
[ 0.683270] USB Mass Storage support registered.
[ 0.688477] usbcore: registered new interface driver usbhid
[ 0.688700] usbhid: USB HID core driver
[ 0.972405] usb 1-1: new high-speed USB device number 2 using ehci_hcd
[ 1.087146] hub 1-1:1.0: USB hub found
[ 1.190232] usb 2-1: new high-speed USB device number 2 using ehci_hcd
[ 1.304840] hub 2-1:1.0: USB hub found
[ 1.580185] usb 2-1.4: new full-speed USB device number 3 using ehci_hcd
[ 1.668336] usblp 2-1.4:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04E8 pid 0x3236
[ 1.741085] usb 2-1.6: new low-speed USB device number 4 using ehci_hcd
[ 1.850829] input: Microsoft Microsoft IntelliMouse® Explorer as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0/input/input6
[ 1.851084] hid-generic 0003:045E:001E.0001: input,hidraw0: USB HID v1.00 Mouse [Microsoft Microsoft IntelliMouse® Explorer] on usb-0000:00:1d.0-1.6/input0


I have tried moving the usb connector to the front of my box (just in case) and that fixes nothing. I hope this suggests something to you as I am still very much in the dark.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sat Oct 13, 2012 3:36 pm    Post subject: Reply with quote

Fred Krogh,

Code:
0d:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
is your USB 3 controller.
It may not be relevant but you don't seem to have kernel support for it. Thats OK as long as you don't intend to use it.
Its
Code:
< >   xHCI HCD (USB 3.0) support (EXPERIMENTAL)
if you feel the need.

Code:
video device: /dev/video0
unable to detect video devices on your system (0)
shows you don't have a /dev node for your webcam.

I built kernel-3.6.2 (also ~amd64) earlier today and noticed that the config oprions for video capture devices had been rearranged.
Under Multimedia support you need [*] Cameras/video grabbers support
[*] Video capture adapters ---> and [*] V4L USB devices --->
In that last menu, you need the drivers for your webcam(s).

Modules should work too. Its a little worrying that lsusb does not find your cameras at all.
All you need loaded for that to work is the kernel root hub driver. Thats not changed since USB was added to the kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Fred Krogh
Veteran
Veteran


Joined: 07 Feb 2005
Posts: 1036
Location: Tujunga, CA

PostPosted: Sat Oct 13, 2012 4:05 pm    Post subject: Reply with quote

You did it! Not only is it now working, but I have it working on a USB3 port. I had kind of forgotten that that those plugs had never worked, and now it does! The other key was to set UVC video class. I'm still fuzzy on why what was working stopped working, but am very happy to have this back. lsusb |grep -i usb now gives
Quote:
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 003 Device 002: ID 046d:0826 Logitech, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 003: ID 04e8:3236 Samsung Electronics Co., Ltd ML-1450
Bus 002 Device 004: ID 045e:001e Microsoft Corp. IntelliMouse Explorer
m
where the Logitech item is for the webcam. Many thanks.
Back to top
View user's profile Send private message
dc0m
n00b
n00b


Joined: 15 May 2010
Posts: 22

PostPosted: Thu Oct 18, 2012 8:17 pm    Post subject: Reply with quote

Thanks for posting this. I had exactly the same problem.
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