ubuntu 手動修改分辨率為1920 X 1080 的兩種方式


方案一(臨時性,重啟會失效):

1、打開終端。輸入:cvt 1920 1080

出現有modeline 的提示。

2、使用 xrandr 創建新的 mode,--newmode 后面跟剛剛 cvt 產生的 modeline 后面的信息,如果去掉“_60.00”就可以在顯示器首選項中看到。

$ sudo xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

3、添加新的 mode,--addmode 后面第一個參數是 命令xrandr 顯示的列表中,目標輸出設備的名稱,

$sudo xrandr --addmode VGA-1 "1920x1080_60.00"

4、 將分辨率應用到指定的輸出設備

$ sudo xrandr --output  VGA-1 --mode "1920x1080_60.00"

 

方案二(永久性,重啟也不失效)

添加 /etc/X11/xorg.conf 文件,將此模式保存為默認分辨率。

1、$ sudo vim /etc/X11/xorg.conf(若沒有安裝vim,可以使用“sudo gedit /etc/X11/xorg.conf”)

粘貼以下內容:

Section "Monitor"

Identifier "Configured Monitor"

Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

Option "PreferredMode" "1920x1080_60.00"

EndSection

Section "Screen"

Identifier "Default Screen"

Monitor "Configured Monitor"

Device "Configured Video Device"

EndSection

Section "Device"

Identifier "Configured Video Device"

EndSection

2、保存。重啟后就變成1920x1080了。

若是沒有worg.conf文件,可以將上述內容保存為xorg.conf文件。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM