Configuring graphics cards
From openSUSE
Contents |
Introduction
A driver is one of the most important aspects of communication between hardware peripherals and software. While there are many types of drivers, including those for audio and sound cards, as well as printers, this article focuses on graphics card drivers (sometimes referred to as video drivers). This specific driver is used to send commands and return information between the graphics card located on the motherboard, and OpenSUSE. Because hardware cannot interact on its own with software, the driver acts as a translator. For a more common example, think of two people standing in a conference room: one person speaks English and the other, German. While there is work that must be done, the two employees cannot communicate with each other, thus requiring a translator. Just as in the business situation, the communication process for the hardware is a two way process in which information is sent to the graphics card, and in return, information is sent from the graphics card to the operating system.
The last step of the process is sending the information to a display device, such as a monitor. Improper driver installation or failure to configure a video driver can cause display issues, and in some cases cause the GUI (Graphic User Interface) to not load. This lack of a working driver is one of the common issues that can cause X-Server errors, and may allow users only to use the CLI (Command Line Interface), which acts essentially as a terminal. Fortunately, the two major producers of graphics cards, Nvidia and ATI, both have supported packages for drivers. This process of installing the driver has been made even easier through the creation of 1-Click Installers for both packages. Once the driver has been installed, the last step is to configure the driver to work properly. Below is the walkthrough for the GUI version of the installation and configuration. For more information on configuration settings or on how to install and configure the drivers through the CLI, please refer to Further Information.
Download & Installation
Fortunately, the two most widely used graphics card, Nvidia and ATI, are both supported with 1-Click Installers. This makes the process much smoother and much more simple than compiling the drivers from scratch. The first step to install your drivers is to download the RPM package that corresponds to your graphics card. Below are the Nvidia and ATI Wiki pages, which contain the 1-Click Installers. Note that Nvidia supports 2 installers: one for normal cards and another for legacy card. Be sure to check if your graphics card is on the legacy card list. If you do not know the model of your graphics card, open a terminal window and issue the following command: su -c 'hwinfo --gfxcard'. Enter the root password when prompted and then refer to the model output.
| Version: Nvidia
| Download the Nvidia drivers for OpenSUSE |
| Version: ATI
| Download the ATI drivers for OpenSUSE |
Once you download the 1-Click Install that corresponds to your graphics card, the YaST Meta Package Handler will initialize your installation by default. If this process does not automatically start, open a file browser, such as Nautilus or Konqueror, right-click on the package, and then select Open with "YaST Meta Package Handler." With the Package Handler (Software Management menu item) started, YaST will walk you through the process of installing the repositories required and the package itself. This process is simple, but new users, understandably, may not be familiar with the concept of a 1-click installer. Once the package is opened in the Package Handler, simply complete the following steps:
- Read the description of the package
- Click the Next button to continue
- Click the Customise button
- Be sure that the repositories in the first list are checked
- Check the Remain subscribed to these repositories after installation box
- Be sure that the package(s) in the first list is checked
- Double check the Proposal page to be sure all the settings are correct
- Click the Next button
- Click the Yes button
- Enter your root password into the prompt
- Click the Finish button after the installation is complete
Configuration
Now that the driver is installed, completely reboot your system (logging out will not suffice). Wait for the system to reload and log back in as a normal user. Open a terminal window and issue the su and then your root password when prompted to become gain root permissions. Once you have the required permissions, enter the following command into your terminal window...
init 3
This command will close the X-Server and load the CLI (Command Line Interface). By doing this, all open windows will be closed and all unsaved data will be lost, so be sure you have saved everything you need to before issuing this command. Now that you are in the CLI, enter your username and password to login, and then issue su command and your root password to gain root permissions. Next, enter the following command...
sax2 -r
This will load SaX2 and configure your graphic and visual settings. Once access is granted to your screen, SaX2 will open a window that will present you with the options, such as resolution, 3D Acceleration (which is required to run desktop enhancement programs, such as Compiz-Fusion) and Dual Head Mode required to run multiple monitors on your system. For more information, refer to the SaX2 page. Once you have configured your settings correctly and to your liking, press the OK button on the bottom-right of the window, and then press the Save button in the exiting prompt. Now that SaX2 is configured, the changes made will take effect the next time the X-Server loads. Now we must exit the root permissions and change to run-level 5 (which will start the X-Server). If root permissions are not exited, then you will be logged in as a root user when X-Server loads. Both commands have been combined into a single command below. Enter the following into the terminal:
exit; init 5
This will change the run-level to 5 and load your X-Server (thus, the default desktop environment) and bring you to your desktop.
Further Information
For more information, please refer to the following topics:
- Installing through the CLI
- Adjusting monitor Settings
- 3D Acceleration information
- Dual head mode configuration
- General troubleshooting

