X.org/i845 refuses to set an resolution ex. default

Kyryll A Mirnenko aka Mirya mirya at matrix.ua
Mon Sep 26 09:48:38 PDT 2005


Got a problem while setting up a new freebsd box. Got similar configuration in 
linux box running nearby w/o problems. Here it is (an extract, full 
attached):

Section "Module"
    Load        "dbe"
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
    Load       "glx"
    Load       "dri"
EndSection

Section "Extensions"
    Option "Composite" "Enable"
EndSection

Section "Device"
    Identifier	"Primary Card"
    VendorName	"Unknown"
    BoardName	"Intel 845"
    Driver     "i810"
EndSection

Section "Screen"
    Identifier  "Primary Screen"
    Device      "Primary Card"
    Monitor     "Primary Monitor"
    DefaultDepth 16

    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1152x864" "1024x768" "800x600" "720x576" 
"720x480" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" 
"320x200" 
        ViewPort    0 0
	Virtual	    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1152x864" "1024x768" "800x600" "720x576" 
"720x480" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" 
"320x200" 
        ViewPort    0 0
	Virtual     0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "720x576" "720x480" "640x480" 
"640x400" "512x384" "480x300" "400x300" "320x240" "320x200" 
        ViewPort    0 0
	Virtual     0 0
    EndSubsection
EndSection

And here comes the X.org log (extract):
[ ... some more useful modes ... ]
Mode: 58 (1280x1024)
	ModeAttributes: 0x9a
	WinAAttributes: 0x7
	WinBAttributes: 0x0
	WinGranularity: 64
	WinSize: 64
	WinASegment: 0xa000
	WinBSegment: 0x0
	WinFuncPtr: 0xc0005b77
	BytesPerScanline: 5120
	XResolution: 1280
	YResolution: 1024
	XCharSize: 8
	YCharSize: 16
	NumberOfPlanes: 1
	BitsPerPixel: 32
	NumberOfBanks: 1
	MemoryModel: 6
	BankSize: 0
	NumberOfImages: 0
	RedMaskSize: 8
	RedFieldPosition: 16
	GreenMaskSize: 8
	GreenFieldPosition: 8
	BlueMaskSize: 8
	BlueFieldPosition: 0
	RsvdMaskSize: 8
	RsvdFieldPosition: 24
	DirectColorModeInfo: 0
	PhysBasePtr: 0xf0000000
	LinBytesPerScanLine: 5120
	BnkNumberOfImagePages: 0
	LinNumberOfImagePages: 0
	LinRedMaskSize: 8
	LinRedFieldPosition: 16
	LinGreenMaskSize: 8
	LinGreenFieldPosition: 8
	LinBlueMaskSize: 8
	LinBlueFieldPosition: 0
	LinRsvdMaskSize: 8
	LinRsvdFieldPosition: 24
	MaxPixelClock: 230000000
Mode: 5a (1600x1200)
	ModeAttributes: 0x9a
	WinAAttributes: 0x7
	WinBAttributes: 0x0
	WinGranularity: 64
	WinSize: 64
	WinASegment: 0xa000
	WinBSegment: 0x0
	WinFuncPtr: 0xc0005b77
	BytesPerScanline: 6400
	XResolution: 1600
	YResolution: 1200
	XCharSize: 8
	YCharSize: 16
	NumberOfPlanes: 1
	BitsPerPixel: 32
	NumberOfBanks: 1
	MemoryModel: 6
	BankSize: 0
	NumberOfImages: 0
	RedMaskSize: 8
	RedFieldPosition: 16
	GreenMaskSize: 8
	GreenFieldPosition: 8
	BlueMaskSize: 8
	BlueFieldPosition: 0
	RsvdMaskSize: 8
	RsvdFieldPosition: 24
	DirectColorModeInfo: 0
	PhysBasePtr: 0xf0000000
	LinBytesPerScanLine: 6400
	BnkNumberOfImagePages: 0
	LinNumberOfImagePages: 0
	LinRedMaskSize: 8
	LinRedFieldPosition: 16
	LinGreenMaskSize: 8
	LinGreenFieldPosition: 8
	LinBlueMaskSize: 8
	LinBlueFieldPosition: 0
	LinRsvdMaskSize: 8
	LinRsvdFieldPosition: 24
	MaxPixelClock: 230000000
