zoukankan      html  css  js  c++  java
  • 【Tools】linux更改分辨率,解决虚拟机安装后太小的问题

    Linux更改屏幕分辨率

    1,分辨率模式已存在

    1)如何查询是否存在:

    终端输入命令:xrandr,即会输出当前已存在的分辨率模式。

    2)如何配置:

    使用命令xrandr --output 显示器名称 --mode 模式名称

    如:

    xrandr --output Virtual1 --mode "1440x900"


    2,分辨率模式不存在

    总体操作流程如下:

    1)使用ctv或gtf命令计算mode line参数;

    2)使用xrandr --newmode 新建一个模式;

    3)使用xrandr --add添加一个模式到指定的显示器;

    4)使用xrandr -s 设置指定显示器的分辨率;

    5)持久化模式与设置,即设置参数重启后有效。


     

    永久更改:

    sudo vi /etc/X11/xorg.conf    //打开(或新建)xorg.conf文件,初始系统没有该文件,创建即可。

    打开后,在文件中添加以下内容:

     1 Section "Monitor"
     2     Identifier "Configured Monitor"
     3     Modeline "1600x900_60.00"  119.00  1600 1696 1864 2128  900 901 904 932  -HSync +Vsync    #来自命令gtf的输出
     4     Option "PreferredMode" "1600x900_60.00"    #模式名为"1600x900_60.00"
     5 EndSection
     6 
     7 
     8 Section "Screen"
     9     Identifier "Default Screen"
    10     Monitor "Configured Monitor"
    11     Device "Configured Video Device"
    12 EndSection
    13 
    14 
    15 Section "Device"
    16     Identifier "Configured Video Device"
    17 EndSection
    xorg.conf
  • 相关阅读:
    hrbust 1840 (树状数组第k大) 删点使用
    20150211--Smarty2-02
    20150211--Smarty2-01
    20150210--Smarty1-02
    20150210--Smarty1-01
    20150209--JS巩固与加强6-02
    20150209--JS巩固与加强6-01
    20150207--JS巩固与加强5
    20150206--JS巩固与加强4-02
    20150206--JS巩固与加强4
  • 原文地址:https://www.cnblogs.com/liu66blog/p/8399302.html
Copyright © 2011-2022 走看看