当前位置: 技术问答>linux和unix
如何在xorg中增加1024x600分辨率
来源: 互联网 发布时间:2016-04-18
本文导语: 我在xorg中设置分辨率为1024x600,但是为什么启动后分辨率是1024x768,我查看log,看到有这么一行 "not using mode "1024x600"(not mode of this name)" ,不知道错在哪? 以下是我的xorg.conf文本: -----------------------------------------------------...
我在xorg中设置分辨率为1024x600,但是为什么启动后分辨率是1024x768,我查看log,看到有这么一行 "not using mode "1024x600"(not mode of this name)"
,不知道错在哪?
以下是我的xorg.conf文本:
------------------------------------------------------------------------------
# xorg configuration
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Section "Files"
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
#FontPath "unix/:7100"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/encodings"
FontPath "/usr/X11R6/lib/X11/fonts/latin2"
#FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
#FontPath "/usr/X11R6/lib/X11/fonts/OTF"
#FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/TTF"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
#FontPath "/usr/X11R6/lib/X11/fonts/util"
ModulePath "/usr/X11R6/lib/modules"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
# to enable Xv, link /dev/videox to video device, eg. ln -s video0 /dev/videox
Load "z4l"
EndSection
Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
# Option "Protocol" "PS/2"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
# Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection
Section "Modes"
Identifier "Cimarron"
Modeline "1024x600" 50.0 1024 1048 1184 1344 600 602 608 628 -hsync -vsync
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "NEC FP2141SB"
# DisplaySize 400 300
# Note: setting HorizSync/VertRefresh will override DDC probe
# HorizSync 30.0 - 140.0
# VertRefresh 25.0 - 160.0
UseModes "Cimarron"
Option "dpms"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Generic Vendor"
ModelName "Generic Monitor"
HorizSync 28-50
VertRefresh 43-73
#Modeline "800x480" 33.2640 800 840 976 1056 480 490 492 525 +HSync -VSync
Modeline "1024x600" 50.0 1024 1048 1184 1344 600 602 608 628 -hsync -vsync
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "vesa"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
EndSection
Section "Device"
Identifier "FBDev"
Driver "fbdev"
#Option "shadowfb" "off"
VideoRam 4096
EndSection
Section "Device"
Identifier "Geode"
Driver "amd"
# Option "XaaNoCPUToScreenColorExpandFill"
# Option "XaaNoColor8x8PatternFillRect"
# Option "XaaNoColor8x8PatternFillTrap"
# Option "XaaNoDashedBresenhamLine"
# Option "XaaNoDashedTwoPointLine"
# Option "XaaNoImageWriteRect"
# Option "XaaNoMono8x8PatternFillRect"
# Option "XaaNoMono8x8PatternFillTrap"
# Option "XaaNoOffscreenPixmaps"
# Option "XaaNoPixmapCache"
# Option "XaaNoScanlineCPUToScreenColorExpandFill"
# Option "XaaNoScanlineImageWriteRect"
# Option "XaaNoScreenToScreenColorExpandFill"
# Option "XaaNoScreenToScreenCopy"
# Option "XaaNoSolidBresenhamLine"
# Option "XaaNoSolidFillRect"
# Option "XaaNoSolidFillTrap"
# Option "XaaNoSolidHorVertLine"
# Option "XaaNoSolidTwoPointLine"
# Option "No Compression"
# Select either Software cursor or Hardware cursor option.
# If SWcursor option selected HWcursor will disabled in the Driver.
# Default HWcursor will be enabled in the Driver.
Option "HWcursor"
# Option "SWcursor"
# Manditory for TVOUT operation
# Option "TV_Encoder" "ADV7171"
# Option "TV_Encoder" "SAA7127"
# Option "TV_Encoder" "FS454"
# Option "TV_Encoder" "ADV7300"
# optional for TVOUT operation
# Option "TV_Bus_Fmt" "disabled"
# Option "TV_Bus_Fmt" "vip1_1"
# Option "TV_Bus_Fmt" "ccir656"
# Option "TV_Bus_Fmt" "vip2_0"
# Option "TV_Bus_Fmt" "vip20_16bit"
# Option "TV_Bus_Fmt" "601_yuv_8bit"
# Option "TV_Bus_Fmt" "601_yuv_16bit"
# Option "TV_Bus_Fmt" "601_rgb_8_8_8"
# Option "TV_Bus_Fmt" "601_yuv_4_4_4"
# optional for TVOUT operation
# Option "TV_Conversion" "cosited"
# Option "TV_Conversion" "interspersed"
# Option "TV_Conversion" "alternating"
# optional for TVOUT operation
# Option "TV_Overscan" "40:30"
# optional for TVOUT operation, ':' seperator list any of
# "singlechipcompat:extendedsav:vbi:task:swap_uv:swap_vbi"
# Option "TV_Flags" "swap_uv"
# Option "TV_Flags" "extendedsav:swap_uv"
# optional for TVOUT operation, ':' seperator list any of
# "inv_de_pol:inv_hs_pol:inv_vs_pol:vsync-4:vsync-2:vsync+0:vsync+2"
# Option "TV_601_Flags" "inv_vs_pol"
# optional for TVOUT operation, ':' seperator list any of
# "disabled:vg:vg_inv:statreg17:statreg17_inv"
# Option "TV_Vsync_Select" "disabled"
#Panel options
# Option "FPDestGeom" "1028x768"
# Option "FPActiveGeom" "800x600"
# Option "No FlatPanel"
# Option "No CrtEnable"
# Rotate FramBuffer clockwise
# Option "Rotate" "CW"
# Option "Rotate" "Invert"
# Option "Rotate" "CCW"
# VideoRam 4096
# Option "ShadowFB"
# Option "CustomMode"
# Option "No Accel"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Geode"
Monitor "Monitor1"
# DefaultDepth 8
# DefaultDepth 16
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 24
FbBpp 32
Modes "1024x768" "1024x600" "800x600"
# Modes "1280x1024" "tv-ntsc" "tv-720p" "tv-1080i"
EndSubsection
EndSection
#Section "ServerFlags"
# Option "DontZap" "on"
#EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
,不知道错在哪?
以下是我的xorg.conf文本:
------------------------------------------------------------------------------
# xorg configuration
Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Section "Files"
# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
#FontPath "unix/:7100"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi"
FontPath "/usr/X11R6/lib/X11/fonts/cyrillic"
FontPath "/usr/X11R6/lib/X11/fonts/encodings"
FontPath "/usr/X11R6/lib/X11/fonts/latin2"
#FontPath "/usr/X11R6/lib/X11/fonts/local"
FontPath "/usr/X11R6/lib/X11/fonts/misc"
#FontPath "/usr/X11R6/lib/X11/fonts/OTF"
#FontPath "/usr/X11R6/lib/X11/fonts/PEX"
FontPath "/usr/X11R6/lib/X11/fonts/TTF"
FontPath "/usr/X11R6/lib/X11/fonts/Type1"
#FontPath "/usr/X11R6/lib/X11/fonts/util"
ModulePath "/usr/X11R6/lib/modules"
EndSection
Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
Load "freetype"
Load "type1"
# to enable Xv, link /dev/videox to video device, eg. ln -s video0 /dev/videox
Load "z4l"
EndSection
Section "InputDevice"
# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
# Option "Protocol" "PS/2"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
# Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "yes"
EndSection
Section "Modes"
Identifier "Cimarron"
Modeline "1024x600" 50.0 1024 1048 1184 1344 600 602 608 628 -hsync -vsync
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "NEC FP2141SB"
# DisplaySize 400 300
# Note: setting HorizSync/VertRefresh will override DDC probe
# HorizSync 30.0 - 140.0
# VertRefresh 25.0 - 160.0
UseModes "Cimarron"
Option "dpms"
EndSection
Section "Monitor"
Identifier "Monitor1"
VendorName "Generic Vendor"
ModelName "Generic Monitor"
HorizSync 28-50
VertRefresh 43-73
#Modeline "800x480" 33.2640 800 840 976 1056 480 490 492 525 +HSync -VSync
Modeline "1024x600" 50.0 1024 1048 1184 1344 600 602 608 628 -hsync -vsync
Option "dpms"
EndSection
Section "Device"
Identifier "Videocard0"
Driver "vesa"
VendorName "Videocard vendor"
BoardName "VESA driver (generic)"
EndSection
Section "Device"
Identifier "FBDev"
Driver "fbdev"
#Option "shadowfb" "off"
VideoRam 4096
EndSection
Section "Device"
Identifier "Geode"
Driver "amd"
# Option "XaaNoCPUToScreenColorExpandFill"
# Option "XaaNoColor8x8PatternFillRect"
# Option "XaaNoColor8x8PatternFillTrap"
# Option "XaaNoDashedBresenhamLine"
# Option "XaaNoDashedTwoPointLine"
# Option "XaaNoImageWriteRect"
# Option "XaaNoMono8x8PatternFillRect"
# Option "XaaNoMono8x8PatternFillTrap"
# Option "XaaNoOffscreenPixmaps"
# Option "XaaNoPixmapCache"
# Option "XaaNoScanlineCPUToScreenColorExpandFill"
# Option "XaaNoScanlineImageWriteRect"
# Option "XaaNoScreenToScreenColorExpandFill"
# Option "XaaNoScreenToScreenCopy"
# Option "XaaNoSolidBresenhamLine"
# Option "XaaNoSolidFillRect"
# Option "XaaNoSolidFillTrap"
# Option "XaaNoSolidHorVertLine"
# Option "XaaNoSolidTwoPointLine"
# Option "No Compression"
# Select either Software cursor or Hardware cursor option.
# If SWcursor option selected HWcursor will disabled in the Driver.
# Default HWcursor will be enabled in the Driver.
Option "HWcursor"
# Option "SWcursor"
# Manditory for TVOUT operation
# Option "TV_Encoder" "ADV7171"
# Option "TV_Encoder" "SAA7127"
# Option "TV_Encoder" "FS454"
# Option "TV_Encoder" "ADV7300"
# optional for TVOUT operation
# Option "TV_Bus_Fmt" "disabled"
# Option "TV_Bus_Fmt" "vip1_1"
# Option "TV_Bus_Fmt" "ccir656"
# Option "TV_Bus_Fmt" "vip2_0"
# Option "TV_Bus_Fmt" "vip20_16bit"
# Option "TV_Bus_Fmt" "601_yuv_8bit"
# Option "TV_Bus_Fmt" "601_yuv_16bit"
# Option "TV_Bus_Fmt" "601_rgb_8_8_8"
# Option "TV_Bus_Fmt" "601_yuv_4_4_4"
# optional for TVOUT operation
# Option "TV_Conversion" "cosited"
# Option "TV_Conversion" "interspersed"
# Option "TV_Conversion" "alternating"
# optional for TVOUT operation
# Option "TV_Overscan" "40:30"
# optional for TVOUT operation, ':' seperator list any of
# "singlechipcompat:extendedsav:vbi:task:swap_uv:swap_vbi"
# Option "TV_Flags" "swap_uv"
# Option "TV_Flags" "extendedsav:swap_uv"
# optional for TVOUT operation, ':' seperator list any of
# "inv_de_pol:inv_hs_pol:inv_vs_pol:vsync-4:vsync-2:vsync+0:vsync+2"
# Option "TV_601_Flags" "inv_vs_pol"
# optional for TVOUT operation, ':' seperator list any of
# "disabled:vg:vg_inv:statreg17:statreg17_inv"
# Option "TV_Vsync_Select" "disabled"
#Panel options
# Option "FPDestGeom" "1028x768"
# Option "FPActiveGeom" "800x600"
# Option "No FlatPanel"
# Option "No CrtEnable"
# Rotate FramBuffer clockwise
# Option "Rotate" "CW"
# Option "Rotate" "Invert"
# Option "Rotate" "CCW"
# VideoRam 4096
# Option "ShadowFB"
# Option "CustomMode"
# Option "No Accel"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Geode"
Monitor "Monitor1"
# DefaultDepth 8
# DefaultDepth 16
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 24
FbBpp 32
Modes "1024x768" "1024x600" "800x600"
# Modes "1280x1024" "tv-ntsc" "tv-720p" "tv-1080i"
EndSubsection
EndSection
#Section "ServerFlags"
# Option "DontZap" "on"
#EndSection
Section "DRI"
Group 0
Mode 0666
EndSection
|
如果这个分辨率不是X支持的标准分辨率,它就会给你自动调整到一个合适的分辨率。
我在VMWare下,将分辨率设置为1680x1050的时候,FrameBuffer Console就会自动进入640x480的状态。
我在VMWare下,将分辨率设置为1680x1050的时候,FrameBuffer Console就会自动进入640x480的状态。
|
Section "Screen"
Identifier "Screen0"
Device "Geode"
Monitor "Monitor1"
# DefaultDepth 8
# DefaultDepth 16
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 24
FbBpp 32
Modes "1024x768" "1024x600" "800x600"
# Modes "1280x1024" "tv-ntsc" "tv-720p" "tv-1080i"
EndSubsection
每条前面加"1024x600"改下试试。
Identifier "Screen0"
Device "Geode"
Monitor "Monitor1"
# DefaultDepth 8
# DefaultDepth 16
DefaultDepth 24
SubSection "Display"
Depth 8
Modes "1024x768" "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
EndSubsection
SubSection "Display"
Depth 24
FbBpp 32
Modes "1024x768" "1024x600" "800x600"
# Modes "1280x1024" "tv-ntsc" "tv-720p" "tv-1080i"
EndSubsection
每条前面加"1024x600"改下试试。
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。