LinuxQuestions.org
Visit Jeremy's Blog.
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 01-13-2011, 04:16 AM   #1
feedmebits
LQ Newbie
 
Registered: Feb 2010
Distribution: SL
Posts: 14

Rep: Reputation: 0
How Debian/Linux Drivers work?


I'm running debian and still learning to find my way around Linux and how to OS works but I haven't been able to figure out and understand how Linux works with drivers. Some devices work out of the box and others don't. I've read post where people explain how to install the drivers for the device but I still don't quite understand how it works.

I've read that you that Linux comes with built in drivers that works for the most common hardware. I can check what hardware is on my motherboard by using the command "lspci", that if your device is recognized in this list that all you have to do is activate it to load into the kernel at startup. If it is not listed you have to install the driver into the system: by installing the driver from the source package(rpm/deb) or you can build de driver from a a tar file. After doing this I have to upload the driver into the kernel so that when I boot my system it wil start up. This is my understanding of how it works, but when trying to get one of my own devices(example: wireless card for laptop or usb headset) to work I can't seem to figure out how this works. I would appreciate it if someone could help me understand how this works cuz once I understand this I have no reason to keep dual booting with windows than windows is history for me.
 
Old 01-13-2011, 04:24 AM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Debian drivers(modules) load automatically, providing that they are available on normal install.
When you install debian if you choose non-free drivers, it will make them available thru package manager if they are not proprietary(I think). On most of my machines atleast the newer ones drivers were readily available.

The debian installation guide is available in synaptic.
I think route 2038 also

There is a lot of reading involved.

Last edited by EDDY1; 01-13-2011 at 04:27 AM.
 
Old 01-13-2011, 04:24 AM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

IMHO, your general understanding seems to be fine (although devices for which you don't have a driver may still be listed in the lspci output).

I suspect that if you tell us exactly what device you are having trouble with, and what you actually tried (and perhaps a link to the instructions you were following) we may be able to help you.

Evo2.
 
Old 01-13-2011, 04:39 AM   #4
feedmebits
LQ Newbie
 
Registered: Feb 2010
Distribution: SL
Posts: 14

Original Poster
Rep: Reputation: 0
I read this article and thought it might help with understanding with installing drivers:

http://www.howtoforge.com/linux_broadcom

I'm trying to get my wirless to work for my laptop(have to reinstall it with Debian again now cuz got windows running on it now):

http://h20000.www2.hp.com/bizsupport...&swEnvOID=1093

and I'm trying to get this to work on my desktop: http://www.logitech.com/en-us/webcam...s/devices/3622
 
Old 01-13-2011, 04:50 AM   #5
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Did you select non-free drivers during setup?
If not you may have to edit /etc/apt/sources.list.

Which version of Debian?
 
Old 01-13-2011, 04:52 AM   #6
feedmebits
LQ Newbie
 
Registered: Feb 2010
Distribution: SL
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
Did you select non-free drivers during setup?
If not you may have to edit /etc/apt/sources.list.

Which version of Debian?
As far as I know I didn't, is there a way to check that?

Debian 5

Last edited by feedmebits; 01-13-2011 at 04:54 AM.
 
Old 01-13-2011, 04:54 AM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I think "uname -a"
open terminal
and enter
uname -a
 
Old 01-13-2011, 05:04 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
This is what my sources.list looks like.
Notice non-free & contrib


Also output of lspci.
Attached Thumbnails
Click image for larger version

Name:	Screenshot.jpg
Views:	11
Size:	90.7 KB
ID:	5843   Click image for larger version

Name:	Screenshot-6.jpg
Views:	10
Size:	133.2 KB
ID:	5844  

Last edited by EDDY1; 01-13-2011 at 05:09 AM.
 
Old 01-13-2011, 05:10 AM   #9
feedmebits
LQ Newbie
 
Registered: Feb 2010
Distribution: SL
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by EDDY1 View Post
This is what my source looks like.
Also output of lspci.
thanks I will try it this evening because I'm not behind my own pc now

btw now that I see your /etc/apt/sources.list file I see that yours is the same as mine except I'm not running squeeze just lenny. Have all the default sources listed there no "non-free drivers" are listed there.

Last edited by feedmebits; 01-13-2011 at 05:13 AM.
 
Old 01-13-2011, 05:14 AM   #10
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Good luck
 
Old 01-13-2011, 05:17 AM   #11
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Have all the default sources listed there no "non-free drivers" are listed there.
You need "non-free contrib"
for wireless

After editing sources.list
do an "aptitude update"
You should also setup your "sudo" privileges

Last edited by EDDY1; 01-13-2011 at 05:20 AM.
 
Old 01-13-2011, 08:09 AM   #12
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
Quote:
You should also setup your "sudo" privileges
Why?.
 
Old 01-13-2011, 07:31 PM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
You still haven't told us what the device is that you are trying to get working. Could you please "cut and paste" the output of lspci into one of your posts (not a screen shot).

The following command will tell what version of Debian you are running
Code:
cat /etc/debian_version
and (as suggested earlier) the output of
Code:
uname -a
and
Code:
cat /etc/apt/sources.list
would also be useful.

Evo2.
 
  


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
how do linux drivers work? alien8predator Linux - Newbie 1 01-17-2010 08:28 AM
will the ltmodem drivers work in debian sid (knoppix sid) maximalred Debian 5 05-29-2009 11:44 AM
Finally have Linux rolling... How do I get drivers to work? Gilrad Linux - Newbie 12 02-09-2007 06:13 PM
Are there any Linux drivers that will work on an HP Scanjet 4850? 273chris Linux - Hardware 2 01-25-2006 06:10 PM
[Debian (Knoppix)] ATI Radeon Mobility 9600 Proprietary Drivers? Do they work? false-hopes Linux - Laptop and Netbook 0 08-23-2004 12:19 AM


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