How Linux Interact with Device File
Hi All
I am working on Video Chatting Application. I am new at linux and lack some informations. I have Logitech Quickcam@ Home. When this Camera is attched to USB port the /proc/bus/usb/devices file has knowledge of it but when i try to access it through dev/video0 it will show me following error "/dev/video0 No such Deive". :confused: Can anyone please tell me how this both files are related. How linux interact with Device files. :study: What is video0 file in /dev directory. Your help is higly appriciated. Thanking you in advance |
Try looking at the output of the 'lsusb' command. It is like lspci but for usb devices.
/dev/video0 may be a link to another device. type: ls -l /dev/video0 The first pathname you entered looked more like a directory then a device. Please check if it is correct. Being a USB device, the hotplug service may create a device file on the fly and mount it when you plug in the web-cam. |
Hi
Thanks for your valuable help. I had tried "lsusb" command but result says "bash: lsusb: command not found" I am using Kernal version: 2.4.7 I had mounted the file system for USB Device but still i get the previous error message. Thanking You |
Run the lsusb command as root.
|
Hi
I have updated my Linux to 7.3 having Kernel version 2.4.18 and now lsusb is working. During my search I have come to know that for USB 2.0 Device, Kernel 2.5.2 or later version is required. Is it true. and if so then please guide me on How to update kernel as I havent do it before. Thanks in advance |
Which distro are you using? The easiest way may be to download and install the kernel-<version> rpm file for your distribution.
Otherwise, you will need to download and install the kernel-source for a new kernel and follow the instructions from one of the kernel compiling how-tos. |
All times are GMT -5. The time now is 11:13 PM. |