LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-25-2006, 10:19 AM   #1
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Rep: Reputation: 30
Webcam: lsusb shows nothing and no /proc/bus/usb/devices


Hey people! Well, where to begin...I am trying to set up a video capture device under my Slackware Linux box. On my kernel compile I enabled the following things:

Device Drivers -> USB support:

Support for Host-side USB = module (usbcore)
USB device filesystem = built-in
EHCI HCD (USB 2.0) support = module (ehci-hcd)
UHCI HCD (most Intel and VIA) support = module (uhci-hcd)
USB Mass Storage support = module (usb-storage)
USB Monitor = built-in

Device Drivers -> Multimedia Devices:

Video For Linux = built-in
Enable Video For Linux API 1 (DEPRECATED) = built-in

Device Drivers -> Multimedia Devices -> Video Capture Adapters:

Everything but "Enable advanced debug funcionality" as module.

Device Drivers -> Multimedia Devices -> Video Capture Adapters -> Encoders and decoders:

Everything as module.

Device Drivers -> Multimedia Devices -> Video Capture Adapters -> V4L USB devices:

Everything as module.


------------------------------

And now, a part of my /etc/rc.d/rc.modules:

#USB

/sbin/modprobe usbcore
/sbin/modprobe ehci-hcd
/sbin/modprobe uhci-hcd
/sbin/modprobe usb-storage
/sbin/modprobe usbvideo
/sbin/modprobe sn9c102


The last one is the driver of my webcam or at least a compatible driver for it as I read in another forum.

-------------------------------

Now, my dmesg content:

http://net-priest.tripod.com/dmesg

As you can see, there is the part:

usbcore: registered new driver usbfs
usbcore: registered new driver hub
ACPI: PCI Interrupt 0000:00:1d.7[D] -> GSI 23 (level, low) -> IRQ 17
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: debug port 1
PCI: cache line size of 128 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: irq 17, io mem 0xffa00000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 16 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.0: irq 18, io base 0x0000cc00
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.1: irq 19, io base 0x0000d000
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.2: irq 16, io base 0x0000d400
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
usb 2-2: new full speed USB device using uhci_hcd and address 2
ACPI: PCI Interrupt 0000:00:1d.3[A] -> GSI 16 (level, low) -> IRQ 18
PCI: Setting latency timer of device 0000:00:1d.3 to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.3: irq 18, io base 0x0000d800
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
usb 2-2: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
sn9c102: V4L2 driver for SN9C10x PC Camera Controllers v1:1.27
usb 2-2: SN9C10[12] PC Camera Controller detected (vid/pid 0x0C45/0x602D)
usb 2-2: OV7630 image sensor detected
usb 2-2: Initialization succeeded
usb 2-2: V4L2 device registered as /dev/video0
usbcore: registered new driver sn9c102


-------------------------------

My hardware specifics:

