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

2005-09-26 Thread Kyryll A Mirnenko aka Mirya
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
Loaddbe
Loadtype1
Loadspeedo
Loadfreetype
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 
ViewPort0 0
Virtual 0 0
EndSubsection
Subsection Display
Depth   16
Modes   1280x1024 1152x864 1024x768 800x600 720x576 
720x480 640x480 640x400 512x384 480x300 400x300 320x240 
320x200 
ViewPort0 0
Virtual 0 0
EndSubsection
Subsection Display
Depth   24
Modes   1024x768 800x600 720x576 720x480 640x480 
640x400 512x384 480x300 400x300 320x240 320x200 
ViewPort0 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: 0xf000
LinBytesPerScanLine: 5120
BnkNumberOfImagePages: 0
LinNumberOfImagePages: 0
LinRedMaskSize: 8
LinRedFieldPosition: 16
LinGreenMaskSize: 8
LinGreenFieldPosition: 8
LinBlueMaskSize: 8
LinBlueFieldPosition: 0
LinRsvdMaskSize: 8
LinRsvdFieldPosition: 24
MaxPixelClock: 23000
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: 0xf000
LinBytesPerScanLine: 6400
BnkNumberOfImagePages: 0
LinNumberOfImagePages: 0
LinRedMaskSize: 8
LinRedFieldPosition: 16
LinGreenMaskSize: 8
LinGreenFieldPosition: 8
LinBlueMaskSize: 8
LinBlueFieldPosition: 0
LinRsvdMaskSize: 8
LinRsvdFieldPosition: 24
MaxPixelClock: 23000
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: 0xf000
LinBytesPerScanLine: 7680
BnkNumberOfImagePages: 0
LinNumberOfImagePages: 0
LinRedMaskSize: 8
LinRedFieldPosition: 16
LinGreenMaskSize: 8
LinGreenFieldPosition: 8
LinBlueMaskSize: 8
LinBlueFieldPosition: 0
LinRsvdMaskSize: 8
LinRsvdFieldPosition: 24
MaxPixelClock: 23000
(II) I810(0): Primary Monitor: Using hsync range of 30.00-85.00 kHz
(II) I810(0): Primary Monitor: Using 

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

2005-09-26 Thread dgmm
I think the Intel chipset incorrectly reports the amount of video ram to the 
system

IIRC (It's a while ago now and I no longer use that chipset) you need 
agp_load=yes in /boot/loader.conf or compiled into the kernel and add in a 
line:

 VideoRam65536

to the device section for the video card/chipset.

I also seem to recall googling on this very topic and reading about patches 
for the i810 driver.  Try a google on 

i810 memory

or maybe

i810 resolution

HTH

Dave




On Monday 26 September 2005 17:48, Kyryll A Mirnenko aka Mirya wrote:
 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
 Loaddbe
 Loadtype1
 Loadspeedo
 Loadfreetype
 Load   glx
 Load   dri
 EndSection

 Section Extensions
 Option Composite Enable
 EndSection

 Section Device
 IdentifierPrimary Card
 VendorNameUnknown
 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
 ViewPort0 0
   Virtual 0 0
 EndSubsection
 Subsection Display
 Depth   16
 Modes   1280x1024 1152x864 1024x768 800x600 720x576
 720x480 640x480 640x400 512x384 480x300 400x300 320x240
 320x200
 ViewPort0 0
   Virtual 0 0
 EndSubsection
 Subsection Display
 Depth   24
 Modes   1024x768 800x600 720x576 720x480 640x480
 640x400 512x384 480x300 400x300 320x240 320x200
 ViewPort0 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: 0xf000
   LinBytesPerScanLine: 5120
   BnkNumberOfImagePages: 0
   LinNumberOfImagePages: 0
   LinRedMaskSize: 8
   LinRedFieldPosition: 16
   LinGreenMaskSize: 8
   LinGreenFieldPosition: 8
   LinBlueMaskSize: 8
   LinBlueFieldPosition: 0
   LinRsvdMaskSize: 8
   LinRsvdFieldPosition: 24
   MaxPixelClock: 23000
 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: 0xf000
   LinBytesPerScanLine: 6400
   BnkNumberOfImagePages: 0
   LinNumberOfImagePages: 0
   LinRedMaskSize: 8
   LinRedFieldPosition: 16
   LinGreenMaskSize: 8
   LinGreenFieldPosition: 8
   LinBlueMaskSize: 8
   LinBlueFieldPosition: 0
   LinRsvdMaskSize: 8
   LinRsvdFieldPosition: 24
   MaxPixelClock: 23000
 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: