LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-09-2014, 12:11 AM   #1
Seven09
LQ Newbie
 
Registered: Dec 2006
Location: Sweden
Posts: 14

Rep: Reputation: 0
Can't get webcam working


I can't get the webcam working. It used to be just to plug it in and it worked. I think it was with Debian Squeese. After upgrade to very latest Debian Stable (wheezy?) it refuses top work.

I have tried to follow docs on how to set up udev rules. And tried to create /dev/video0 manually.

When plugged in the webcam shows up as /dev/usbdevx.x.
 
Old 01-09-2014, 11:18 AM   #2
prabhuraj
LQ Newbie
 
Registered: Aug 2011
Posts: 26

Rep: Reputation: Disabled
Hi,
You can get some more info using udevadm tool. Before connecting the device, run udevadm --monitor(This tool should be available by default or else please install this package). This will capture useful logs. Also please see the output of dmesg and verify if the driver is properly getting registered.
BTW, how are you trying to access the webcam? If you are using an user space application and just trying to do open, read,write,ioctl etc then ensure that you are opening with proper name as /dev/usbdevx.x and not with what you are trying to create as /dev/video0 manually.
 
Old 01-09-2014, 01:53 PM   #3
Seven09
LQ Newbie
 
Registered: Dec 2006
Location: Sweden
Posts: 14

Original Poster
Rep: Reputation: 0
I try to access the webcam pretty much as I did with the earlier Deb. distributions. Plug in the webcam in an empty usb slot and start some webcam app, cheese or guvcview.

cheese expect the webcam to be at /dev/video0 and say no device found. And with no device found there is no way to edit any settings in cheese. Guvcviev say "Guvcview error: Unable to open device" and dies.

I am sure the drivers are correctly loaded. Can it be the webcam apps no longer works with the new device handling? If I plug in / unplug some usb devices the the device might change.

udevadm say that i connect an usb sound card

KERNEL[5341.422264] add /devices/pci0000:00/0000:00:13.5/usb1/1-6 (usb)
KERNEL[5341.423280] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0 (usb)
KERNEL[5341.423363] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.1 (usb)
KERNEL[5341.423382] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2 (usb)
KERNEL[5341.629131] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1 (sound)
KERNEL[5341.629262] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1/pcmC1D0c (sound)
KERNEL[5341.629334] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1/controlC1 (sound)
KERNEL[5341.629391] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.3 (usb)
KERNEL[5341.629475] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/usb_device/usbdev1.12 (usb_device)
UDEV [5341.636484] add /devices/pci0000:00/0000:00:13.5/usb1/1-6 (usb)
UDEV [5341.639960] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/usb_device/usbdev1.12 (usb_device)
UDEV [5341.646040] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.3 (usb)
UDEV [5341.646741] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0 (usb)
UDEV [5341.649611] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.1 (usb)
UDEV [5341.651466] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2 (usb)
UDEV [5341.652464] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1 (sound)
KERNEL[5341.653961] change /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1 (sound)
UDEV [5341.655637] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1/pcmC1D0c (sound)
UDEV [5341.665123] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1/controlC1 (sound)
UDEV [5341.666475] change /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1 (sound)
 
Old 01-09-2014, 01:55 PM   #4
Seven09
LQ Newbie
 
Registered: Dec 2006
Location: Sweden
Posts: 14

Original Poster
Rep: Reputation: 0
I try to access the webcam pretty much as I did with the earlier Deb. distributions. Plug in the webcam in an empty usb slot and start some webcam app, cheese or guvcview.

cheese expect the webcam to be at /dev/video0 and say no device found. And with no device found there is no way to edit any settings in cheese. Guvcviev say "Guvcview error: Unable to open device" and dies.

I am sure the drivers are correctly loaded. Can it be the webcam apps no longer works with the new device handling? If I plug in / unplug some usb devices the the device name might change.

udevadm say that i connect an usb sound card

KERNEL[5341.422264] add /devices/pci0000:00/0000:00:13.5/usb1/1-6 (usb)
KERNEL[5341.423280] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0 (usb)
KERNEL[5341.423363] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.1 (usb)
KERNEL[5341.423382] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2 (usb)
KERNEL[5341.629131] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1 (sound)
KERNEL[5341.629262] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1/pcmC1D0c (sound)
KERNEL[5341.629334] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1/controlC1 (sound)
KERNEL[5341.629391] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.3 (usb)
KERNEL[5341.629475] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/usb_device/usbdev1.12 (usb_device)
UDEV [5341.636484] add /devices/pci0000:00/0000:00:13.5/usb1/1-6 (usb)
UDEV [5341.639960] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/usb_device/usbdev1.12 (usb_device)
UDEV [5341.646040] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.3 (usb)
UDEV [5341.646741] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.0 (usb)
UDEV [5341.649611] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.1 (usb)
UDEV [5341.651466] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2 (usb)
UDEV [5341.652464] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1 (sound)
KERNEL[5341.653961] change /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1 (sound)
UDEV [5341.655637] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1/pcmC1D0c (sound)
UDEV [5341.665123] add /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1/controlC1 (sound)
UDEV [5341.666475] change /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.2/sound/card1 (sound)
 
Old 01-12-2014, 04:29 AM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
how about advising the make and model of cam?

2) show all of

Code:
lsusb
show snippet of /var/log/messages for your cam pls
 
Old 01-13-2014, 05:25 PM   #6
Seven09
LQ Newbie
 
Registered: Dec 2006
Location: Sweden
Posts: 14

Original Poster
Rep: Reputation: 0
The computer had Debian stable installed sometimes this summer. This weekend I tried to install Ubuntu Studio and it bailed out with an internal error inside the partitioning part of the install and left me with a blank disk.

Now I am back wit the latest Debian stable. This time it works out-of-the-box.

Thank you for taking you time!
Seven09
 
Old 01-13-2014, 05:51 PM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
great to hear

pls mark this post as solved
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Webcam Not working sunils1973 Linux - Hardware 2 02-09-2013 10:30 PM
WebCAM not working? your_shadow03 Linux - Newbie 1 07-06-2009 06:13 AM
webcam not working goutty Linux - Laptop and Netbook 9 02-15-2009 07:26 AM
webcam...almost working... lukasz4k Linux - Hardware 1 11-22-2004 03:52 AM
webcam not working TravisB Linux - Hardware 2 04-19-2003 01:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration