屏幕尺寸与分辨率冲突

屏幕尺寸与分辨率冲突

我是一名 Linux 新手,需要一些帮助来解决一个问题。

我正在尝试为我的无头的Ubuntu 12.04.2-64 桌面盒,配有 nVidia GeForce 8400 GS 卡。

该机器主要用于 ssh 和 GUI(远程)。受限驱动程序对我的情况不起作用。我已创建并尝试根据手册更改 xorg.conf 文件,但没有获得预期的结果。编辑后的 ​​xorg.conf 文件以所需的比例或分辨率显示桌面,但屏幕输出始终为 1280x768。当我尝试将 DisplaySize 720 480 添加到 Monitor 部分时,它会破坏文件并且不会生成桌面。

这是 xorg.conf 文件:

Section "ServerLayout"
Identifier     "X.org Configured"
Screen      0  "Screen0" 0 0
Screen      1  "Screen1" RightOf "Screen0"
Screen      2  "Screen2" RightOf "Screen1"
InputDevice    "Mouse0" "CorePointer"
InputDevice    "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath   "/usr/lib/xorg/modules"
FontPath     "/usr/share/fonts/X11/misc"
FontPath     "/usr/share/fonts/X11/cyrillic"
FontPath     "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath     "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath     "/usr/share/fonts/X11/Type1"
FontPath     "/usr/share/fonts/X11/100dpi"
FontPath     "/usr/share/fonts/X11/75dpi"
FontPath     "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath     "built-ins"
EndSection

Section "Module"
Load  "glx"
Load  "record"
Load  "dri2"
Load  "dbe"
Load  "extmod"
Load  "dri"
EndSection

Section "InputDevice"
Identifier  "Keyboard0"
Driver      "kbd"
EndSection

Section "InputDevice"
Identifier  "Mouse0"
Driver      "mouse"
Option      "Protocol" "auto"
Option      "Device" "/dev/input/mice"
Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Monitor"
Identifier   "Monitor1"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Monitor"
Identifier   "Monitor2"
VendorName   "Monitor Vendor"
ModelName    "Monitor Model"
EndSection

Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
    ### <percent>: "<f>%"
    ### [arg]: arg optional
    #Option     "SWcursor"              # [<bool>]
    #Option     "HWcursor"              # [<bool>]
    #Option     "NoAccel"               # [<bool>]
    #Option     "ShadowFB"              # [<bool>]
    #Option     "VideoKey"              # <i>
    #Option     "WrappedFB"             # [<bool>]
    #Option     "GLXVBlank"             # [<bool>]
    #Option     "ZaphodHeads"           # <str>
    #Option     "PageFlip"              # [<bool>]
Identifier  "Card0"
Driver      "nouveau"
BusID       "PCI:1:0:0"
EndSection

Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
    ### <percent>: "<f>%"
    ### [arg]: arg optional
    #Option     "ShadowFB"              # [<bool>]
    #Option     "Rotate"                # <str>
    #Option     "fbdev"                 # <str>
    #Option     "debug"                 # [<bool>]
Identifier  "Card1"
Driver      "fbdev"
BusID       "PCI:1:0:0"
EndSection

Section "Device"
    ### Available Driver options are:-
    ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
    ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
    ### <percent>: "<f>%"
    ### [arg]: arg optional
    #Option     "ShadowFB"              # [<bool>]
    #Option     "DefaultRefresh"        # [<bool>]
    #Option     "ModeSetClearScreen"    # [<bool>]
Identifier  "Card2"
Driver      "vesa"
BusID       "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device     "Card0"
Monitor    "Monitor0"
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     1
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     4
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     8
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     15
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     16
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device     "Card1"
Monitor    "Monitor1"
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     1
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     4
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     8
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     15
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     16
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     24
EndSubSection
EndSection

Section "Screen"
Identifier "Screen2"
Device     "Card2"
Monitor    "Monitor2"
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     1
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     4
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     8
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     15
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     16
EndSubSection
SubSection "Display"
    Viewport   0 0
    Modes "720x480"
    Depth     24
EndSubSection
EndSection

xrandr 打印以下内容:

Screen 0: minimum 320 x 200, current 1280 x 768, maximum 8192 x 8192
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 connected 1280x768+0+0 (normal left inverted right x axis y axis) 370mm x   222mm
   1280x768       60.0*+   49.9  
   1280x1024      60.0  
   1024x768       60.0  
   800x600        60.3  
   720x576        50.0  
   720x480        59.9  
   640x480        60.0  
VGA-1 disconnected (normal left inverted right x axis y axis)

这是我的 Xorg.0.log 文件:

http://pastebin.com/u5fTe2Ks

任何帮助将不胜感激!

答案1

我通过更改 xorg.conf 文件中 Modes 下的“Screen”部分并添加 Virtual 和屏幕尺寸来修复此问题。下面是我的新工作文件的链接。

http://pastebin.com/Xm8H7XeQ

相关内容