opensuse 11.3 調整顯示器預設解析度

來源:互聯網
上載者:User

opensuse 11.3裡取消了在以前版本裡調整X下顯示器解析度很方便的sax2,使有些顯示器會自動調整到不是使用者所希望的顯示解析度,對於這個問題可以用以下步驟解決:

 

假設顯示器應該可以在1280X1024下工作,但現在卻在1024X768下工作

 

(1)  在終端中進入root使用者模式,輸入命令:

#cvt 1280 1024 60

 

 在終端中建立個新的modeline,輸出結果為:

 

 Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync

 

(2) 輸入命令添加新的顯示模式:

#xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync

 

(3) 輸入命令擷取當前顯示器的系統命名:

#xrandr

 

輸出:

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.0*
800x600 60.3 56.2
848x480 60.0
640x480 59.9 59.9
1280x1024_60.00 (0xec) 109.0MHz
h: width 1280 start 1368 end 1496 total 1712 skew 0 clock 63.7KHz
v: height 1024 start 1027 end 1034 total 1063 clock 59.9Hz

 

由此猜測顯示器的系統命名為VGA1

 

(4) 再執行如下2條命令:
# xrandr --addmode VGA1 "1280x1024_60.00"
# xrandr --output VGA1 --mode "1280x1024_60.00"

 

在第二條命令完成後系統會自動切換到所建立的新顯示模式1280x1024下

 

(5) 把新的MODELINE添加到檔案 /etc/X11/xorg.conf.d/50-monitor.conf中,如下:

Section "Monitor"
Identifier "Default Monitor"

## If your monitor doesn't support DDC you may override the
## defaults here
#HorizSync 28-85
#VertRefresh 50-100

## Add your mode lines here, use e.g the cvt tool
Modeline "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync
EndSection

至此,重啟後就可以選擇新模式了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.