LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-12-2011, 02:20 AM   #1
shahina.shaik
LQ Newbie
 
Registered: Apr 2011
Location: Bangalore
Distribution: ubuntu
Posts: 3

Rep: Reputation: 0
Smile how a device get detected in linux?


In linux when we connect a device, how it is going to be detected by the kernel.
 
Old 04-12-2011, 02:22 AM   #2
Walter.Stroebel
LQ Newbie
 
Registered: Apr 2011
Location: Arnhem, The Netherlands
Distribution: CentOS
Posts: 19

Rep: Reputation: 6
Check the command dmesg when you plug and unplug the device for interesting information.
The commands lshal and lspci might give more information as well.
 
1 members found this post helpful.
Old 04-12-2011, 02:23 AM   #3
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
What type of device? some have to be seen on boot and some when plugged.
 
Old 04-12-2011, 02:27 AM   #4
shahina.shaik
LQ Newbie
 
Registered: Apr 2011
Location: Bangalore
Distribution: ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
Wow....great response...thanks..i just joined LQ.

I wanted to the internal information in depth, like how exactly kernel identifies a device(any device)from a kernel level.
For example, i connected a USB device. the kernel will detect it and display a msg to user that new device found. How it is finding it??
 
Old 04-12-2011, 02:46 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Unlike windows linux has a library of drivers (modules) ready to be loaded when needed if you don't have them there's usually a message on the system to let you know what is needed.
Some of the items needed that aren't installed are from non-free and you have to enable in /etc/apt/sources.list.
Good luck on the journey.
 
1 members found this post helpful.
Old 04-12-2011, 07:33 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
Open a terminal and type man udev[enter].

That's good introduction to the tech.

You might also look at this: http://www.makelinux.net/kernel_map
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless device not detected (?) ibex Linux - Networking 9 11-17-2009 08:59 AM
USB device not detected rainInSpain Linux - Laptop and Netbook 4 06-24-2008 09:27 PM
graphical device not detected no way Linux - Newbie 9 02-01-2006 01:38 PM
DVD RW device not detected endfx Linux - Hardware 9 10-10-2005 04:48 AM
DVD device not detected sumanjay Slackware 1 07-23-2003 09:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:05 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