LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-14-2007, 02:54 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
No /dev/video1 present ?


I plugged my webcam and there is no /dev/videoX
available for it.

How can it make it found ?
How to refresh the /dev/... ?

2.6.18 kernel, and it is sure that the webcam works.

Would have anyone any single idea ?

htank you !
 
Old 02-14-2007, 04:04 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Is there a udev rule that creates the /dev/videoX symlink?

Execute udevtrigger. It's only supposed to be needed for non-removable devices, but I've found it's sometimes needed for removable devices as well.
 
Old 02-15-2007, 01:19 PM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by Arow
Is there a udev rule that creates the /dev/videoX symlink?

Execute udevtrigger. It's only supposed to be needed for non-removable devices, but I've found it's sometimes needed for removable devices as well.
I read your devfs / udev differences:

Quote:
dmesg
tells me that my device is the 14:
Quote:
usb 4-1.2: new full speed USB device using ehci_hcd and address 14
usb 4-1.2: configuration #1 chosen from 1 choice

when I type :
Quote:
# find /sys -name dev | grep 14
/sys/block/ram14/dev
/sys/class/usb_device/usbdev4.14/dev
/sys/class/tty/tty14/dev
/sys/devices/pci0000:00/0000:00:10.3/usb4/4-1/4-1.2/4-1.2:1.0/usbdev4.14_ep81/dev
/sys/devices/pci0000:00/0000:00:10.3/usb4/4-1/4-1.2/usbdev4.14_ep00/dev
What should I do now to have it to /dev/video2?
 
Old 02-15-2007, 01:25 PM   #4
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by Xeratul
I read your devfs / udev differences:


tells me that my device is the 14:



when I type :


What should I do now to have it to /dev/video2?
I did the madman :
Quote:
# ln -s /sys/devices/pci0000\:00/0000\:00\:10.3/usb4/4-1/4-1.2/4-1.2\:1.0/usbdev4.14_ep81/dev /dev/video2

Quote:
# gqcam -v /dev/video2
/dev/video2: Permission denied
linuxbox:/sys/devices/pci0000:00/0000:00:10.3/usb4/4-1/4-1.2/4-1.2:1.0/usbdev4.14_ep81#
hmm, not working ...

=======
then:

# # udevinfo -a -p /s ys/devices/pci0000\:00/0000\:00\:10.3/usb4/4-1/4-1.2/4-1.2\:1.0/usbdev4.14_ep81/dev

udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.

looking at device '/devices/pci0000:00/0000:00:10.3/usb4/4-1/4-1.2/4-1.2:1.0/usbdev4.14_ep81/dev':
KERNEL=="dev"
SUBSYSTEM==""

looking at device '/devices/pci0000:00/0000:00:10.3/usb4/4-1/4-1.2/4-1.2:1.0/usbdev4.14_ep81':
ID=="usbdev4.14_ep81"
BUS=="usb_endpoint"
DRIVER==""
SYSFS{direction}=="in"
SYSFS{type}=="Isoc"
SYSFS{interval}=="1ms"
SYSFS{wMaxPacketSize}=="0000"
SYSFS{bInterval}=="01"
SYSFS{bmAttributes}=="01"
SYSFS{bEndpointAddress}=="81"
SYSFS{bLength}=="07"
SYSFS{dev}=="442:6157"

looking at device '/devices/pci0000:00/0000:00:10.3/usb4/4-1/4-1.2/4-1.2:1.0':
ID=="4-1.2:1.0"
BUS=="usb"
DRIVER==""
SYSFS{modalias}=="usb:v046Dp0928d0000dcFFdscFFdp00icFFisc00ip00"
SYSFS{bInterfaceProtocol}=="00"
SYSFS{bInterfaceSubClass}=="00"
SYSFS{bInterfaceClass}=="ff"
SYSFS{bNumEndpoints}=="01"
SYSFS{bAlternateSetting}==" 0"
SYSFS{bInterfaceNumber}=="00"

