GTF to adjust resolution problems in Linux systems

Source: Internet
Author: User
Tags config

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

System-config-display-1.0.29-1

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*

Call Method:

[Beinan@localhost ~]# System-config-display

Or

[Beinan@localhost ~]#/usr/bin/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

Modeline "1024x768_85.00"

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.

section "Monitor"

Identifier "Monitor0"

VendorName "Monitor Vendor"

ModelName "LCD Panel 1280x1024"

Horizsync 31.5-67.0

Vertrefresh 50.0-75.0

Option "DPMS"

Modeline "1024x768_85.00"

94.39 1024 1088 1200 1376 768 769 772 807

-hsync +vsync

Endsection

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).

[Beinan@localhost ~]$/usr/x11r6/bin/xdpyinfo

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

Screen #0:

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 '

Identifier "Screen0"

Device "Videocard0"

Monitor "Monitor0"

Defaultdepth 24

Subsection "Display"

Viewport 0 0

Depth 16

Modes "800x600" "640x480"

Endsubsection

Subsection "Display"

Viewport 0 0

Depth 24

Modes "1280x1024" "1152x864" "1152x768"

"1024x768" "800x600" "640x480"

Endsubsection

Endsection

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.

Subsection "Display"

Viewport 0 0

Depth 16

Modes "800x600" "640x480"

Endsubsection

If we only change the 24 of Defaultdepth 24 to 16 o'clock, this paragraph will work.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.