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
至此,重启后就可以选择新模式了。