When we use the Linux desktop environment, sometimes the screen is offset or resolution is too low, there are two solutions, one is to install the display card to drive, another way is through the XORG-X11 package provided by the tool GTF to adjust.
Management tools for display settings
In Fedora, the display and display card Configuration tool is System-config-display, exists in the package System-config-display, if you do not have this command or cannot find the tool on the menu, you can install it yourself.
[Beinan@localhost ~]# rpm-q System-config-display
Without the above prompts, you can install the software through the Package management tool system-config-packages. Or find this package installation from the disc image.
[Beinan@localhost ~]# RPM-IVH system-config-display*
[Beinan@localhost ~]# System-config-display
This tool is relatively simple, we can configure it according to the configuration of our own machine. It is noteworthy that if you use a liquid crystal display, you must choose the LCD.
Second, the display card driver
The driver of the display card can provide more powerful functions, such as supporting 3D functions. In addition, the resolution of the screen, and so on, are related to the display card is driven. The driver for the display card does not support 3D when the system is installed by default. We need to have a display card driver to support the system.
Unfortunately, not all of the display cards have the official Unix-like system drivers, it seems that the NVIDIA display card official support is stronger. The ATI partial display card can obtain the official support, according to AIT's official instruction document to know, the display card version must be above 8500 only then the official drive is usable.
If you are using Fedora Core 4.0, you should upgrade the display card driver online, please refer to "Apt+synaptic for Fedora Core 4.0 installed Nvida chip display card and ATI card display driver".
We can use the official Display Card graphics adjustment tool to adjust the display properties. Very simple, dot mouse finish, and windows like. After installing ATI and NVIDIA drivers, there is a graphical configuration tool on the menu, look for yourself.
If you are using Intel 855 as a display card, refer to the Intel set in Graphics resolution adjustment tool 855resolution
Third, non-Nvidia and ATI display cards or desktop display issues not supported by ATI manufacturers
If you pass System-config-display does not solve your display problems, such as screen offset, resolution does not go. We can use the GTF tool to try.
1, GTF tool from which package.
GTF is from package xorg-x11, in general, if you have a desktop environment installed, you have this tool. Most of the systems are installed by default.
2, what is GTF.
Gtf-calculate VESA GTF Mode Lines The Chinese meaning is to compute the display device VESA drive GTF mode command-line tool.
What is GTF?GTF (generalized timing formula), general program time, defines the time required to produce the screen, including such as screen refresh rate, and GTF is also an industrial standard for display equipment. The screen size can be automatically adjusted by GTF.
We calculate the screen size and resolution of the monitor through the GTF tool, and then we insert the computed value into the xorg.conf configuration file to achieve the automatic adjustment of the display size, location and resolution of the screen.
3, the use of GTF.
GTF h-resolution v-resolution Refresh
[-v|--verbose] [-f|--fbmode] [-x|--xorgmode]
For example: My monitor supports 1024x768 and can reach 85HZ, in x mode.
[Beinan@localhost ~]#/USR/X11R6/BIN/GTF 1024 768 85-x
# 1024x768 @ 85.00 Hz (GTF) hsync:68.60 kHz; pclk:94.39 MHz
94.39 1024 1088 1200 1376 768 769 772 807-hsync +vsync
Insert the Modeline line of the output above into the display (monitor) configuration section of the/etc/x11/xorg.conf configuration file. Joined after similar.
VendorName "Monitor Vendor"
ModelName "LCD Panel 1280x1024"
94.39 1024 1088 1200 1376 768 769 772 807
After the change, restart X. Re-enter desktop mode.
4, Xdpyinfo tools.
We have adjusted the properties of the display through the GTF tool, and we know by observation that it is feasible. For example, the screen does not flicker too much. The display area is in the middle of the display screen. But we also have a test tool xdpyinfo to test our adjustments.
Xdpyinfo-display Information Utility for X (the Display Information test tool for X).
Through this output, we can look up a lot of information, the most important is the following paragraph.
Default Screen number:0
Number of Screens:1
dimensions:1024x768 pixels (302x232 millimeters)
resolution:86x84 dots per inch
Depths (7): 24, 1, 4, 8, 15, 16, 32
Root window id:0x3f
Depth of root window:24 planes
We can define multiple display screens, such as 1024x768;800x600, in xorg.conf. The display's defined symbol sequence starts at 0, and so on. In fact, a good definition is enough. The default general is OK. If we adjust ourselves, add 1024x768 similar to the Modes line in screen with deep 24. Then set the default color depth to 24.
Section ' Screen '
Viewport 0 0
Modes "800x600" "640x480"
Viewport 0 0
Modes "1280x1024" "1152x864" "1152x768"
"1024x768" "800x600" "640x480"
In fact, the above paragraph, we can take the color deep 16 of the deletion or the following section of each line preceded by a # note. Because we're using 24.
Viewport 0 0
Modes "800x600" "640x480"
If we only change the 24 of Defaultdepth 24 to 16 o'clock, this paragraph will work.