| < Day Day Up > |
Device drivers are software files that contain instructions that allow the OS to interact with hardware. For example, it takes one or more mouse drivers for the OS to understand what to do when you move the mouse. The printer driver
Some devices are so important that generic drivers are available immediately after powering on the computer. These are the video and keyboard drivers. Generic drivers for these devices are built into the BIOS. That is because, barring the presence of devices used by those with certain
Drivers are also usually specific to the OS version, or version
You will notice that many devices come with "software." Usually, this includes both drivers to make the device operational and programs to make them functional. For example, a CD-RW drive with just its device driver installed will work only as a CD-ROM drive. To be able to "burn" (record) CDs, you need a program that will give you controls that allow you to use the device for all of its intended purposes. Often, the software that ships with a hardware device includes one or more third-party programs that are certified by the device manufacturer to be compatible with that device. The drivers to operate the device, and sometimes drivers for competing devices, are included in the program. However, some devices, most notably printers, come with software that is designed by the printer manufacturer solely for that device. And in some cases, Windows will have built-in software
All of the versions of Windows discussed in this book are PnP OSs. Often disparagingly called "Plug and Pray" when introduced in Windows 95, Plug and Play refers to the capability of a device to be recognized and installed automatically by the OS without the
| Note |
Manufacturer's installation instructions always supercede the instructions in this chapter in case there are any differences. |
Installing a driver is part of installing a device. In fact, when Windows messages refer to "installing or uninstalling a device," they mean primarily installation and uninstallation of the drivers for that device. Here are the most common ways that device drivers are installed on Windows PCs:
Automatically by Windows:
Windows detects the device on
Almost automatically by Windows:
Windows detects the device and prompts for the location of the driver. The user
Manufacturer-supplied installation CD:
The installation CD starts automatically upon insertion. The user
Installation program on the hard drive: The user runs the program, usually by double-clicking, and installation proceeds in the same manner as the previous method.
When installing or reinstalling a driver, make sure you know where the drivers are. If they are on a floppy or CD, make sure you know which drive the disk is in along with the path to the driver files. If the drivers are on the hard drive, which is common if you downloaded them from the Internet, make sure you know the
| Tip |
If you download a file from the Internet, make sure to navigate to a folder that you can easily find when prompted for a location.
|
One very common problem that occurs with PCs is for a device to stop working correctly or at all. In most cases, there is nothing wrong with the hardware; instead, the driver has become corrupted. Corrupted drivers can sometimes even affect the functioning of the entire computer.
There are various degrees of reinstalling drivers. Try these in order if you haven't
Reinstall the existing driver.
Uninstall and reinstall the driver.
Uninstall the driver from your system and reboot. When Windows restarts, it should detect the new hardware and start to install the drivers again.
If you have the documentation and driver disks from a device, follow the provided directions. For example, corrupted drivers are common with Hewlett-Packard printers. Tutorial 2.2 describes a typical case of reinstalling a printer driver.
Tutorial 2.2: Reinstalling Printer Software
|
|
Make sure you have the driver disk or have downloaded the file before proceeding with these steps:
In Windows XP with the standard Start menu, go to Start > Printers and Faxes. In all other versions, go to Start > Settings > Printers.
Right-click the icon for the printer you want to uninstall and select Delete from the pop-up menu that appears.
Follow the prompt to confirm deletion.
Insert the driver disk or execute (run) the installation file on the hard drive.
Follow the prompts to install the printer software.
|
|
In other situations, follow the procedures outlined in Tutorial 2.4a , Reinstalling a Known Driver in Device Manager , or Tutorial 2.4b, Letting Windows Select the Best Driver to Install . The procedures vary slightly with different versions of Windows.
| Note |
The one place where all or almost all drivers can be accessed is Device Manager. There are many ways to get to Device Manager, not all of which can be used on every computer, depending on Windows version or configuration. A few methods are described in Tutorial 2.3. If none of these
|
Tutorial 2.3: Accessing Device Manager
|
|
Windows 9x: Right-click the My Computer icon on the desktop and select Properties from the pop-up menu that appears. Click the Device Manager tab.
Windows 2000 and XP: Right-click the My Computer icon on the desktop and select Properties from the pop-up menu that appears. Click the Hardware tab, and then the Device Manager button. In XP, you might be able to right-click My Computer in the Start menu to view the pop-up menu.
All versions: You can access Device Manager through the System applet in Control Panel. See Tutorial 2.1 for instructions for opening Control Panel.
|
|
| Note |
Some computer
|
Tutorial 2.4A: Reinstalling a Known Driver in Device Manager
|
|
Follow the appropriate procedure described in Tutorial 2.2 to access Device Manager.
In Device Manager, click the "+" sign
Double-click the name of the device. The device's Properties page appears.
Click the Driver tab. The driver page appears. You will have various options here, depending on the Windows version.
Click the Update Driver button. You'll be prompted to search for a suitable driver or to select a driver from a list, except in XP, which will prompt you to install a driver automatically or to select from a list. If you have a driver disk, insert it now.
Follow the instructions for your system:
Windows 9x and 2000: Select the "Display a list..." or "No. Select driver from list" option button and click Next.
Windows XP: Select the "Don't Search..." option button and click Next.
A list of drivers might appear in the window.
The existing driver usually appears first in this list. If you want to reinstall it, click Next and follow the remaining prompts. If you have inserted a disk, or know where you can find the driver on the hard drive, click Have Disk.
If you know the path to the driver, enter it in the text box. To browse for the driver, click Browse, and then locate the driver. In case the driver is on your desktop, know that the default path to the desktop in Windows 9x is C:\Windows\Desktop. In Windows 2000 and XP, the default path is C:\Documents and Settings\[logged-on username]\Desktop. Once you find the file, its name should appear in the text box. Note that only a file with the extension ".inf" will be
Click OK and follow the remaining prompts.
|
|
If you get warning messages, consider them
Tutorial 2.4B: Letting Windows Select the Best Driver to Install
|
|
Follow Steps 1 through 5 of Tutorial 2.4a.
In the Update Device Driver wizard that appears, select the option button appropriate for your version:
Windows 95/98: Select the "Yes (Recommended)" option button that answers the question, "Do you want Windows to search for the driver?"
Windows Me: Select the "Automatically search for a better driver (Recommended)" option button.
Windows 2000: After clicking Next, select the "Search for a suitable driver for my device (Recommended)" option button.
Windows XP: Click the "Install the software automatically (Recommended)" option button.
Then, click Next.
Windows 9x and XP start the search at this point. If Windows doesn't find a driver, it prompts you to search in other locations. Windows 2000 allows you to specify a location here. If you don't, it will search the hard drive only.
If you haven't inserted a disk and Windows has found a driver it says will work, follow the prompts to install that driver. If you have inserted a disk, or Windows hasn't located a suitable driver, and you know where the driver is, browse or otherwise specify the location of the file. Then, follow the prompts to install or not install the driver.
|
|
| Note |
If Windows warns you that a driver might not be suitable for your hardware, don't attempt to install it. However, Windows might give you a message that says that the driver is not digitally signed. While a driver with a digital signature will almost
|
If using one of these methods doesn't solve the problem, the next step is to uninstall the device and then reinstall. The procedure is similar to that in Tutorial 2.4a. In Windows 9x, select the device in Device Manager and click the Remove button. Follow any prompts you see, and then click the Refresh button. In 2000 and XP, right-click the device and click Uninstall from the pop-up menu. Then, close Device Manager. The Hardware tab of the System applet should be visible. Click the Hardware Wizard button and go through the wizard. Follow all the prompts. Then, run Add/Remove Hardware in Control Panel and install the driver following the directions in Tutorial 2.4a.
The last thing to try before suspecting bad hardware is to uninstall the device following the methods just mentioned. Then, restart the computer. Windows should recognize the device as newly installed and start the process to install the driver. If you have an installation program disk, cancel the Windows installation and run the installation program after the computer has finished rebooting.
If you have tried all of these things and the device still doesn't work, there is a good chance that the device is broken. Uninstall the device again, only this time, shut down the computer and physically remove the device. If you have a similar device handy that you know is good, you might want to try to install it. If the newly installed device works, that is more evidence that the previously installed device is defective. Then, obtain a permanent replacement device and install as directed. For more information on installing devices, see the chapter in this book appropriate to the device you want to install.
In case there is a new problem with the computer after the installation of a new driver, Windows XP gives you the option of "rolling back the driver." Double-click the device name in Device Manager and click the Rollback Driver button on the property sheet. The previous driver will be reinstalled.
| Note |
Occasionally Windows will automatically select the wrong driver for the OS. For example, one customer
|
Computer technicians often
On the CD
There are some standard locations to find drivers. The first place to look is the Web site of the device manufacturer. See the Industry Contacts document on the
Another good source for drivers is Windows itself. For example, an old printer might come with drivers only for 9x and previous versions. If you need that printer to work with 2000 or XP, run the Add Printer Wizard in the Printers folder (see Tutorial 2.2 for instructions on accessing the Printers folder). If Windows doesn't install the device automatically, you will eventually be able to reach a page allow- ing you to select the device manufacturer and model name/number. Sometimes, you'll need to insert the Windows disc in the drive for Windows to use this driver, unless you browse for the appropriate files. In Windows 9x, these are often in C:\Windows\Options\Cabs. A driver for a close model number might or might not work with your hardware. For example, an HP DeskJet 660 driver will work with an HP DeskJet 672C printer.
This procedure isn't limited to printers. Run the Add Hardware Wizard (or equivalent) from Control Panel to install other types of devices in the same way.
Microsoft also keeps a huge selection of drivers. If you search Microsoft.com for "drivers," you'll get a wealth of pages where you can find drivers, including third-party companies that sell drivers.
When you download drivers, there are different types of files you can download. Some downloads are compressed files in .zip form, requiring you to have a program such as WinZip ( winzip.com ) or Stuffit Expander (free from aladdinsys.com ) to expand. More common is the executable file. These files have the .exe extension and must be run, usually by double-clicking the icon. These come in two types: the setup program and the self-extracting zip file. If the file is a setup program, once executed, usually by double-clicking the icon, it will immediately start the process of installing the device driver and perhaps the operating program. If it is a self-extracting zip file using WinZip, you'll see a text box displaying the destination path of the extracted files. Figure 2.11 shows this process. Change the path to a folder that you can easily locate, such as the desktop. Note that you do not need to have WinZip to extract the files from this type of file—a dedicated WinZip program is part of the file.
Figure 2.11:
A WinZip self-extracting file.
Occasionally, you'll run a self-extracting file and see a command prompt or MS-DOS prompt window. To be able to locate the extracted files after extraction, create a new folder and put the self-extracting file in this folder before running it. The extracted folders and files will be placed in the new folder as well.
Often when you download files from a self-extracting file, you'll see folders
If you searched everywhere else for a driver but had no luck, there is one more place to try: the chipset manufacturer. A chipset is the set of integrated circuits used on a particular device, and is often made by a manufacturer other than the device manufacturer. Look at the device and try to read the name and
Locating the chipset manufacturer and model number is no guarantee that the manufacturer's Web site will have a driver, and if it does, that the driver will work with your device—but it's certainly worth a try.
When you look in Device Manager, you might sometimes see a yellow question mark or exclamation point, or a red "x" next to a device listing (see Figure 2.12). The red "x" or yellow exclamation point indicates a resource conflict (discussed later in this section), a problem with the device and/or its driver, or that the device has been disabled in Device Manager. The yellow question mark indicates that Windows has detected a newly installed device but cannot determine the nature of that device. Use the procedures described earlier in this section to diagnose and remedy the problem.
Figure 2.12:
Device Manager indicating
| Tip |
If you see the "This device is working properly" comment on a device's property page, don't count on it. The device might or might not be working properly. However, a comment
|
Every device uses some of the computer's resources. Resources , in Device Manager, are computer functions that allow devices to operate. More than one device attempting to access the same resource at the same time is called a resource conflict , which we discuss later in this section.
There are four types of resources in Device Manager:
IRQ or IRQL (Interrupt ReQuest Line):
For a device to operate, it has to "interrupt" whatever the processor is doing to get the processor to do its part in performing the task. An
IRQ
is a channel for the device to use to interrupt the processor. There are a limited number of IRQs built into the motherboard. Each device must be assigned an IRQ on installation to do its job. If more than one device attempts to access the same IRQ at the same time, the computer will
lock up
(freeze and have to be powered down and restarted) because of this resource conflict. This is a rare occurrence with Plug and Play, but it can happen with certain old expansion cards. Older versions of Windows didn't do as good a job preventing resource conflicts as
Figure 2.13:
Jumpers and microswitches.
Figure 2.14:
Device Manager IRQ View in newer computer.
For many years, usable IRQs were limited to 14, numbered 00 through 15, but with 02 and 09 not available. After all the usual devices were added to the required system devices, very few free IRQs were left. Only recently has the number of IRQs been increased to 24 (see Figure 2.14). Considering the capabilities of the USB and IEEE 1394 (FireWire) interfaces, which can accept a practically limitless number of devices, 24 IRQs should be all a PC will ever need.
Input/Output Address (I/O Address):
Every device on a computer needs an address just as every building in a city needs an address. These addresses help locate the devices on a computer, and
Memory Addresses:
Memory Addresses are a way to specify the exact location in the system's main memory that a device
Direct Memory Access (DMA) Channels: Direct Memory Access is a system that allows a device to access memory directly without having the processor manage that memory access. Despite the fact that this saves processing power, this is not widely used, and each computer needs only a few DMA channels, one of which is used by the DMA controller itself. On many systems, only the floppy controller uses DMA, so DMA channel conflicts are rare. However, any hardware that does support DMA should be configured to use it.
Any time two or more devices are assigned the same resource without being managed by Windows' IRQ sharing, there is a resource conflict. If the devices attempt to access the same resource at the same time, a
Reconnect the power, if disconnected, and restart the computer. To avoid another lockup, go into Safe Mode.
Safe Mode
is a mode of Windows in which only essential hardware is activated. This will allow you to resolve many problems with a greatly reduced risk of the computer locking up in the middle of your efforts. Follow the instructions in Tutorial 2.5a or b as
Tutorial 2.5a: Booting into Safe Mode in Windows 9x
|
|
As soon as the computer powers back on, press and hold the <F8> key. This should call up the Windows Startup menu. If this doesn't work, try pressing <F8> repeatedly, or
Enter the number for Safe Mode and press <Enter>. The computer should then boot into Safe Mode. In Windows 9x, ScanDisk will probably run to detect and repair errors on your hard drive that result from powering down the computer without shutting down Windows. Go ahead and wait for ScanDisk to run. If you don't have time, you can cancel ScanDisk and run it later—the sky won't fall.
|
|
If you
Tutorial 2.5b: Booting into Safe Mode in Windows 2000 and XP
|
|
After restarting power, watch for a black screen with the message "Starting Windows." Underneath will be a message that says, "For troubleshooting and advanced startup options for Windows ____, press F8." You'll have to press <F8> in the few seconds that the message appears. Once the progress bar starts, it is too late and you'll have to press <Ctrl> + <Alt> + <Delete> as described in Tutorial 2.5a to restart and try again. Some configurations cause systems not to show any of these messages. In this case, repeatedly press <F8> as soon as it starts to boot. Figure 2.15 shows the Windows Startup menu.
|
|
Figure 2.15:
Windows 2000 Startup menu.
Assuming you can successfully boot into Safe Mode, you can then open Device Manager and attempt to resolve the resource conflict. If you can't even boot into Safe Mode, see Chapter 11 for troubleshooting information. You can manually assign resources through Device Manager, but it's
Figure 2.16:
Changing resources manually.
|
IRQ |
Device |
I/O Address Range |
|---|---|---|
|
00 |
System timer |
0040 – 0043 |
|
01 |
Keyboard controller |
0060 and 0064 |
|
02 |
Unavailable |
----- |
|
03 |
COM 2 |
02F8 – 02FF |
|
03 |
COM 4 |
02E8 – 02EF |
|
04 |
COM 1 |
03F8 – 03FF |
|
04 |
COM 3 |
03E8 – 03EF |
|
07 |
LPT1 |
varies |
|
08 |
Real-Time Clock |
0070 – 0071 |
|
13 |
Numeric Data Processor |
00F0 – 00FF |
|
14 |
Primary IDE Controller |
01F0 – 01F7, 03F6 |
|
15 |
Secondary IDE Controller |
0170 – 0177, 0376 |
| Tip |
If you can't seem to get the resource conflict solved, check in the BIOS to make sure that PnP is enabled. Sometimes, PnP can be shut off spontaneously. |
As you can see, there aren't many other available IRQs, and some of the ones not listed might be taken by other devices. If you have taken an A+ course, you probably know that the COM port resource assignments are almost set in stone. However, there are not many devices that use COM ports 1 through 4 these days. Internal modems use internal COM ports, which we discuss in Chapter 8. Certain PDAs, UPSs, and external modems use COM ports, but some of these devices also use USB or other interfaces. Therefore, unless the user has and needs multiple COM ports, they could be disabled in Device Manager or in the BIOS, freeing up their resources. Some machines have multiple parallel (LPT) ports. These are good for many printers and scanners; however, most or all parallel port
If you still have resource conflicts, you can remove (uninstall) all Plug and Play devices with conflicts and reboot the computer. Depending on the Windows version, you might be asked to reboot after each device is recognized and reinstalled. Reboot as soon as you are prompted. You might have to try many different configurations until you eliminate all the conflicts.
| < Day Day Up > |