Ubuntu 12.10。 无法添加自定义分辨率

系统:Ubuntu 12.10,nVidia Geforce GT240(nvidia-current privative driver),LG显示器连接到VGA-0

没有列出1920×1080分辨率,我已经在Windows中添加了它,但我在使用相同的Ubuntu时遇到了问题。

步骤1)获取模式

$ cvt 1920 1080 

步骤2)创建自定义模式

 $ xrandr --newmode "1080p" 172.80 1920 2040 2248 2576 1080 1081 1084 1118 -HSync +Vsync 

步骤3)添加自定义模式

 $ xrandr --addmode VGA-0 "1080p" 

然后我收到这个错误:

 X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 140 (RANDR) Minor opcode of failed request: 18 (RRAddOutputMode) Serial number of failed request: 29 Current serial number in output stream: 30 

xrandr输出是

 Screen 0: minimum 8 x 8, current 1152 x 864, maximum 8192 x 8192 VGA-0 connected 1152x864+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0 + 1360x768 60.0 59.8 1152x864 60.0* 800x600 72.2 60.3 56.2 680x384 119.9 119.6 640x480 59.9 512x384 120.0 400x300 144.4 320x240 120.1 DVI-I-0 disconnected (normal left inverted right x axis y axis) DVI-I-1 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis) 1080p (0x2f7) 172.8MHz h: width 1920 start 2040 end 2248 total 2576 skew 0 clock 67.1KHz v: height 1080 start 1081 end 1084 total 1118 clock 60.0Hz 

难道我做错了什么?

好的,这对我有用。

1)编辑/etc/X11/xorg.conf

2)在“监视器”部分中,将HorizSyncVertRefresh更改为正确的值(请参阅用户手册中的监视器规格)。 这很重要,否则您的显示器可能会出现“信号超出范围/同步”错误(如果您犯了这个错误,请按ctr + alt + f1并从控制台编辑xorg.conf )。

 Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "CRT-0" HorizSync 30.0 - 83.0 VertRefresh 56.0 - 75.0 Option "DPMS" EndSection 

3)在“屏幕”部分添加此行。

 Option "ModeValidation" "AllowNonEdidModes, NoVirtualSizeCheck, NoMaxPClkCheck, NoWidthAlignmentCheck, NoExtendedGpuCapabilitiesCheck" 

4)重启系统。

5) xrandr –addmode仍然不起作用,但你会有更多的分辨率。 看看我的新xrandr输出:

 Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 8192 x 8192 VGA-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 75.0 + 70.1 60.0 1920x1200 60.0 1920x1080 60.0* 59.9 1792x1344 60.0 1680x1050 74.9 69.9 60.0 59.9 1600x1200 65.0 60.0 1440x900 59.9 1400x1050 74.8 70.0 60.0 1360x768 60.0 59.8 1280x1024 75.0 60.0 1280x960 60.0 1152x864 75.0 75.0 70.0 60.0 960x600 120.0 960x540 120.0 840x525 149.9 139.8 120.0 119.8 832x624 74.6 800x600 75.0 72.2 60.3 56.2 720x450 119.8 700x525 149.5 120.0 680x384 119.9 119.6 640x480 75.0 72.8 59.9 512x384 140.1 120.0 400x300 144.4 320x240 145.6 120.1 DVI-I-0 disconnected (normal left inverted right x axis y axis) DVI-I-1 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis)