LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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: 5,594

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
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: 5,594

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
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
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 7,712

Rep: Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458Reputation: 1458
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


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


All times are GMT -5. The time now is 05:11 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration