2005-04-17 02:20:36 +04:00
Intel 810/815 Framebuffer driver
Tony Daplas <adaplas@pol.net>
http://i810fb.sourceforge.net
March 17, 2002
First Released: July 2001
2005-09-12 05:18:12 +04:00
Last Update: September 12, 2005
2005-04-17 02:20:36 +04:00
================================================================
A. Introduction
2006-10-03 12:15:08 +04:00
2005-04-17 02:20:36 +04:00
This is a framebuffer driver for various Intel 810/815 compatible
2006-10-03 12:15:08 +04:00
graphics devices. These include:
2005-04-17 02:20:36 +04:00
Intel 810
Intel 810E
Intel 810-DC100
Intel 815 Internal graphics only, 100Mhz FSB
Intel 815 Internal graphics only
Intel 815 Internal graphics and AGP
B. Features
2006-10-03 12:15:08 +04:00
- Choice of using Discrete Video Timings, VESA Generalized Timing
2005-04-17 02:20:36 +04:00
Formula, or a framebuffer specific database to set the video mode
2006-10-03 12:15:08 +04:00
- Supports a variable range of horizontal and vertical resolution and
vertical refresh rates if the VESA Generalized Timing Formula is
2005-04-17 02:20:36 +04:00
enabled.
2006-10-03 12:15:08 +04:00
- Supports color depths of 8, 16, 24 and 32 bits per pixel
2005-04-17 02:20:36 +04:00
- Supports pseudocolor, directcolor, or truecolor visuals
2006-10-03 12:15:08 +04:00
- Full and optimized hardware acceleration at 8, 16 and 24 bpp
2005-04-17 02:20:36 +04:00
- Robust video state save and restore
2006-10-03 12:15:08 +04:00
- MTRR support
2005-04-17 02:20:36 +04:00
- Utilizes user-entered monitor specifications to automatically
calculate required video mode parameters.
2006-10-03 12:15:08 +04:00
- Can concurrently run with xfree86 running with native i810 drivers
2005-04-17 02:20:36 +04:00
- Hardware Cursor Support
2005-09-12 05:18:12 +04:00
- Supports EDID probing either by DDC/I2C or through the BIOS
2005-04-17 02:20:36 +04:00
C. List of available options
2006-10-03 12:15:08 +04:00
a. "video=i810fb"
2005-04-17 02:20:36 +04:00
enables the i810 driver
Recommendation: required
2006-10-03 12:15:08 +04:00
b. "xres:<value>"
2005-09-12 05:18:12 +04:00
select horizontal resolution in pixels. (This parameter will be
ignored if 'mode_option' is specified. See 'o' below).
2005-04-17 02:20:36 +04:00
2006-10-03 12:15:08 +04:00
Recommendation: user preference
2005-04-17 02:20:36 +04:00
(default = 640)
c. "yres:<value>"
select vertical resolution in scanlines. If Discrete Video Timings
2005-09-12 05:18:12 +04:00
is enabled, this will be ignored and computed as 3*xres/4. (This
parameter will be ignored if 'mode_option' is specified. See 'o'
2006-10-03 12:15:08 +04:00
below)
2005-04-17 02:20:36 +04:00
Recommendation: user preference
(default = 480)
2006-10-03 12:15:08 +04:00
d. "vyres:<value>"
2005-04-17 02:20:36 +04:00
select virtual vertical resolution in scanlines. If (0) or none
2006-10-03 12:15:08 +04:00
is specified, this will be computed against maximum available memory.
2005-04-17 02:20:36 +04:00
Recommendation: do not set
(default = 480)
e. "vram:<value>"
2006-10-03 12:15:08 +04:00
select amount of system RAM in MB to allocate for the video memory
2005-04-17 02:20:36 +04:00
Recommendation: 1 - 4 MB.
(default = 4)
2006-10-03 12:15:08 +04:00
f. "bpp:<value>"
select desired pixel depth
2005-04-17 02:20:36 +04:00
Recommendation: 8
(default = 8)
2006-10-03 12:15:08 +04:00
g. "hsync1/hsync2:<value>"
select the minimum and maximum Horizontal Sync Frequency of the
monitor in kHz. If using a fixed frequency monitor, hsync1 must
2005-09-12 05:18:12 +04:00
be equal to hsync2. If EDID probing is successful, these will be
ignored and values will be taken from the EDID block.
2005-04-17 02:20:36 +04:00
Recommendation: check monitor manual for correct values
2006-10-03 12:15:08 +04:00
(default = 29/30)
2005-04-17 02:20:36 +04:00
2006-10-03 12:15:08 +04:00
h. "vsync1/vsync2:<value>"
2005-04-17 02:20:36 +04:00
select the minimum and maximum Vertical Sync Frequency of the monitor
2006-10-03 12:15:08 +04:00
in Hz. You can also use this option to lock your monitor's refresh
2005-09-12 05:18:12 +04:00
rate. If EDID probing is successful, these will be ignored and values
will be taken from the EDID block.
2005-04-17 02:20:36 +04:00
Recommendation: check monitor manual for correct values
(default = 60/60)
2006-10-03 12:15:08 +04:00
IMPORTANT: If you need to clamp your timings, try to give some
leeway for computational errors (over/underflows). Example: if
2005-04-17 02:20:36 +04:00
using vsync1/vsync2 = 60/60, make sure hsync1/hsync2 has at least
a 1 unit difference, and vice versa.
2006-10-03 12:15:08 +04:00
i. "voffset:<value>"
select at what offset in MB of the logical memory to allocate the
2005-04-17 02:20:36 +04:00
framebuffer memory. The intent is to avoid the memory blocks
used by standard graphics applications (XFree86). The default
2006-10-03 12:15:08 +04:00
offset (16 MB for a 64 MB aperture, 8 MB for a 32 MB aperture) will
avoid XFree86's usage and allows up to 7 MB/15 MB of framebuffer
memory. Depending on your usage, adjust the value up or down
(0 for maximum usage, 31/63 MB for the least amount). Note, an
2005-04-17 02:20:36 +04:00
arbitrary setting may conflict with XFree86.
Recommendation: do not set
(default = 8 or 16 MB)
2006-10-03 12:15:08 +04:00
j. "accel"
enable text acceleration. This can be enabled/reenabled anytime
by using 'fbset -accel true/false'.
2005-04-17 02:20:36 +04:00
Recommendation: enable
2006-10-03 12:15:08 +04:00
(default = not set)
2005-04-17 02:20:36 +04:00
2006-10-03 12:15:08 +04:00
k. "mtrr"
2005-04-17 02:20:36 +04:00
enable MTRR. This allows data transfers to the framebuffer memory
to occur in bursts which can significantly increase performance.
2006-10-03 12:15:08 +04:00
Not very helpful with the i810/i815 because of 'shared memory'.
2005-04-17 02:20:36 +04:00
Recommendation: do not set
2006-10-03 12:15:08 +04:00
(default = not set)
2005-04-17 02:20:36 +04:00
l. "extvga"
if specified, secondary/external VGA output will always be enabled.
Useful if the BIOS turns off the VGA port when no monitor is attached.
2006-10-03 12:15:08 +04:00
The external VGA monitor can then be attached without rebooting.
2005-04-17 02:20:36 +04:00
Recommendation: do not set
(default = not set)
2006-10-03 12:15:08 +04:00
m. "sync"
2005-04-17 02:20:36 +04:00
Forces the hardware engine to do a "sync" or wait for the hardware
2006-10-03 12:15:08 +04:00
to finish before starting another instruction. This will produce a
2005-04-17 02:20:36 +04:00
more stable setup, but will be slower.
Recommendation: do not set
(default = not set)
n. "dcolor"
Use directcolor visual instead of truecolor for pixel depths greater
than 8 bpp. Useful for color tuning, such as gamma control.
Recommendation: do not set
(default = not set)
2006-10-03 12:15:08 +04:00
2005-09-12 05:18:12 +04:00
o. <xres>x<yres>[-<bpp>][@<refresh>]
The driver will now accept specification of boot mode option. If this
is specified, the options 'xres' and 'yres' will be ignored. See
Documentation/fb/modedb.txt for usage.
2005-04-17 02:20:36 +04:00
D. Kernel booting
Separate each option/option-pair by commas (,) and the option from its value
with a colon (:) as in the following:
video=i810fb:option1,option2:value2
Sample Usage
------------
In /etc/lilo.conf, add the line:
append="video=i810fb:vram:2,xres:1024,yres:768,bpp:8,hsync1:30,hsync2:55, \
vsync1:50,vsync2:85,accel,mtrr"
This will initialize the framebuffer to 1024x768 at 8bpp. The framebuffer
2006-10-03 12:15:08 +04:00
will use 2 MB of System RAM. MTRR support will be enabled. The refresh rate
will be computed based on the hsync1/hsync2 and vsync1/vsync2 values.
2005-04-17 02:20:36 +04:00
IMPORTANT:
You must include hsync1, hsync2, vsync1 and vsync2 to enable video modes
2005-09-12 05:18:12 +04:00
better than 640x480 at 60Hz. HOWEVER, if your chipset/display combination
supports I2C and has an EDID block, you can safely exclude hsync1, hsync2,
vsync1 and vsync2 parameters. These parameters will be taken from the EDID
block.
2005-04-17 02:20:36 +04:00
E. Module options
2006-10-03 12:15:08 +04:00
The module parameters are essentially similar to the kernel
parameters. The main difference is that you need to include a Boolean value
(1 for TRUE, and 0 for FALSE) for those options which don't need a value.
2005-04-17 02:20:36 +04:00
Example, to enable MTRR, include "mtrr=1".
Sample Usage
------------
Using the same setup as described above, load the module like this:
modprobe i810fb vram=2 xres=1024 bpp=8 hsync1=30 hsync2=55 vsync1=50 \
vsync2=85 accel=1 mtrr=1
2012-03-31 00:37:16 +04:00
Or just add the following to a configuration file in /etc/modprobe.d/
2005-04-17 02:20:36 +04:00
options i810fb vram=2 xres=1024 bpp=16 hsync1=30 hsync2=55 vsync1=50 \
vsync2=85 accel=1 mtrr=1
2006-10-03 12:15:08 +04:00
and just do a
2005-04-17 02:20:36 +04:00
modprobe i810fb
F. Setup
2006-10-03 12:15:08 +04:00
a. Do your usual method of configuring the kernel.
2005-04-17 02:20:36 +04:00
make menuconfig/xconfig/config
2006-10-03 12:15:08 +04:00
b. Under "Code maturity level options" enable "Prompt for development
and/or incomplete code/drivers".
2005-04-17 02:20:36 +04:00
c. Enable agpgart support for the Intel 810/815 on-board graphics.
2006-10-03 12:15:08 +04:00
This is required. The option is under "Character Devices".
2005-04-17 02:20:36 +04:00
d. Under "Graphics Support", select "Intel 810/815" either statically
2005-09-12 05:18:12 +04:00
or as a module. Choose "use VESA Generalized Timing Formula" if
2006-10-03 12:15:08 +04:00
you need to maximize the capability of your display. To be on the
safe side, you can leave this unselected.
2005-09-12 05:18:12 +04:00
e. If you want support for DDC/I2C probing (Plug and Play Displays),
set 'Enable DDC Support' to 'y'. To make this option appear, set
'use VESA Generalized Timing Formula' to 'y'.
2006-10-03 12:15:08 +04:00
f. If you want a framebuffer console, enable it under "Console
Drivers".
g. Compile your kernel.
h. Load the driver as described in sections D and E.
2005-04-17 02:20:36 +04:00
i. Try the DirectFB (http://www.directfb.org) + the i810 gfxdriver
patch to see the chipset in action (or inaction :-).
G. Acknowledgment:
2006-10-03 12:15:08 +04:00
2005-04-17 02:20:36 +04:00
1. Geert Uytterhoeven - his excellent howto and the virtual
2006-10-03 12:15:08 +04:00
framebuffer driver code made this possible.
2005-04-17 02:20:36 +04:00
2006-10-03 12:15:08 +04:00
2. Jeff Hartmann for his agpgart code.
2005-04-17 02:20:36 +04:00
3. The X developers. Insights were provided just by reading the
XFree86 source code.
4. Intel(c). For this value-oriented chipset driver and for
2006-10-03 12:15:08 +04:00
providing documentation.
2005-04-17 02:20:36 +04:00
5. Matt Sottek. His inputs and ideas helped in making some
2006-10-03 12:15:08 +04:00
optimizations possible.
2005-04-17 02:20:36 +04:00
H. Home Page:
A more complete, and probably updated information is provided at
2006-10-03 12:15:08 +04:00
http://i810fb.sourceforge.net.
2005-04-17 02:20:36 +04:00
###########################
Tony