Mode: 5c (1920x1440)
	ModeAttributes: 0x9a
	WinAAttributes: 0x7
	WinBAttributes: 0x0
	WinGranularity: 64
	WinSize: 64
	WinASegment: 0xa000
	WinBSegment: 0x0
	WinFuncPtr: 0xc0005b77
	BytesPerScanline: 7680
	XResolution: 1920
	YResolution: 1440
	XCharSize: 8
	YCharSize: 16
	NumberOfPlanes: 1
	BitsPerPixel: 32
	NumberOfBanks: 1
	MemoryModel: 6
	BankSize: 0
	NumberOfImages: 0
	RedMaskSize: 8
	RedFieldPosition: 16
	GreenMaskSize: 8
	GreenFieldPosition: 8
	BlueMaskSize: 8
	BlueFieldPosition: 0
	RsvdMaskSize: 8
	RsvdFieldPosition: 24
	DirectColorModeInfo: 0
	PhysBasePtr: 0xf0000000
	LinBytesPerScanLine: 7680
	BnkNumberOfImagePages: 0
	LinNumberOfImagePages: 0
	LinRedMaskSize: 8
	LinRedFieldPosition: 16
	LinGreenMaskSize: 8
	LinGreenFieldPosition: 8
	LinBlueMaskSize: 8
	LinBlueFieldPosition: 0
	LinRsvdMaskSize: 8
	LinRsvdFieldPosition: 24
	MaxPixelClock: 230000000
(II) I810(0): Primary Monitor: Using hsync range of 30.00-85.00 kHz
(II) I810(0): Primary Monitor: Using vrefresh range of 50.00-160.00 Hz
(II) I810(0): Not using mode "1024x768" (no mode of this name)
(II) I810(0): Not using mode "800x600" (no mode of this name)
(II) I810(0): Not using mode "720x576" (no mode of this name)
(II) I810(0): Not using mode "720x480" (no mode of this name)
(II) I810(0): Not using mode "640x400" (no mode of this name)
(II) I810(0): Not using mode "512x384" (no mode of this name)
(II) I810(0): Not using mode "480x300" (no mode of this name)
(II) I810(0): Not using mode "400x300" (no mode of this name)
(II) I810(0): Not using mode "320x240" (no mode of this name)
(II) I810(0): Not using mode "320x200" (no mode of this name)
(II) I810(0): 6076 kBytes additional video memory is required to
	enable tiling mode for DRI.
(II) I810(0): 2304 kBytes additional video memory is required to enable DRI.
(II) I810(0): Disabling DRI.
(--) I810(0): Virtual size is 640x480 (pitch 640)
(**) I810(0): *Built-in mode "640x480"
(II) I810(0): Attempting to use 85Hz refresh for mode "640x480" (41)
(**) I810(0): Display dimensions: (310, 230) mm

As u see though it finds all the modes it refuses to use either but default 
640x480. The system is 6.0BETA5. dmesg output is attached, ask for details if 
needed
-- 
Regards, Mirya
ICQ #313898202
-------------- next part --------------
# File generated by xf86config.

#
# Copyright (c) 1999 by The XFree86 Project, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# 
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
# THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
# OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# 
# Except as contained in this notice, the name of the XFree86 Project shall
# not be used in advertising or otherwise to promote the sale, use or other
# dealings in this Software without prior written authorization from the
# XFree86 Project.
#

# **********************************************************************
# Refer to the XF86Config(4/5) man page for details about the format of 
# this file.
# **********************************************************************

# **********************************************************************
# Module section -- this  section  is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"  	# Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
#      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection

# This loads the Type1 and FreeType font modules
    Load        "type1"
    Load        "speedo"
    Load        "freetype"
#    Load        "xtt"

# This loads the GLX module
    Load       "glx"
