linux系统分辨率文件,linux系统自定义分辨率
#打開終端輸入以下命令:
###1步驟
xrandr
輸出:
Virtual1 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
查看當前連接的顯示設備 Virtual1
###2步驟
gtf 800 480 60
輸出
# 800x480 @ 60.00 Hz (GTF) hsync: 29.82 kHz; pclk: 29.58 MHz
Modeline "800x480_60.00" 29.58 800 816 896 992 480 481 484 497 -HSync +Vsync
###3步驟
xrandr --newmode "800x480_60.00" 29.58 800 816 896 992 480 481 484 497 -HSync +Vsync
###4步驟
xrandr --addmode Virtual1 "800x480_60.00"
###5步驟
xrandr --output Virtual1 --mode "800x480_60.00"
###6步驟
//以下為持久化顯示模式
//1
編輯配置文件~/.config/monitors.xml來配置分辨率大小,但需要等到下一次重啟時才起效
no
???
0x0000
0x00000000
800
480
60
0
0
normal
no
no
yes
//2
sudo gedit /etc/X11/xorg.conf //打開(或新建)xorg.conf文件,初始系統沒有該文件,創建即可。
打開后,在文件中添加以下內容:
Section "Monitor"
Identifier "Configured Monitor"
Modeline "800x480_60.00" 29.58 800 816 896 992 480 481 484 497 -HSync +Vsync #來自命令gtf的輸出
Option "PreferredMode" "800x480_60.00" #模式名為"800x480_60.00"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection
Section "Device"
Identifier "Configured Video Device"
EndSection
完成,重啟,OK
總結
以上是生活随笔為你收集整理的linux系统分辨率文件,linux系统自定义分辨率的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MATLAB-单元数组
- 下一篇: 通过代码生成以太坊助记词、根据钱包地址获