LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   No /dev/video1 present ? (https://www.linuxquestions.org/questions/linux-general-1/no-dev-video1-present-529075/)

Xeratul 02-14-2007 02:54 PM

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 !

weibullguy 02-14-2007 04:04 PM

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.

Xeratul 02-15-2007 01:19 PM

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?

Xeratul 02-15-2007 01:25 PM

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==""

Xeratul 02-15-2007 01:40 PM

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

weibullguy 02-15-2007 04:34 PM

Ok, so you got the information you need to write a rule. Read the link I provided earlier.

Xeratul 02-15-2007 10:52 PM

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

thank you Arow!!


All times are GMT -5. The time now is 03:43 PM.