# This loads the DRI module
    Load       "dri"

EndSection

Section "Extensions"
    Option "Composite" "Enable"
EndSection

# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# 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.

    RgbPath	"/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entries are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
# 
# If you don't have a floating point coprocessor and emacs, Mosaic or other
# programs take long to start up, try moving the Type1 and Speedo directory
# to the end of this list (or comment them out).
# 

   
    FontPath   "/usr/X11R6/lib/X11/fonts/TTF/"
    FontPath   "/usr/X11R6/lib/X11/fonts/TTF2/"
    FontPath   "/usr/X11R6/lib/X11/fonts/URW-TTF/"
    FontPath   "/usr/local/OpenOffice.org1.1.4/share/fonts/truetype/"
    FontPath   "/usr/X11R6/lib/X11/fonts/koi8-u-gemini/"
    FontPath   "/usr/X11R6/lib/X11/fonts/cyr-rfx-koi8-o/"
    FontPath   "/usr/X11R6/lib/X11/fonts/cyrillic/"
    FontPath   "/usr/X11R6/lib/X11/fonts/URW/"
    FontPath   "/usr/X11R6/lib/X11/fonts/dejavu/"
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/mozilla/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi-unicode/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/local/share/ghostscript/fonts/"
    FontPath   "/usr/local/share/fonts/"
    FontPath   "/usr/local/share/fonts/amspsfonts/"
    FontPath   "/usr/local/share/fonts/cmpsfonts/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

# The module search path.  The default path is shown here.

#    ModulePath "/usr/X11R6/lib/modules"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is 
# received.  This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging

#    Option "NoTrapSignals"

# Uncomment this to disable the <Crtl><Alt><Fn> VT switch sequence
# (where n is 1 through 12).  This allows clients to receive these key
# events.

#    Option "DontVTSwitch"

# Uncomment this to disable the <Crtl><Alt><BS> server abort sequence
# This allows clients to receive this key event.

#    Option "DontZap"

# Uncomment this to disable the <Crtl><Alt><KP_+>/<KP_-> mode switching
# sequences.  This allows clients to receive these key events.

#    Option "Dont Zoom"

# Uncomment this to disable tuning with the xvidtune client. With
# it the client can still run and fetch card and monitor attributes,
# but it will not be allowed to change them. If it tries it will
# receive a protocol error.

#    Option "DisableVidModeExtension"

# Uncomment this to enable the use of a non-local xvidtune client. 

#    Option "AllowNonLocalXvidtune"

# Uncomment this to disable dynamically modifying the input device
# (mouse and keyboard) settings. 

#    Option "DisableModInDev"

# Uncomment this to enable the use of a non-local client to
# change the keyboard or mouse settings (currently only xset).

#    Option "AllowNonLocalModInDev"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

Section "Monitor"

    Identifier  "Primary Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    HorizSync   30-85

#    HorizSync	30-64         # multisync
#    HorizSync	31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync	15-25, 30-50  # multiple ranges of sync frequencies

# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.

    VertRefresh 50-160
    
#    Modeline "1280x1024" 110.0 1280 1328 1512 1712 1024 1025 1028 1054
#    Modeline "1152x864"   92.0 1152 1208 1368 1474 864 865 875 895
#    Modeline "1024x768"   85.0 1024 1032 1152 1360 768 784 787 823

Option	"dpms"
DisplaySize	310 230

vendorname "Samsung"
modelname "SyncMaster"
EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

# Standard VGA Device:

Section "Device"
    Identifier	"Primary Card"
    VendorName	"Unknown"
    BoardName	"Intel 845"

# The chipset line is optional in most cases.  It can be used to override
# the driver's chipset detection, and should not normally be specified.

#    Chipset	"generic"

# The Driver line must be present.  When using run-time loadable driver
# modules, this line instructs the server to load the specified driver
# module.  Even when not using loadable driver modules, this line
# indicates which driver should interpret the information in this section.

    Driver     "i810"
