X [Xrandr] [ArchLinux] Manually adjust the display resolution

Source: Internet
Author: User

There are times when the computer does not correctly identify the maximum resolution of the monitor, which may be the reason for the software, the reason for the hardware, the cause of the display, the reason for the VGA line and other reasons.

I encountered the situation, is the boot time with VGA, it can be correctly identified. If you plug and unplug in the middle, you won't get the best resolution.

I am currently the best resolution of this monitor is 1920x1080, the resolution identified after the VGA has been broken is 1280x768.

In addition to the inability to set higher resolution in the KDE configuration, no higher resolution is detected in the XRANDR output

>Xrandr Screen0: Minimum8X8, current1366X1536, maximum32767X32767eDP1 connected Primary 1366x768+0+768(normal left inverted right x axis y axis) 310mm x 170mm 1366x76860.00*+ -0x720      60.001024x76860.001024x57660.00 the0x540       60.00 the0x600       60.32    56.25864x48660.00 -0x480       59.94 the0x405       60.00 the0x384       60.00 -0x360       60.00DP1 disconnected (normal left inverted right x axis y axis) DP2 connected 1024x768+ the+0(normal left inverted right x axis y axis) 480mm x 270mm 1024x76860.00* the0x600       60.32    56.25848x48060.00 -0x480       59.94HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y Axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis)

In order to not restart the computer, use the following method of hand with resolution.

Reference: Https://wiki.archlinux.org/index.php/xrandr#Adding_undetected_resolutions

The tool I will use is Xrandr. The steps are as follows:

1. Locate the correct parameters:

/home/tong/vm/kingkong-centos6.3[[email protected]] [ One: the]> CVT1920x1080  the# 1920x1080 59.96Hz (CVT2.07m9) HSync:67.16KHz; Pclk173.00Mhzmodeline"1920x1080_60.00"  173.00  1920x1080 2048 2248 2576   the 1083 1088 1120-hsync +vsync

The preferred way to find the right parameters is to look for it in/var/log/xorg.0.log, but I didn't find it, and the wiki provides the following:

[45.063] (II) Intel (0): Clock:241.5MHz Image Size:597X336mm[45.063] (II) Intel (0): h_active:2560H_sync:2600H_sync_end2632H_blank_end2720H_border:0[    45.063] (II) Intel (0): v_active:1440V_sync:1443V_sync_end1448V_blanking:1481V_border:0

2. Add the parameters obtained in step one to Xrandr.

/home/tong/vm/kingkong-centos6.3[[email protected]] [ One: $]> Xrandr--newmode"1920x1080_60.00"  173.00  1920x1080 2048 2248 2576   the 1083 1088 1120-hsync +VSync/home/tong/vm/kingkong-centos6.3[[email protected]] [ One: $]> Xrandr--addmode DP2 1920x1080_60.xx

If one goes well, look at the Xrandr command again, and you'll find the best resolution setting successful:

/home/tong/vm/kingkong-centos6.3[[email protected]] [ One: -]>Xrandr Screen0: Minimum8X8, current1366X1536, maximum32767X32767eDP1 connected Primary 1366x768+0+768(normal left inverted right x axis y axis) 310mm x 170mm 1366x76860.00*+ -0x720      60.001024x76860.001024x57660.00 the0x540       60.00 the0x600       60.32    56.25864x48660.00 -0x480       59.94 the0x405       60.00 the0x384       60.00 -0x360       60.00DP1 disconnected (normal left inverted right x axis y axis) DP2 connected 1024x768+107+0(normal left inverted right x axis y axis) 480mm x 270mm 1024x76860.00* the0x600       60.32    56.25848x48060.00 -0x480       59.941920x1080_60.xx  59.96HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis Y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis)

3. Adjust the display to use the new best resolution

/home/tong/vm/kingkong-centos6. 3 [[email protected]] [one:]> Xrandr--output DP2--mode 1920x1080_60. xx

No accident, the monitor should have obtained the correct display information. If there is an accident, please leave a message:)

X [Xrandr] [ArchLinux] Manually adjust the display resolution

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.