LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-23-2010, 08:38 AM   #1
BorisTheSpider
LQ Newbie
 
Registered: Feb 2010
Location: Arlington, Va
Distribution: Fedora 14
Posts: 24

Rep: Reputation: 15
Why does Linux install drivers I don't need?


This may be a question that does not belong here. I looked at all the forum headers a few times over.

Does any here know why some Linux distros install drivers for hardware that is not present on a given computer? Why would Linux install an ATI Readeon driver on a box that has an nVidia graphics chip? Why does Linux install Broadcom wireless drivers on a box that had an Intel wireless card?

It just seems kinda goofy. Anybody?
 
Old 03-23-2010, 09:20 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Because some people complain when their particular graphics card or network card doesn't work "out of the box". So modules for as many devices as possible are made available. The drivers just take up space because they only get loaded if they're needed.

If your graphics card breaks and you get a different one it's nice to have support without hunting a driver down.
 
Old 03-23-2010, 03:02 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,997

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
It is how "distro's" are made. They are generic versions meant to support a wide array of machines.

You can build your system if you want to exactly your computer (more or less actually) with a few documented methods. People on this forum tend to favor Linux from scratch. A build it all form letter. I might suggest Gentoo which sort of gives you a head start.
 
Old 03-23-2010, 04:00 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
if that seems too daunting a task you could at the very minimum go to www.kernel.org, snatch a full copy of the latest kernel and compile your own kernel with only drivers you need for your machine, careful though to retain an old copy of a working kernel available when doing this in case something goes wrong
 
Old 03-23-2010, 04:36 PM   #5
pafinator11
Member
 
Registered: Jul 2005
Location: Massachusetts
Distribution: Debian Lenny, FreeBSD
Posts: 89

Rep: Reputation: 15
Quote:
Originally Posted by BorisTheSpider View Post
This may be a question that does not belong here. I looked at all the forum headers a few times over.

Does any here know why some Linux distros install drivers for hardware that is not present on a given computer? Why would Linux install an ATI Readeon driver on a box that has an nVidia graphics chip? Why does Linux install Broadcom wireless drivers on a box that had an Intel wireless card?

It just seems kinda goofy. Anybody?
Nearly all operating systems do this. What operating system are you coming from?
 
Old 03-24-2010, 08:54 AM   #6
BorisTheSpider
LQ Newbie
 
Registered: Feb 2010
Location: Arlington, Va
Distribution: Fedora 14
Posts: 24

Original Poster
Rep: Reputation: 15
I used to use windoze, but I haven't use it since Fedora 9. I was under the assumption that windoze could detect hardware during the install and update process, and install only what is required.

I know Linux detects hardware very well. I'm aware that kernels are written to work with many devices. It just seems odd to me that if I want to install the latest kernel released by my distro (2.6.32.9.70), I must install an ATI graphics driver as a dependency, when my box does not have an ATI graphics chip. It has an nVidia chip.

While I am sure the ATI module would never load, it just seems like a waste of [whatever] to install an unneeded driver.
 
Old 03-24-2010, 05:00 PM   #7
pafinator11
Member
 
Registered: Jul 2005
Location: Massachusetts
Distribution: Debian Lenny, FreeBSD
Posts: 89

Rep: Reputation: 15
Quote:
Originally Posted by BorisTheSpider View Post
I used to use windoze, but I haven't use it since Fedora 9. I was under the assumption that windoze could detect hardware during the install and update process, and install only what is required.

I know Linux detects hardware very well. I'm aware that kernels are written to work with many devices. It just seems odd to me that if I want to install the latest kernel released by my distro (2.6.32.9.70), I must install an ATI graphics driver as a dependency, when my box does not have an ATI graphics chip. It has an nVidia chip.

While I am sure the ATI module would never load, it just seems like a waste of [whatever] to install an unneeded driver.
Windows has generic drivers for just about everything. It also has more specific drivers for certain things, especially graphics.

If you think about it, for most people, the graphics driver is the last thing you would want to go without. On linux, if the ATI driver wasn't there and you swapped the nvidia card for an ati, you would be stuck at the command line.

Most computers are built with excessive hard drive space at this point.
There's two approaches to this issue...
1. Everything should be as a efficient as possible
2. If the resources are there, why let them go to waste?

Personally I'm in the #2 camp. I would welcome them putting every possible driver on my computer. With a terrabyte of storage, I can gladly accept a gig of drivers for the convenience of just popping in any device and it working.

If you're looking for more efficiency, most distros have a pretty in-depth advanced installer where you can select and deselect packages.
 
Old 03-24-2010, 05:08 PM   #8
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213
Blog Entries: 2

Rep: Reputation: 26
I agree with what's said here but I can see part of Boris's points. If he has a smaller hard drive or is installing Linux on something like a pen drive, this could be a major annoyance, although I am not sure what all gets installed on a pen drive so YMMV.

Otherwise the best thing to do is, for instance, remove the ATI drivers, and other drivers which are of no use.

