首先查看需要设置分辨率的配置信息,比如这里配置为1920x1080

在/etc/X11/xorg.conf.d目录下创建一个xorg.conf文件,该文件决定系统启动后默认的分辨率

在xorg.conf内填入需要的分辨率信息

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "Monitor Model"
        # 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
        Modeline "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes   "1920x1080_60.00"
        EndSubSection
EndSection

 

这样上电启动后默认分辨率就是1920x1080了。

 

Logo

惟楚有才,于斯为盛。欢迎来到长沙!!! 茶颜悦色、臭豆腐、CSDN和你一个都不能少~

更多推荐