Reconfiguring X Windows

Introduction

Caldera OpenLinux's installation program is able to automatically detect most graphics cards and monitors, and in most cases will correctly setup X Windows during installation. However, there are still occasions when it may be necessary to manually reconfigure X Windows:

Configuring X Windows means configuring one file: XF86Config. This file resides in the /etc directory, and can of course be manually edited, either at the command line or within KDE. However, there are three programs that are designed to keep manual editing at bay: lizardx, XF86Setup and xf86config.

 

 

 

Checking Resources

Before starting, make sure you have the following information. It may be in your computer documentation. If you are running a dual operating system machine, the information (with the possible exception of the last item) is easily obtained from within Windows--see Chapter Two, Quick Install.

lizardx

This is the graphical X Window System setup tool used during the Lizard installation routine. This program has a number of advantages:

This program can be run in several ways: from a console, if the X server is not yet configured, from a virtual terminal within KDE, or from COAS within KDE--the last two options being suitable for X reconfiguration. Unfortunately, this program also has one disadvantage: if you were unable to use one of the graphical installation modes, it is not certain that you will be able to run this program directly after startup.

To try it out, at any terminal type:

lizardx

and press the Enter key. The program presents you with a number of configuration screens. This first is the Set Up Mouse screen, similar to the screen seen during the OpenLinux installation program. The next is Select Keyboard Type--also similar to the corressponding screen at installation.

