Reprint Ubuntu Custom Desktop Resolution

Source: Internet
Author: User

To modify a custom-sized desktop screen resolution on a ubuntu14.04 virtual machine, use the command: Cvt,xrandr

0. First look at the resolution settings that are currently available: Xrandr-q

[email protected]:/home/xxx/desktop# xrandr-q
Screen 0:minimum 1 x 1, 1504 x 768, maximum 8192 x 8192
Virtual1 Connected primary 1504x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
800x600 60.0 + 60.3
2560x1600 60.0
1920x1440 60.0
1856x1392 60.0
1792x1344 60.0
1920x1200 59.9
1600x1200 60.0
1680x1050 60.0
1400x1050 60.0
1280x1024 60.0
1440x900 59.9
1280x960 60.0
1360x768 60.0
1280x800 59.8
1152x864 75.0
1280x768 59.9
1024x768 60.0
640x480 59.9
1504x768_60.00 59.9*
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
VIRTUAL5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
VIRTUAL7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)

The red Part I marked, VIRTUAL1 device name, will be used later, maximum 8192 x 8192 maximum support resolution;

1, in the terminal input: CVT 1920 1080, shown as follows:

[email protected]:/home/xxx/desktop# CVT 1920 1080
# 1920x1080 59.96 Hz (CVT 2.07m9) hsync:67.16 kHz; pclk:173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920x1080 2048 2248 2576 1083 1088 1120-hsync +vsync

The red part is used in the--newmode command, and can be copied directly.

2, next through the--newmode 、--addmode 、--output command can be completed, as follows:

[email protected]:/home/xxx/desktop# xrandr--newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1 088 1120-hsync +vsync
[email protected]:/home/xxx/desktop# xrandr--addmode Virtual1 "1920x1080_60.00"
[email protected]:/home/xxx/desktop# xrandr--output Virtual1--mode "1920x1080_60.00"

At this point, the screen resolution has changed.

3. View by XRANDR-Q command:

Xrandr-q
Screen 0:minimum 1 x 1, current 1920x1080 x, maximum 8192 x 8192
Virtual1 Connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
800x600 60.0 + 60.3
2560x1600 60.0
1920x1440 60.0
1856x1392 60.0
1792x1344 60.0
1920x1200 59.9
1600x1200 60.0
1680x1050 60.0
1400x1050 60.0
1280x1024 60.0
1440x900 59.9
1280x960 60.0
1360x768 60.0
1280x800 59.8
1152x864 75.0
1280x768 59.9
1024x768 60.0
640x480 59.9
1504x768_60.00 59.9
1920x1080_60.00 60.0*
Virtual2 disconnected (normal left inverted right x axis y axis)
Virtual3 disconnected (normal left inverted right x axis y axis)
Virtual4 disconnected (normal left inverted right x axis y axis)
VIRTUAL5 disconnected (normal left inverted right x axis y axis)
Virtual6 disconnected (normal left inverted right x axis y axis)
VIRTUAL7 disconnected (normal left inverted right x axis y axis)
Virtual8 disconnected (normal left inverted right x axis y axis)

The red part is the resolution I added, and the addition of 1504x768 is omitted.

4. If you want to set your custom screen resolution to be permanent, append the following to the ~/.profile file:

Vim ~/.profile

CVT 1920 1080

Xrandr--newmode "1920x1080_60.00" 173.00 1920x1080 2048 2248 2576 1083 1088 1120-hsync +vsync

Xrandr--addmode Virtual1 "1920x1080_60.00"

Xrandr--output Virtual1--mode "1920x1080_60.00"

: x save to exit.

Reprint Ubuntu Custom Desktop 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.