Adjust the screen offset and update rate in Linux

Source: Internet
Author: User
In Linux, adjust the display screen offset and update rate-Linux general technology-Linux technology and application information. The following is a detailed description. After installing the Linux operating system, some monitors may show an offset on the screen.

You can combine xvidtune and xorg. conf to solve the problem at one time. The steps are as follows:

1. Run on the terminal
# Xvidtune

Then there will be a graphic window for setting the display screen. Click the Auto button, and then click the Left, Right, Up, Down buttons to adjust the position of the screen, adjust to a satisfactory position and update rate.

Click Show. the following line appears on the terminal:
"1024x768" 94.50 1024 1088 1184 1376 768 769 772 + hsync + vsync

2. use vim to open/etc/X11/xorg. conf configuration file (this file will have different file names under different platforms, but it should all be under the/etc/X11/directory. My Debian Linux, X server is xorg, some releases are xfree86 ).

# Vim/etc/X11/xorg. conf // you must have the root permission to modify the configuration file.

Then you can find the following Section: (or the ModeLine line may not exist)
Section "Monitor"
Identifier "PHILIPS 107 T"
Option "DPMS"
Modeline "1024x768" 94.50 1024 1076 1172 1376 768 769 772 + hsync + vsync
EndSection

If there is a ModeLine line, add a # comment out this line at the beginning of this line. Then paste the line value obtained in step 1 into Section "Monitor" and start with ModeLine. Then press the Esc key and press ENTER wq to save the settings.

The following is the final result:
Section "Monitor"
Identifier "PHILIPS 107 T"
Option "DPMS"
# Modeline "1024x768" 94.50 1024 1076 1172 1376 768 769 772 808 + hsync + vsync

Modeline "1024x768" 94.50 1024 1088 1184 1376 768 769 772 + hsync + vsync
EndSection

However, for newer versions of X.org Releases and Releases later than Releases/7.0, the syntax of xorg. conf is somewhat changed. The result is as follows:

Section "Monitor"
Identifier "PHILIPS 107 T"
Option "DPMS"
HorizSync 30-71
VertRefresh 50-160
ModeLine "1024x768x85" 94.50 1024 1088 1192 1376 768 771 775-hsync + vsync
Option "PreferredMode" "1024x768x85"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation NV34 [GeForce FX 5200]"
Monitor "PHILIPS 107 TB"
DefaultDepth 24
SubSection "Display"
Modes "1024x768x85" "1024x768" "800x600"
EndSubSection
EndSection

3. Restart the instance and you will find that the result is the same as the adjusted satisfactory state in step 1.

In this way, you do not need to use xvidtune to manually adjust the screen position after each startup.
Related Article

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.