Hopefully if you have an OS like RedHat you can sudo and use "rpm -e <useless driver>" or better yet, "yum remove <useless driver>".

Hope this helps!
 
Old 03-24-2010, 05:34 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,997

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
BorisTheSpider. You have a choice. You can build the very fastest possible system from scratch. You can choose all points of the OS if you wish. Your selection of a generic "distro" is the reason for your more than needed drivers.
 
Old 03-25-2010, 08:23 AM   #10
BorisTheSpider
LQ Newbie
 
Registered: Feb 2010
Location: Arlington, Va
Distribution: Fedora 14
Posts: 24

Original Poster
Rep: Reputation: 15
I appreciate everyone's input, however, it is not about hard drive space or device swap-ablity. I am certainly no Linux builder. I realize that Linux doesn't have different distros for every different computer, but my computer is a laptop. The only way I'd be swapping out my graphics chip is if I was a microelectronics technician who could unsolder a GPU and replace it with another.

If I had a desktop, or a laptop with a removable GPU, and was about to exchange GPUs, procedure dictates that we look on the internet for the driver of our chip. This is a generic procedure, as most Linux users will simply use YUM to find the driver they need.

This brings me back to my original question. Linux can detect the hardware resident on someone's computer, but still installs many "useless" drivers. Why is this?

As I said in a previous post, I am aware that Linux kernels are written to work with a plethora of hardware, but why, when the hardware detection found certain resident hardware, are the "useless" drivers installed.

And why must I install a useless driver as a dependency for a new distro released kernel, on a running system that does not use this useless driver.

You know, we all know these people, the ones at school or the ones at work, that ask those questions that no one else knows (or needs) the answer to. I'm one of those weirdos. The one who weeds through a mountain of speculation to get to the truth. What's the truth?
 
Old 03-25-2010, 09:08 AM   #11
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
A lot of drivers are complied into the kernel. Do you think linux users should be forced to recompile their kernel if they want to add support for a different driver ? Trying to get v4l running in past days was a nightmare. Now v4l (and v4l2) are already included in the kernel with many types of tv card accounted for. Are those drivers useless ? How do you know which one you need ?

Try writing to Linus and asking why the kernel is the way it is.

You are of course free to remove any driver files you want, after the install, but the install has to supply them to be sure of providing support.

Last edited by smoker; 03-25-2010 at 09:10 AM.
 
Old 03-25-2010, 08:06 PM   #12
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,074

Rep: Reputation: 59
Quote:
Originally Posted by BorisTheSpider View Post
This brings me back to my original question. Linux can detect the hardware resident on someone's computer, but still installs many "useless" drivers. Why is this?

As I said in a previous post, I am aware that Linux kernels are written to work with a plethora of hardware, but why, when the hardware detection found certain resident hardware, are the "useless" drivers installed.

And why must I install a useless driver as a dependency for a new distro released kernel, on a running system that does not use this useless driver.
It's a long long time I do not use Fedora, but what I remember when I installed F1, F2 and F3 is that the installer NEVER compiled a kernel suited to what Anaconda detected when i put the 1st CD. What this means is that even though most Linux distros can detect all the hardware you have on you PC/laptop, it does not actually build a kernel for that machine, but installs a very wide and generic kernel from the CD you are installing from. It's the only way that distro will "fit" in most computers, by making a huge kernel with loads of options enabled.

I grew tired of this as well, and then I decided to built an efficient system, suited to my machine only, that's when I installed Gentoo. Gentoo Linux also comes with a very big kernel in the CD, BUT you have to build your kernel for your system in the process of install. That's the big difference between Gentoo and other distros (among other things of course), but that way you get only what you want.

From my point of view you have 3 options:
1.- Leave everything as it is now
2.- Stip Fedora until you get what you want (delete software you don't want, recompile kernel and the such)
3.- Get another distro that can give you more control over what you install on your computer.
 
Old 03-25-2010, 08:22 PM   #13
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
It is a decision made by whoever wrote the installer. Basically it is easiest to simply install drivers for common hardware and then use what is needed. The installer could be written in such a way as to remove unused drivers but generally they are not, for all the reasons discussed above.

Evo2.
 
Old 03-25-2010, 11:16 PM   #14
BorisTheSpider
LQ Newbie
 
Registered: Feb 2010
Location: Arlington, Va
Distribution: Fedora 14
Posts: 24

Original Poster
Rep: Reputation: 15
Hammett and evo2 have perfectly answered this useless question. Thank you both.
 
  


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
How to install drivers in linux (ubuntu) joshd1982 Linux - Newbie 14 02-21-2014 06:04 AM
How to install drivers in linux? cfroese Linux - Hardware 8 02-01-2008 11:52 PM
Install hardware drivers on linux??????? Ludwig7666 Linux - Newbie 13 08-04-2006 10:31 AM
how to install sis760 drivers for linux ambar Red Hat 5 07-31-2006 02:48 PM
HELP! How do I install drivers for Linux? kao4hurley Linux - General 9 04-07-2004 04:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 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
Open Source Consulting | Domain Registration