looking at device '/devices/pci0000:00/0000:00:10.3/usb4/4-1/4-1.2':
ID=="4-1.2"
BUS=="usb"
DRIVER=="usb"
SYSFS{configuration}==""
SYSFS{product}=="Camera"
SYSFS{manufacturer}==" "
SYSFS{maxchild}=="0"
SYSFS{version}==" 1.10"
SYSFS{devnum}=="14"
SYSFS{speed}=="12"
SYSFS{bMaxPacketSize0}=="8"
SYSFS{bNumConfigurations}=="1"
SYSFS{bDeviceProtocol}=="00"
SYSFS{bDeviceSubClass}=="ff"
SYSFS{bDeviceClass}=="ff"
SYSFS{bcdDevice}=="0000"
SYSFS{idProduct}=="0928"
SYSFS{idVendor}=="046d"
SYSFS{bMaxPower}=="100mA"
SYSFS{bmAttributes}=="80"
SYSFS{bConfigurationValue}=="1"
SYSFS{bNumInterfaces}==" 1"

looking at device '/devices/pci0000:00/0000:00:10.3/usb4/4-1':
ID=="4-1"
BUS=="usb"
DRIVER=="usb"
SYSFS{configuration}==""
SYSFS{maxchild}=="4"
SYSFS{version}==" 2.00"
SYSFS{devnum}=="2"
SYSFS{speed}=="480"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bNumConfigurations}=="1"
SYSFS{bDeviceProtocol}=="02"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bDeviceClass}=="09"
SYSFS{bcdDevice}=="0009"
SYSFS{idProduct}=="6560"
SYSFS{idVendor}=="04b4"
SYSFS{bMaxPower}=="100mA"
SYSFS{bmAttributes}=="e0"
SYSFS{bConfigurationValue}=="1"
SYSFS{bNumInterfaces}==" 1"

looking at device '/devices/pci0000:00/0000:00:10.3/usb4':
ID=="usb4"
BUS=="usb"
DRIVER=="usb"
SYSFS{configuration}==""
SYSFS{serial}=="0000:00:10.3"
SYSFS{product}=="EHCI Host Controller"
SYSFS{manufacturer}=="Linux 2.6.18-3-686 ehci_hcd"
SYSFS{maxchild}=="6"
SYSFS{version}==" 2.00"
SYSFS{devnum}=="1"
SYSFS{speed}=="480"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bNumConfigurations}=="1"
SYSFS{bDeviceProtocol}=="01"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bDeviceClass}=="09"
SYSFS{bcdDevice}=="0206"
SYSFS{idProduct}=="0000"
SYSFS{idVendor}=="0000"
SYSFS{bMaxPower}==" 0mA"
SYSFS{bmAttributes}=="e0"
SYSFS{bConfigurationValue}=="1"
SYSFS{bNumInterfaces}==" 1"

looking at device '/devices/pci0000:00/0000:00:10.3':
ID=="0000:00:10.3"
BUS=="pci"
DRIVER=="ehci_hcd"
SYSFS{broken_parity_status}=="0"
SYSFS{enable}=="1"
SYSFS{modalias}=="pci:v00001106d00003104sv00001106sd00003104bc0Csc03i20"
SYSFS{local_cpus}=="ff"
SYSFS{irq}=="169"
SYSFS{class}=="0x0c0320"
SYSFS{subsystem_device}=="0x3104"
SYSFS{subsystem_vendor}=="0x1106"
SYSFS{device}=="0x3104"
SYSFS{vendor}=="0x1106"

looking at device '/devices/pci0000:00':
ID=="pci0000:00"
BUS==""
DRIVER==""

Last edited by Xeratul; 02-15-2007 at 01:27 PM.
 
Old 02-15-2007, 01:40 PM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
then # cat /proc/devices

Character devices:
1 mem
2 pty
3 ttyp
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
7 vcs
10 misc
13 input
14 sound
29 fb
81 video4linux
116 alsa
128 ptm
136 pts
180 usb
189 usb_device
226 drm

Block devices:
1 ramdisk
2 fd
3 ide0
7 loop
8 sd
22 ide1
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
254 device-mapper
 
Old 02-15-2007, 04:34 PM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Ok, so you got the information you need to write a rule. Read the link I provided earlier.
 
Old 02-15-2007, 10:52 PM   #7
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
hmmm, soo, good beginning then. Let's study, to understand how that works
(not so easy at beginning)

thank you Arow!!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown directory /dev/video1 after kernel upgrade RVDowning Mandriva 1 11-16-2006 11:44 AM
/dev/sequencer not present jagot Linux - Hardware 2 10-22-2006 03:12 PM
/dev/ttyACM0 in Hardware Info, but not present in /dev list linuxdreamz Linux - Newbie 4 08-17-2006 02:29 PM
bttv on /dev/video1 liguorir Linux - Software 1 08-29-2004 02:38 PM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:47 AM.

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