如何給linux(ubuntu)增加新的外接解析度
1.查詢你要的外接解析度尺寸,一般外接顯示器機身標籤有註明最佳解析度,也可通過購物網站查詢裝置資訊得到這個解析度
2.查詢當前顯示器輸出資訊
-------------------------------------terminal 輸入程式碼----------------------------------------------
xrandr
-------------------------------------terminal 輸入程式碼----------------------------------------------
-------------------------------------terminal 輸出資訊----------------------------------------------
Screen 0: minimum 320 x 200, current 3600 x 1080, maximum 8192 x 8192 LVDS-1 connected 1680x1050+1920+0 (normal left inverted right x axis y axis) 331mm x 207mm 1680x1050 60.56*+ 59.95 59.88 1600x1024 60.17 1400x1050 59.98 1280x1024 60.02 1440x900 59.89 1280x960 60.00 1360x768 59.80 59.96 1152x864 60.00 1024x768 60.04 60.00 960x720 60.00 928x696 60.05 896x672 60.01 960x600 60.00 960x540 59.99 800x600 60.00 60.32 56.25 Screen 0: minimum 320 x 200, current 3600 x 1080, maximum 8192 x 8192 LVDS-1 connected 1680x1050+1920+0 (normal left inverted right x axis y axis) 331mm x 207mm 1680x1050 60.56*+ 59.95 59.88 1600x1024 60.17 1400x1050 59.98 1280x1024 60.02 1440x900 59.89 1280x960 60.00 1360x768 59.80 59.96 1152x864 60.00 1024x768 60.04 60.00 960x720 60.00 928x696 60.05 896x672 60.01 960x600 60.00 960x540 59.99 800x600 60.00 60.32 56.25 840x525 60.01 59.88 800x512 60.17 700x525 59.98 640x512 60.02 720x450 59.89 640x480 60.00 59.94 680x384 59.80 59.96 576x432 60.06 512x384 60.00 400x300 60.32 56.34 320x240 60.05 VGA-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.00 800x600 60.32 56.25 848x480 60.00 640x480 59.94 1920x1080_60.00 59.96* DVI-D-1 disconnected (normal left inverted right x axis y axis) SVIDEO-1 unknown connection (normal left inverted right x axis y axis) 848x480 59.94 + 640x480 59.94 + 1024x768 59.94 800x600 59.94
840x525 60.01 59.88
800x512 60.17 700x525 59.98 640x512 60.02 720x450 59.89 640x480 60.00 59.94 680x384 59.80 59.96 576x432 60.06 512x384 60.00 400x300 60.32 56.34 320x240 60.05 VGA-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.00 800x600 60.32 56.25 848x480 60.00 640x480 59.94 1920x1080_60.00 59.96* DVI-D-1 disconnected (normal left inverted right x axis y axis) SVIDEO-1 unknown connection (normal left inverted right x axis y axis) 848x480 59.94 + 640x480 59.94 + 1024x768 59.94 800x600 59.94-------------------------------------terminal 輸出資訊----------------------------------------------
其中,像LVDS-1 VGA-1 DVI-D-1均代表不同顯示器輸出口的配置
像LVDS-1下面的
1680x1050 60.56*+ 59.95 59.88
代表解析度配置,左側的1680*1050即顯示器解析度 右側三個表示重新整理率,解析度中標了*在後面的,表示該分辨重新整理率為當前工作狀態
(這三個我也不是很清楚,可能是標稱重新整理率和實際重新整理率之類的引數,總之都在60左右,表示顯示器工作在60HZ水平,這個不影響我們接下來的配置,就不要糾結了,我的筆記本是老型號高分本,所以解析度很奇葩,請按你自己的筆記本工作解析度來區分顯示介面)
根據介面對應的當前工作解析度,就能分辨出需要修改的哪個顯示器介面,比如我的就是VGA-1,也有人的裝置會顯示為VGA-0,這個就按具體情況填寫。
3.查詢你要的解析度的對應輸出資訊
比如我要的外接顯示器解析度是1920*1080
-------------------------------------terminal 輸入程式碼----------------------------------------------
cvt 1920 1080
-------------------------------------terminal 輸入程式碼----------------------------------------------
-------------------------------------terminal 輸出資訊----------------------------------------------
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
-------------------------------------terminal 輸出資訊----------------------------------------------
其中輸出資訊的Modeline那行裡面的內容就是我們需要的該解析度的配置資訊
4.建立新解析度模式配置資訊
程式碼後面的解析度詳細配置照抄Modeline裡面的內容即可
-------------------------------------terminal 輸入程式碼----------------------------------------------
xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
-------------------------------------terminal 輸入程式碼----------------------------------------------
即建立了一個叫做”1920X1080_60.00“名稱的工作模式
5.將之前的建立的工作模式新增到對應介面
-------------------------------------terminal 輸入程式碼----------------------------------------------
xrandr --addmode VGA-1 "1920x1080_60.00"
-------------------------------------terminal 輸入程式碼----------------------------------------------
這樣就把我們之前建立的模式新增到VGA-1這個顯示器介面下,再去顯示器輸出裡面找到這個新建的解析度,應用即可。
為方便技術交流,本文可隨意轉載,無需標明文章出處!