Effective use of XFConfig in Linux-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Because Linux and windows have different inherent principles in graphic display, the Linux kernel does not control graphical display. It uses an application called X server to display graphical interfaces, it is a user-state behavior, while a windows microkernel is called a GDI (graphical device interface) subsystem, which controls the display of graphical interfaces in the core state. Therefore, when using Linux, do not complain that the graphic display of Linux cannot be as free as that of windows, although the Linux version publishers have done their best in this regard.
To use the graphical interface, you must correctly configure a configuration file named XF86Config (the redhat version is called the XF86Config-4), which is generally located in the/etc/X11 directory. In the actual process, X server uses parameters in XF86Config to display images. XF86Config is not easy to understand. Therefore, each Linux release kit has a simple and easy-to-use configuration tool (the names of different versions are slightly different. You can refer to the relevant instructions, you can easily configure XFConfig to use the GUI normally.
But now the problem is that, after configuring the tool, this problem often occurs, or the graphical interface does not appear, or the graphic display effect is poor, the character is too large or too small, the screen is blurred, refreshing is too low. Check the instruction document and reconfigure it several times. The problem is still the case. It is a headache that high-end graphics cards and LCD monitors cannot be used.
In fact, we can do more effective work, directly operate the configuration file XFConfig, do not be afraid, just modify a little bit of content, do not need advanced knowledge, do not burn your baby monitor. VI editor is always used.
Step 1: You need to know your video card information. You don't know the specific chip type (let's use the powerful 2.4 kernel or the increasingly powerful X Server probe !), But at least you need to know the video memory (because the principle of low usage during hardware testing is not accurate); and, you need to know the maximum resolution and maximum update rate supported by your monitor. Remember, you must be clear. Otherwise, burning the monitor won't depend on me!
Step 2: Use the configuration tool that comes with Linux to configure it again (you don't need to talk about the specific configuration process !). The purpose of this step is: if the display is normal and the display effect is as expected, you don't need to talk nonsense. If the graphic interface cannot be displayed normally, it means that we get a configuration file that cannot be used normally. Although this configuration file cannot be used normally, it still contains all information about the video card (device), monitor (montior), and screen, the reason for the failure is that some parameters cannot drive the video card and display correctly.
Step 3: You must modify the parameters so that some parameters cannot be displayed normally. The parameters we want to modify here are similar to those for windows, including "Desktop color (Depth)", "desktop resolution (Modes)", and "Vertrefresh. I will not talk about the specific meanings of the above three parameters here.
Use VI to open XFConfig. If you have a rough look at the three screens, you will not be able to understand the content at all. You don't have to worry about it. Although there are a lot of content, there is not much actually working (most of the lines are annotated with #), and you need to make fewer changes, only the three mentioned above. Find its location: VertRefresh in the Monitor field; DefaultDepth in the Screen field; Depth in the Display subfield.
Simple Description: VertRefresh, the update rate, but here is a range, unlike windows, you can set a specific value; Modes, is the resolution; DefaultDepth is the default desktop color.
Here, you probably already think about it. Needless to say, I know.
By the way, you are going to change DefaultDepth, Modes, VertRefresh, and "change" to the default desktop color, resolution, and update rate.
However, there are two things to remind you.
VertRefresh parameter. When the X server is working, one of the values is automatically used within the set range based on the resolution and Desktop color, if you have a table about the resolution, Desktop color, and update rate of your monitor, you can simply change the content in the table. If you don't have one, you have to try it out in a stupid way, note that you only need to change the lower limit value without changing the upper limit value. This ensures that your monitor will not be burned down. In my experience, the graphic interface can be successfully displayed after a maximum of two changes.
Modes and Depth parameters. Note that if the Screen field of the configuration file does not contain the Modes row corresponding to Depth and Depth, you can follow the format of the existing Depth row and Modes row in the file, add these two parameter rows. Of course you want to use the data in the graphic interface.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service