LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-19-2004, 08:59 AM   #1
amit10p
LQ Newbie
 
Registered: Jun 2004
Location: Mumbai
Posts: 7

Rep: Reputation: 0
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".

Can anyone please tell me how this both files are related.
How linux interact with Device files.
What is video0 file in /dev directory.


Your help is higly appriciated.

Thanking you in advance
 
Old 06-19-2004, 09:41 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
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.

Last edited by jschiwal; 06-19-2004 at 09:42 AM.
 
Old 06-20-2004, 11:29 PM   #3
amit10p
LQ Newbie
 
Registered: Jun 2004
Location: Mumbai
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 06-28-2004, 06:31 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Run the lsusb command as root.
 
Old 06-29-2004, 07:15 AM   #5
amit10p
LQ Newbie
 
Registered: Jun 2004
Location: Mumbai
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
Old 07-02-2004, 10:35 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Assign one USB-storage device to one device file Misel Linux - Hardware 1 08-28-2004 03:52 AM
use of proc file system in linux device driver amitchakote Linux - Software 0 06-20-2004 11:27 AM
slow file copy from linux onto USB device BeckerB Linux - General 9 04-19-2004 02:16 PM
Interact ACT! thanko Linux - Software 3 03-14-2004 07:30 PM
Need to interact with VB / COM from Perl jpbarto Programming 0 10-08-2003 10:10 AM

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

All times are GMT -5. The time now is 11:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration