Difference between revisions of "ATi video (2.6)"
From linux360
(Imported initial content) |
|||
(10 intermediate revisions by 7 users not shown) | |||
Line 62: | Line 62: | ||
In continuare aveti un exemplu de /etc/X11/XF86Config: | In continuare aveti un exemplu de /etc/X11/XF86Config: | ||
− | |||
# ********************************************************************** | # ********************************************************************** | ||
# Refer to the XF86Config(4/5) man page for details about the format of | # Refer to the XF86Config(4/5) man page for details about the format of | ||
# this file. | # this file. | ||
# ********************************************************************** | # ********************************************************************** | ||
− | + | ||
# ********************************************************************** | # ********************************************************************** | ||
# DRI Section | # DRI Section | ||
Line 74: | Line 73: | ||
Mode 0666 | Mode 0666 | ||
EndSection | EndSection | ||
− | + | ||
# ********************************************************************** | # ********************************************************************** | ||
# Module section -- this section is used to specify | # Module section -- this section is used to specify | ||
Line 82: | Line 81: | ||
# This loads the DBE extension module. | # This loads the DBE extension module. | ||
Load "dbe" # Double buffer extension | Load "dbe" # Double buffer extension | ||
− | + | ||
SubSection "extmod" | SubSection "extmod" | ||
# Option "omit xfree86-dga" | # Option "omit xfree86-dga" | ||
EndSubSection | EndSubSection | ||
− | + | ||
# This loads the Type1 and FreeType font modules | # This loads the Type1 and FreeType font modules | ||
Load "type1" | Load "type1" | ||
Load "freetype" | Load "freetype" | ||
− | + | ||
# This loads the GLX module | # This loads the GLX module | ||
Load "glx" # libglx.a | Load "glx" # libglx.a | ||
Load "dri" # libdri.a | Load "dri" # libdri.a | ||
EndSection | EndSection | ||
− | + | ||
# ********************************************************************** | # ********************************************************************** | ||
# Files section. This allows default font and rgb paths to be set | # Files section. This allows default font and rgb paths to be set | ||
Line 103: | Line 102: | ||
FontPath "unix/:-1" | FontPath "unix/:-1" | ||
EndSection | EndSection | ||
− | + | ||
# ********************************************************************** | # ********************************************************************** | ||
# Server flags section. | # Server flags section. | ||
Line 112: | Line 111: | ||
AllowMouseOpenFail | AllowMouseOpenFail | ||
EndSection | EndSection | ||
− | + | ||
# ********************************************************************** | # ********************************************************************** | ||
# Input devices | # Input devices | ||
# ********************************************************************** | # ********************************************************************** | ||
− | + | ||
# ********************************************************************** | # ********************************************************************** | ||
# Core keyboard's InputDevice section | # Core keyboard's InputDevice section | ||
Line 123: | Line 122: | ||
Identifier "Keyboard1" | Identifier "Keyboard1" | ||
Driver "Keyboard" | Driver "Keyboard" | ||
− | + | ||
Option "AutoRepeat" "500 30" | Option "AutoRepeat" "500 30" | ||
− | + | ||
Option "XkbRules" "xfree86" | Option "XkbRules" "xfree86" | ||
Option "XkbModel" "pc105" | Option "XkbModel" "pc105" | ||
Line 131: | Line 130: | ||
Option "XkbOptions" "" | Option "XkbOptions" "" | ||
Option "XkbCompat" "" | Option "XkbCompat" "" | ||
− | + | ||
EndSection | EndSection | ||
− | + | ||
− | |||
# ********************************************************************** | # ********************************************************************** | ||
# Core Pointer's InputDevice section | # Core Pointer's InputDevice section | ||
# ********************************************************************** | # ********************************************************************** | ||
− | + | ||
Section "InputDevice" | Section "InputDevice" | ||
# Identifier and driver | # Identifier and driver | ||
Line 147: | Line 145: | ||
Option "ZAxisMapping" "6 7" | Option "ZAxisMapping" "6 7" | ||
EndSection | EndSection | ||
− | + | ||
Section "InputDevice" | Section "InputDevice" | ||
Identifier "USBmouse" | Identifier "USBmouse" | ||
Line 155: | Line 153: | ||
Option "ZAxisMapping" "4 5" | Option "ZAxisMapping" "4 5" | ||
EndSection | EndSection | ||
− | + | ||
# ********************************************************************** | # ********************************************************************** | ||
# Monitor section | # Monitor section | ||
# ********************************************************************** | # ********************************************************************** | ||
# Any number of monitor sections may be present | # Any number of monitor sections may be present | ||
− | + | ||
Section "Monitor" | Section "Monitor" | ||
Identifier "Monitor0" | Identifier "Monitor0" | ||
Line 167: | Line 165: | ||
Option "DPMS" | Option "DPMS" | ||
EndSection | EndSection | ||
− | + | ||
Section "Monitor" | Section "Monitor" | ||
Identifier "LCD-WXSGA" | Identifier "LCD-WXSGA" | ||
Line 176: | Line 174: | ||
VertRefresh 40-70 | VertRefresh 40-70 | ||
EndSection | EndSection | ||
− | + | ||
Section "Monitor" | Section "Monitor" | ||
Identifier "CRT-21@Work" | Identifier "CRT-21@Work" | ||
Line 185: | Line 183: | ||
# VertRefresh "" | # VertRefresh "" | ||
EndSection | EndSection | ||
− | + | ||
Section "Monitor" | Section "Monitor" | ||
Identifier "CRT-19@Home" | Identifier "CRT-19@Home" | ||
Line 194: | Line 192: | ||
Option "DPMS" | Option "DPMS" | ||
EndSection | EndSection | ||
− | + | ||
− | |||
# ********************************************************************** | # ********************************************************************** | ||
# Graphics device section | # Graphics device section | ||
Line 207: | Line 204: | ||
Driver "vga" | Driver "vga" | ||
EndSection | EndSection | ||
− | + | ||
− | |||
# === ATI device section === | # === ATI device section === | ||
− | |||
Section "Device" | Section "Device" | ||
Identifier "vga0" | Identifier "vga0" | ||
Line 234: | Line 229: | ||
Option "VRefresh2" "unspecified" | Option "VRefresh2" "unspecified" | ||
Option "ScreenOverlap" "0" | Option "ScreenOverlap" "0" | ||
− | # === TV-out Management === | + | # === TV-out Management === |
Option "NoTV" "yes" # "no" to turn on TV out | Option "NoTV" "yes" # "no" to turn on TV out | ||
Option "TVStandard" "PAL-B" | Option "TVStandard" "PAL-B" | ||
Line 245: | Line 240: | ||
Option "GammaCorrectionI" "0x00000000" | Option "GammaCorrectionI" "0x00000000" | ||
Option "GammaCorrectionII" "0x00000000" | Option "GammaCorrectionII" "0x00000000" | ||
− | + | ||
# === OpenGL specific profiles/settings === | # === OpenGL specific profiles/settings === | ||
Option "Capabilities" "0x00000000" | Option "Capabilities" "0x00000000" | ||
Line 285: | Line 280: | ||
Screen 0 | Screen 0 | ||
EndSection | EndSection | ||
− | + | ||
# ********************************************************************** | # ********************************************************************** | ||
# Screen sections | # Screen sections | ||
Line 309: | Line 304: | ||
# The Identifier line must be present | # The Identifier line must be present | ||
Identifier "Server Layout" | Identifier "Server Layout" | ||
− | + | ||
Screen "Screen0" | Screen "Screen0" | ||
− | + | ||
InputDevice "TouchPad" "CorePointer" | InputDevice "TouchPad" "CorePointer" | ||
InputDevice "Keyboard1" "CoreKeyboard" | InputDevice "Keyboard1" "CoreKeyboard" | ||
− | + | ||
EndSection | EndSection | ||
Line 322: | Line 317: | ||
[[Category:HowTo]] | [[Category:HowTo]] | ||
+ | [[Category:Drivers]] |
Latest revision as of 12:41, 13 February 2006
Vom trece pe rand prin urmatoarele etape:
- Setarile din kernel
- Instalarea driverelor ATI
- Configurarea /etc/X11/XF86Config
Setari kernel
Ca de obicei
cd /usr/src/linux make menuconfig
Mergem in meniul care ne intereseaza:
Device Drivers ---> Character devices --->
Si avem grija sa avem selectate urmatoarele:
<M> Enhanced Real Time Clock Support (...) <*> /dev/agpgart (AGP Support) < > ALI chipset support <*> ATI chipset support # depinde de ce chipset avem pe northbridge < > 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 [*] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) < > 3dfx Banshee/Voodoo3+ < > 3dlabs GMX 2000 < > ATI Rage 128 < > ATI Radeon < > Intel I810 < > Intel 830M, 845G, 852GM, 855GM, 865G < > Matrox g200/g400 < > SiS video cards
Nota!! Se pare ca nu este nevoie sa compilam suportul DRI pentru ATI direct in kernel, deoarece driverele ATi vin cu acest suport
Acum instalam kernelul, cu noul suport
make && make modules_install install
Daca aveti LILO (pentru GRUB nu este nevoie), atunci rulati /usr/sbin/lilo pentru a incarca noile setari si rebootati.
Instalarea driverelor ATI
Instalam driverele corespunzatoare placii noastre, de la de pe pagina, apoi dam urmatoarea comanda
opengl-update
Configurare XF86Config
Pentru aceasta, avem mai multe variante:
XFree86 --configure
sau
xf86config
sau
xf86cfg
sau
fglrxconfig #utilitarul ce vine odata cu driverele
In continuare aveti un exemplu de /etc/X11/XF86Config:
# ********************************************************************** # Refer to the XF86Config(4/5) man page for details about the format of # this file. # ********************************************************************** # ********************************************************************** # DRI Section # ********************************************************************** Section "dri" Mode 0666 EndSection # ********************************************************************** # 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 SubSection "extmod" # Option "omit xfree86-dga" EndSubSection # This loads the Type1 and FreeType font modules Load "type1" Load "freetype" # This loads the GLX module Load "glx" # libglx.a Load "dri" # libdri.a EndSection # ********************************************************************** # Files section. This allows default font and rgb paths to be set # ********************************************************************** Section "Files" RgbPath "/usr/X11R6/lib/X11/rgb" FontPath "unix/:-1" EndSection # ********************************************************************** # Server flags section. # ********************************************************************** Section "ServerFlags" # This option allows the X server to start up even if the # mouse device can't be opened/initialized. AllowMouseOpenFail EndSection # ********************************************************************** # Input devices # ********************************************************************** # ********************************************************************** # Core keyboard's InputDevice section # ********************************************************************** Section "InputDevice" Identifier "Keyboard1" Driver "Keyboard" Option "AutoRepeat" "500 30" Option "XkbRules" "xfree86" Option "XkbModel" "pc105" Option "XkbLayout" "no" Option "XkbOptions" "" Option "XkbCompat" "" EndSection # ********************************************************************** # Core Pointer's InputDevice section # ********************************************************************** Section "InputDevice" # Identifier and driver Identifier "TouchPad" Driver "mouse" Option "Protocol" "PS/2" Option "Device" "/dev/misc/psaux" Option "ZAxisMapping" "6 7" EndSection Section "InputDevice" Identifier "USBmouse" Driver "mouse" Option "Protocol" "IMPS/2" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5" EndSection # ********************************************************************** # Monitor section # ********************************************************************** # Any number of monitor sections may be present Section "Monitor" Identifier "Monitor0" HorizSync 31.5 - 48.5 VertRefresh 40 - 70 Option "DPMS" EndSection Section "Monitor" Identifier "LCD-WXSGA" ModelName "Flat Panel" VendorName "hp" Option "DPMS" HorizSync 31.5 - 48.5 VertRefresh 40-70 EndSection Section "Monitor" Identifier "CRT-21@Work" ModelName "G550" VendorName "Sony" Option "DPMS" # HorizSync "" # VertRefresh "" EndSection Section "Monitor" Identifier "CRT-19@Home" ModelName "96P" VendorName "Samtron" HorizSync 30-96 VertRefresh 50-160 Option "DPMS" EndSection # ********************************************************************** # Graphics device section # ********************************************************************** # Any number of graphics device sections may be present # Standard VGA Device: Section "Device" Identifier "Standard VGA" VendorName "Unknown" BoardName "Unknown" Driver "vga" EndSection # === ATI device section === Section "Device" Identifier "vga0" VendorName "ATI" BoardName "ATI Mobility Radeon 9200" Driver "fglrx" # === Own Settings (CTh) === # VideoRam 65536 Option "AGPMode" "4" Option "AGPFastWrite" "True" Option "EnablePageFlip" "True" # === disable PnP Monitor === # Option "NoDDC" # === disable/enable XAA/DRI === Option "no_accel" "no" Option "no_dri" "no" # === FireGL DDX driver module specific settings === # === Screen Management === Option "DesktopSetup" "0x00000100" Option "MonitorLayout" "AUTO, NONE" Option "IgnoreEDID" "off" Option "HSync2" "unspecified" Option "VRefresh2" "unspecified" Option "ScreenOverlap" "0" # === TV-out Management === Option "NoTV" "yes" # "no" to turn on TV out Option "TVStandard" "PAL-B" Option "TVHSizeAdj" "0" Option "TVVSizeAdj" "0" Option "TVHPosAdj" "0" Option "TVVPosAdj" "0" Option "TVHStartAdj" "0" Option "TVColorAdj" "0" Option "GammaCorrectionI" "0x00000000" Option "GammaCorrectionII" "0x00000000" # === OpenGL specific profiles/settings === Option "Capabilities" "0x00000000" # === Video Overlay for the Xv extension === Option "VideoOverlay" "on" # === OpenGL Overlay === # Note: When OpenGL Overlay is enabled, Video Overlay # will be disabled automatically Option "OpenGLOverlay" "off" # === Center Mode (Laptops only) === Option "CenterMode" "off" # === Pseudo Color Visuals (8-bit visuals) === Option "PseudoColorVisuals" "off" # === QBS Support === Option "Stereo" "off" Option "StereoSyncEnable" "1" # === FSAA Management === Option "FSAAScale" "1" Option "FSAADisableGamma" "no" Option "FSAACustomizeMSPos" "no" Option "FSAAMSPosX0" "0.000000" Option "FSAAMSPosY0" "0.000000" Option "FSAAMSPosX1" "0.000000" Option "FSAAMSPosY1" "0.000000" Option "FSAAMSPosX2" "0.000000" Option "FSAAMSPosY2" "0.000000" Option "FSAAMSPosX3" "0.000000" Option "FSAAMSPosY3" "0.000000" Option "FSAAMSPosX4" "0.000000" Option "FSAAMSPosY4" "0.000000" Option "FSAAMSPosX5" "0.000000" Option "FSAAMSPosY5" "0.000000" # === Misc Options === Option "UseFastTLS" "1" Option "BlockSignalsOnLock" "on" Option "UseInternalAGPGART" "no" Option "ForceGenericCPU" "no" BusID "PCI:1:0:0" # vendor=1002, device=4c66 Screen 0 EndSection # ********************************************************************** # Screen sections # ********************************************************************** Section "Screen" Identifier "Screen0" Device "vga0" # ATI Radeon Mobility 9200 Monitor "LCD-WXSGA" DefaultDepth 24 # Option "backingstore" Subsection "Display" Depth 24 Modes "1680x1050" "1280x1024" "1024x768" "800x600" "640x480" ViewPort 0 0 # initial origin if mode is smaller than desktop # Virtual 1280 1024 EndSubsection EndSection # ********************************************************************** # ServerLayout sections. # ********************************************************************** Section "ServerLayout" # The Identifier line must be present Identifier "Server Layout" Screen "Screen0" InputDevice "TouchPad" "CorePointer" InputDevice "Keyboard1" "CoreKeyboard" EndSection
Versiunea intiala de mayday147.