gentoo 下 intel 845G(其它的也一样) 显卡开启3D加速。

1 配置内核
Device Drivers —> Graphics support 的配置
│ │ -*- /dev/agpgart (AGP Support) —> │ │
│ │ (*) Direct Rendering Manager (XFree86 4.1.0 and higher DRI suppor│ │
│ │ () Lowlevel video output switch controls │ │
│ │ (*) Support for frame buffer devices —> │ │
│ │ [ ] Backlight & LCD device support —> │ │
│ │ Display device support —> │ │
│ │ Console display driver support —> │ │
│ │ [ ] Bootup logo —> │ │

/dev/agpgart (AGP Support) 的配置
│ │ — /dev/agpgart (AGP Support) │ │
│ │ () ALI chipset support │ │
│ │ () ATI chipset support │ │
│ │ () AMD Irongate, 761, and 762 chipset support │ │
│ │ () AMD Opteron/Athlon64 on-CPU GART support │ │
│ │ -*- Intel 440LX/BX/GX, I8xx and E7x05 chipset support │ │
│ │ () NVIDIA nForce/nForce2 chipset support │ │
│ │ () SiS chipset support │ │
│ │ () Serverworks LE/HE chipset support │ │
│ │ () VIA chipset support │ │
│ │ () Transmeta Efficeon support │ │

Direct Rendering Manager (XFree86 4.1.0 and higher DRI suppor 的配置
│ │ — Direct Rendering Manager (XFree86 4.1.0 and higher DRI suppor│ │
│ │ () 3dfx Banshee/Voodoo3+ │ │
│ │ () ATI Rage 128 │ │
│ │ () ATI Radeon │ │
│ │ () Intel I810 │ │
│ │ (*) Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) —> │ │
│ │ () Matrox g200/g400 │ │
│ │ () SiS video cards │ │
│ │ () Via unichrome video cards │ │
│ │ () Savage video cards │ │

Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) 的配置
│ │ ( ) i830 driver │ │
│ │ (X) i915 driver │ │

│ │ — Support for frame buffer devices │ │
│ │ [*] Enable firmware EDID │ │
│ │ -*- Enable Video Mode Handling Helpers │ │
│ │ [ ] Enable Tile Blitting Support │ │
│ │ *** Frame buffer hardware drivers *** │ │
│ │ () Cirrus Logic support │ │
│ │ () Permedia2 support │ │
│ │ () CyberPro 2000/2010/5000 support │ │
│ │ () Arc Monochrome LCD board support │ │
│ │ [ ] Asiliant (Chips) 69000 display support │ │
│ │ [ ] IMS Twin Turbo display support │ │
│ │ () VGA 16-color graphics support │ │
│ │ [ ] VESA VGA graphics support │ │
│ │ [ ] EFI-based Framebuffer Support │ │
│ │ () Hecuba board support │ │
│ │ () Hercules mono graphics support │ │
│ │ () Epson S1D13XXX framebuffer support │ │
│ │ () nVidia Framebuffer Support │ │
│ │ () nVidia Riva support │ │
│ │ () Intel 810/815 support (EXPERIMENTAL) │ │
│ │ () Intel LE80578 (Vermilion) support │ │
│ │ (*) Intel 830M/845G/852GM/855GM/865G/915G/945G support (EXPERIMENTAL) │ │
│ │ [ ] Intel driver Debug Messages │ │
│ │ [*] DDC/I2C for Intel framebuffer support │ │
│ │ () Matrox acceleration │ │
│ │ () ATI Radeon display support │ │
│ │ () ATI Rage128 display support │ │
│ │ () ATI Mach64 display support │ │
│ │ () S3 Trio/Virge support │ │
│ │ () S3 Savage support │ │
│ │ () SiS/XGI display support │ │
│ │ () NeoMagic display support │ │
│ │ () IMG Kyro support │ │
│ │ () 3Dfx Banshee/Voodoo3 display support │ │
│ │ () 3Dfx Voodoo Graphics (sst1) support │ │
│ │ () VIA VT8623 support │ │
│ │ () Cyberblade/i1 support │ │
│ │ () Trident support │ │
│ │ () ARK 2000PV support │ │
│ │ () Permedia3 support (EXPERIMENTAL) │ │
│ │ [ ] AMD Geode family framebuffer support (EXPERIMENTAL) │ │
│ │ () Virtual Frame Buffer support (ONLY FOR TESTING!) │ │

Console display driver support 的配置
│ │ -*- VGA text console │ │
│ │ [*] Enable Scrollback Buffer in System RAM │ │
│ │ (128) Scrollback Buffer Size (in KB) │ │
│ │ [*] Video mode selection support │ │
│ │ (*) Framebuffer Console support │ │
│ │ [ ] Map the console to the primary display device │ │
│ │ [ ] Framebuffer Console Rotation │ │
│ │ [ ] Support for the Framebuffer Console Decorations │ │
│ │ [ ] Select compiled-in fonts │ │

2.修改 make.conf
为 make.conf 增加一下内容
INPUT_DEVICES=”keyboard mouse”
#VIDEO_CARDS=”i810″ # i810 是错误的,使用的话无法开启3D加速
VIDEO_CARDS=”intel”

3. 安装 x11-drivers/xf86-video-intel xorg-x11 gnome
emerge -av x11-drivers/xf86-video-intel xorg-x11 gnome
这一步可能还有其它的东西,不过不记得了。

4.配置xorg.conf
我的配置是
[coolcode download=”xorg.conf”]
Section “ServerLayout”
Identifier “X.org Configured”
Screen 0 “Screen0” 0 0
InputDevice “Mouse0” “CorePointer”
InputDevice “Keyboard0” “CoreKeyboard”
EndSection

Section “Files”
RgbPath “/usr/share/X11/rgb”
ModulePath “/usr/lib/xorg/modules”
FontPath “/usr/share/fonts/misc/”
FontPath “/usr/share/fonts/TTF/”
FontPath “/usr/share/fonts/OTF”
FontPath “/usr/share/fonts/Type1/”
FontPath “/usr/share/fonts/100dpi/”
FontPath “/usr/share/fonts/75dpi/”
EndSection

Section “Module”
#这里是3D加速相关的
Load “dri”
Load “glx”
#Load “drm” # libdrm.a
Load “extmod”
Load “xtrap”
Load “record”
Load “GLcore”
Load “dbe”
Load “freetype”
Load “type1”
EndSection

# 这里是3D加速的部分
Section “dri”
Mode 0666
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”
# HorizSync 28.0 – 51.0
# VertRefresh 43.0 – 60.0
Modeline “800x600_85.00” 56.55 800 840 928 1056 600 601 604 630 -HSync +Vsync
# 1024×768 @ 75.00 Hz (GTF) hsync: 60.15 kHz; pclk: 81.80 MHz
Modeline “1024x768_75.00” 81.80 1024 1080 1192 1360 768 769 772 802 -HSync +Vsync
#
EndSection

Section “Device”
### Available Driver options are:-
### Values: : integer, : float, : “True”/”False”,
### : “String”, : ” Hz/kHz/MHz”
### [arg]: arg optional
#Option “NoAccel” # []
#Option “SWcursor” # []
#Option “ColorKey” #
#Option “CacheLines” #
#Option “Dac6Bit” # []
#Option “DRI” # []
#Option “NoDDC” # []
#Option “ShowCache” # []
#Option “XvMCSurfaces” #
#Option “PageFlip” # []
Identifier “Card0”
# 这里是驱动选择,i810是错误的。
Driver “intel”
# Driver “i810”
VendorName “Intel Corporation”
BoardName “82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device”
BusID “PCI:0:2:0”
EndSection

Section “Screen”
Identifier “Screen0”
Device “Card0”
Monitor “Monitor0”
SubSection “Display”
Viewport 0 0
Depth 1
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 4
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 8
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 15
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 16
EndSubSection
SubSection “Display”
Viewport 0 0
Depth 24
EndSubSection
EndSection
[/coolcode]

发表评论

电子邮件地址不会被公开。