LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How Linux Interact with Device File (https://www.linuxquestions.org/questions/linux-hardware-18/how-linux-interact-with-device-file-195312/)

amit10p 06-19-2004 08:59 AM

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

jschiwal 06-19-2004 09:41 AM

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.

amit10p 06-20-2004 11:29 PM

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

jschiwal 06-28-2004 06:31 PM

Run the lsusb command as root.

amit10p 06-29-2004 07:15 AM

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

jschiwal 07-02-2004 10:35 PM

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.