The next screen, Select Video Card (See lizardx's Select Video Card Screen), may not have been seen during installation. A pull down menu lets you select your video card type (if it is not already correctly configured), and also the amount of video RAM on the system. If you have doubts about the accuracy of the configuration, you can press the Probe button--although this does run the risk of `hanging' your system.

 

 

 

lizardx's Select Video Card Screen

The next screen may also be new: Select Monitor. Either select yours from the database, or, if you cannot find it, select a generic model with the same or very similar specifications, including, if possible, the horizonal and vertical sync ranges.

 

The Select Monitor Screen

The Select Mode screen should have been presented during the installation. If you are having trouble reaching a satisfactory X Window configuration, it is a good idea to choose No Virtual Desktop, and a modest color and screen resolution. You can test the modes without having to exit the program and restart it; if the screen should freeze, try to shutdown the X server by pressing Ctrl + Alt + Backspace.

XF86Setup

Like lizardx, this program is most useful if you already have a working X server, but need to fine tune it. XF86Setup is an older program than lizardx, but may still be worth a try if for some reason lizardx will not work satisfactorily.

  1. Start XF86Setup at the command line by typing:

XF86Setup

and pressing the Enter key. Make sure to accurately type both the upper and lower case letters--Linux is case-sensitive.

  1. You will first be asked if you want to use the existing XF86Config file for defaults. If your current system is working at all, select Yes. If it is not, select No.
  2. Press Enter twice to try to achieve graphics mode. If you succeed, then this program will probably work for you. If you do not, then press Ctrl + Alt + Backspace to restore the command line, and skip ahead to the xf86config section.

If you succeed in starting XF86Setup, you will see the Introduction screen, See XF86Setup's Introduction Screen.

 

 

 

 

XF86Setup's Introduction Screen

Navigation, until your mouse is working, can be challenging. Use your tab key to highlight the Mouse tab at the top of the screen, and use your space bar to select. Find your mouse type in the mouse window (See The Mouse Screen in XF86Setup), make sure the correct device is selected, then navigate to the Apply button at the lower right of the screen, and press the space bar. Your mouse should now work, making the rest of the configuration much simpler.

The keyboard selection screen is self-explanatory. The Card screen, reached by clicking the Card tab, is where the serious business of configuration begins.

First, click the Card List button, and choose your graphics adapter card from the list (See The Card List screen in XF86Setup). Use the vertical scrollbar on the right to move up or down. Once you have selected your card, click the Detailed Setup button in the lower right. It will return you to the previous screen.

 

The Mouse Screen in XF86Setup

 

The Card List screen in XF86Setup

The program will automatically choose the correct server for you--the X Windows program designed for your graphics card. If for some reason it is not on the system, XF86Setup will tell you in a warning message at the bottom of the screen. Before moving on, make sure to check how much video memory there is on your system, and then select the Monitor tab at the top of the screen

In the Monitor screen (See The Monitor Screen in XF86Setup), either type in the horizontal and vertical sync rates, or choose in the box a description which fits your model's resolution.

 

The Monitor Screen in XF86Setup

Click the Modeselection tab. In this screen choose your monitor's resolution and color depth--you can choose more than one resolution if you wish. When finished, click the Done button at the bottom of the screen, then the Okay button, and finally the Save the Configuration and Exit button.

Try it out by typing kde at the command line, and pressing the Enter key. If it doesn't work, try it again, checking all your settings and including more than one monitor resolution. Try also choosing a color depth lower than your standard.

If nothing works, there is still hope. You can try the xf86config program.

xf86config

The only difference in appearance between this program's name, and the file it configures, is case. The configurator is all lower case, the configuration file a mixture of upper and lower--XF86Config.

xf86config is a text-based configurator, needing neither graphics nor even a mouse to run. It is completely keyboard oriented. Due to the improvements in the Caldera OpenLinux installation routine, this program is needed less and less. But in the increasingly rare cases when all else fails, it is still possible to produce a very workable XF86Config file with this xf86config.

  1. Start the program at the command line by typing:

xf86config

and pressing the Enter key. Make sure to accurately type all lower case letters--Linux is case-sensitive.

  1. Press Enter to leave the introduction screen.
  2. Enter the number corresponding to your mouse type.
  3. Enter `y' to enable 3 button emulation, if you have a two button mouse.
  4. Just press the Enter key to accept the default mouse device.
  5. Enter `y' to accept XKB.
  6. Press Enter to leave the keymap introduction screen.
  7. Type in the number corresponding to your keyboard type.
  8. Press Enter to leave the monitor sync range introduction screen.
  9. Type in the number corresponding to your monitor type and sync range.
  10. Type in the number corresponding to the vertical sync range of your monitor.
  11. The next three entries, for your monitor identifier, vendor and model, are optional. They will not affect the configuration; they will make the configuration file more explanatory and easier to read if you wind up editing it by hand.

Either fill in the requested information, or simply press Enter for these three entries.

  1. When asked if you want to look at the card database, type `y' and press the Enter key.
  2. To scroll down to find your graphics adapter card, simply press Enter. When you do find it, type in the number in the left column corresponding to your card.
  3. Make a note of the information provided and go on to the next screen.
  4. Type in `5' to choose the server recommended by the xf86config program.
  5. Enter `y' to set the symbolic link.
  6. Either enter the number corresponding to the amount of video memory your system has, or type in the correct amount.
  7. This is similar to step number 12, above. Press the Enter key three times to accept the default identifiers for the adapter card.
  8. Refer to the information on clock chips given you in step 15, above. Either enter the number corresponding to the correct clockchip line, or just press the Enter key.
  9. Press either `y' or `no', depending on the advice given.

The following screen (See List of Available Modes in xf86config), gives you a list of monitor resolutions and color depths (modes). There are two approaches to take here.

 

List of Available Modes in xf86config
  • You can accept the list as is, and possibly be faced with cycling through several different modes every time you start KDE, to find the optimal setting.
  • You can edit the list, line by line, to try to eliminate the less optimal modes.

The second option is the best, if you are sure of your card's and monitor's capability. If you choose to edit the list, you will be given a list of resolutions for each color depth. If you want, you can select several resolutions for each depth. You will also be given the choice of having a `virtual screen' that is larger than the physical screen. At least until you feel ready to experiment, enter `n' for No.

  1. When you are finished with mode selection, enter 5 to continue.
  2. Enter `y' to write the new configuration file.

Now try the new configuration out by starting KDE. If the results are not what you expect, try cycling resolutions by pressing the Ctrl + Alt + Keypad-Plus and Keypad-Minus keys. If nothing works, refer to the X Server section of Chapter Fourteen, Troubleshooting Problems, and Chapter Fifteen, Getting Technical Support.