# The BusID line is used to specify which of possibly multiple devices
# this section is intended for.  When this line isn't present, a device
# section can only match up with the primary video device.  For PCI
# devices a line like the following could be used.  This line should not
# normally be included unless there is more than one video device
# intalled.

#    BusID      "PCI:0:10:0"

#    VideoRam	256

#    Clocks	25.2 28.3

EndSection

# Device configured by xf86config:

Section "Device"
    Identifier  "Generic VGA"
    Driver      "vga"
    # unsupported card
    #VideoRam    8192
    # Insert Clocks lines here if appropriate
    vendorname "Generic"
    boardname "i810"
EndSection

Section "Device"
    Identifier  "Stub"
    Driver      "dummy"
EndSection

Section "InputDevice"
    Identifier "Keyboard"
    Option "XkbModel" "pc104"
    Option "XkbLayout" "us"
    Option "XkbOptions" ""
    driver "keyboard"
EndSection

Section "InputDevice"
    Identifier "Mouse"
    #Option "Protocol" "IntelliMouse"
    #Option "Device" "/dev/cuad0"
    Option "Protocol" "SysMouse"
    Option "Device" "/dev/sysmouse"
    Driver "mouse"
    Option "ZAxisMapping" "4 5"
EndSection
    

# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present.  Each describes
# the configuration of a single screen.  A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
    Identifier  "Primary Screen"
    Device      "Primary Card"
    Monitor     "Primary Monitor"
    DefaultDepth 16

    Subsection "Display"
        Depth       8
        Modes       "1280x1024" "1152x864" "1024x768" "800x600" "720x576" "720x480" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200" 
        ViewPort    0 0
	Virtual	    0 0
    EndSubsection
    Subsection "Display"
        Depth       16
        Modes       "1280x1024" "1152x864" "1024x768" "800x600" "720x576" "720x480" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200" 
        ViewPort    0 0
	Virtual     0 0
    EndSubsection
    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "720x576" "720x480" "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200" 
        ViewPort    0 0
	Virtual     0 0
    EndSubsection
EndSection

Section "Screen"
    Identifier  "VGA Screen"
    Device      "Generic VGA"
    Monitor     "Primary Monitor"
    DefaultDepth 4
    
    Subsection "Display"
        Depth       1
        Modes       "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200" 
        ViewPort    0 0
	Virtual     0 0
    EndSubsection
    Subsection "Display"
        Depth       2
        Modes       "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200" 
        ViewPort    0 0
	Virtual     0 0
    EndSubsection
    Subsection "Display"
        Depth       4
        Modes       "640x480" "640x400" "512x384" "480x300" "400x300" "320x240" "320x200" 
        ViewPort    0 0
	Virtual     0 0
    EndSubsection
    Subsection "Display"
        Depth       8
        Modes       "480x300" "400x300" "320x240" "320x200" 
        ViewPort    0 0
	Virtual     0 0
    EndSubsection
    
EndSection

Section "Screen"
    Identifier  "Dumb Screen"
    Device      "Stub"
    Monitor     "Primary Monitor"
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present.  Each describes
# the way multiple screens are organised.  A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option.  In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "i740"

# Each Screen line specifies a Screen section name, and optionally
# the relative position of other screens.  The four names after
# primary screen name are the screens to the top, bottom, left and right
# of the primary screen.  In this example, screen 2 is located to the
# right of screen 1.

    Screen "Primary Screen"

# Each InputDevice line specifies an InputDevice section name and
# optionally some options to specify the way the device is to be
# used.  Those options include "CorePointer", "CoreKeyboard" and
# "SendCoreEvents".

    InputDevice "Mouse" "CorePointer"
    InputDevice "Keyboard" "CoreKeyboard"

EndSection

Section "ServerLayout"

# The Identifier line must be present
    Identifier  "vga"

    Screen "VGA Screen"

    InputDevice "Mouse" "CorePointer"
    InputDevice "Keyboard" "CoreKeyboard"

#EndSection

Section "ServerLayout"

    Identifier  "dumb"

    Screen "Dumb Screen"
EndSection

# Section "DRI"
#    Mode 0666
# EndSection


More information about the freebsd-questions mailing list