Intel Pentium 4 3.0Ghz HT Processor on D865GBF Intel Motherboard ( http://www.intel.com/products/motherboard/d865gbf/ )

-------------------------------

Q1: Is my usb everything all set? If I am having problem with my USB cam, at least it is not on my USB support? I am asking this because, according to the site: http://www.linux.com/howtos/Webcam-H...shooting.shtml , I should see something when I type: lsusb and I don't see anything:

bash-3.1# lsusb
bash-3.1#


And when I try:

bash-3.1# cat /proc/bus/usb/devices
cat: /proc/bus/usb/devices: No such file or directory
bash-3.1#


Just for additional info:

bash-3.1# ls /proc/bus/usb/
bash-3.1#
 
Old 07-25-2006, 10:24 AM   #2
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
Q2: IF it is everything ok with my USB set, is there any way to fix my webcam problem? Here are the outputs of some programs I've tried:

Amsn:

dlsym[./utils/linux/capture/libng/plugins/drv0-v4l2.so]: ./utils/linux/capture/libng/plugins/drv0-v4l2.so: undefined symbol: _ng_plugin_init
dlsym[./utils/linux/capture/libng/plugins/drv1-v4l.so]: ./utils/linux/capture/libng/plugins/drv1-v4l.so: undefined symbol: _ng_plugin_init
WARNING: no plugins found [/home/tech/amsn-0.95]
ioctl: VIDIOCGCAP(name="2¾·@¨Ê·";type=0x1f [CAPTURE,TUNER,TELETEXT,OVERLAY,CHROMAKEY];channels=-1211455404;audios=-1212282876;maxwidth=40;maxheight=31;minwidth=143712226;minheight=-1210043904): Invalid argument


And it says: "Error getting capabilities" in the webcam setup session.

Mercury:

On JMF Wizard:

Looking for video capture devices...
- Finished detecting V4LAuto classes.
Starting detected classes... (This might take some time)
- Done.

There are no video capture devices present.


Xawtv:

This is xawtv-3.95, running on Linux/i686 (2.6.17.4)
WARNING: Your X-Server has no DGA support.
seteuid(root): Operation not permitted
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_G_STD(std=0xb793da40b7bc01ac [PAL_G,PAL_H,PAL_D,PAL_K,PAL_M,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,?ATSC_8_VSB,ATSC_16_VSB,(null),(null) ,(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),( null),(null),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
no way to get: 384x288 32 bit TrueColor (LE: bgr-)


Doesn't show anything on screen, and the title of the window is: "???"

Xawtv (as root):

This is xawtv-3.95, running on Linux/i686 (2.6.17.4)
WARNING: Your X-Server has no DGA support.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_G_STD(std=0xb7943a40b7bc61ac [PAL_G,PAL_H,PAL_D,PAL_K,PAL_M,NTSC_M_JP,?,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,?ATSC_8_VSB,ATSC_16_VSB,( null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(nu ll),(null),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
no way to get: 384x288 32 bit TrueColor (LE: bgr-)


Same results as non-root (Doesn't show anything on screen, and the title of the window is: "???").

ANY help on ANY of the questions would be so much appreciated. Thanks everyone for the attention!

Last edited by stevesk; 07-25-2006 at 10:33 AM.
 
Old 07-25-2006, 09:46 PM   #3
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
*Puff*? Anyone...? Snif!
 
Old 07-26-2006, 04:26 PM   #4
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
Last try on Slackware Forum...
 
Old 07-26-2006, 11:41 PM   #5
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
Update: chesh helped me with Q1. I had to change my fstab and add these lines:

proc /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /proc/bus/usb usbfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0

Now only Q2 is still open. I cannot find out what is wrong...
 
Old 07-27-2006, 05:39 AM   #6
The_Outlander
Member
 
Registered: Aug 2004
Location: Australia
Distribution: Slackware 12.1
Posts: 235

Rep: Reputation: 30
I tried v4l2 and it would not work. Instead, I am using v4l without problems. Ekiga and amsn.
Try using v4l and see how it goes. I don't have an answer to your v4l2 problem, but this may be a good starting point to eliminate concerns about your cam.
Someone, with more experience with video may be able to help?

Last edited by The_Outlander; 07-27-2006 at 05:43 AM.
 
Old 07-27-2006, 12:40 PM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Hardware and has been moved accordingly to help your thread/question get the exposure it deserves.

You might want to enclose those in quote or code tags, btw.
 
Old 07-27-2006, 06:20 PM   #8
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
Well, no problem...and sorry everyone for double posts, it was because I wasn't getting help on slackware forum...

Thanks for your reply, chesh, but I didn't understand exactly what you mean about "v4l" and "v4l2". On the kernel compilation I have two options:

Enable Video For Linux API 1 (DEPRECATED)
Enable Video For Linux API 1 compatible layer


But only the first one allows me to choose USB Webcams.
 
Old 08-02-2006, 03:03 AM   #9
stevesk
Member
 
Registered: Dec 2004
Distribution: Slackware-current
Posts: 207

Original Poster
Rep: Reputation: 30
My last *bump* try...
 
  


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
where is /proc/bus/usb/devices???? mrchaos Linux - Software 4 12-04-2005 10:26 PM
cannot open /proc/bus/usb/devices, No such file or directory aspartat Linux - Software 2 11-02-2005 12:57 PM
MDK 10.2: No USB at all (/proc/bus/usb/devices missing) shrodi Mandriva 5 07-01-2005 11:28 AM
question on /proc/bus/usb/devices file ryan_a_hH Linux - Hardware 2 01-21-2005 01:49 PM
/proc/bus/usb/devices missing shellcode Linux - General 11 02-24-2004 10:15 PM

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

All times are GMT -5. The time now is 01:13 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