Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ATI amd64 drivers in december...
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 20, 21, 22  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Jan 18, 2005 8:23 pm    Post subject: Reply with quote

Before we get started make sure multilib is in make.conf..if its not do the following
Code:
nano -w /etc/make.conf
Add it
Code:
emerge sync

Code:
emerge --newuse world

Continue installing

Code:
cd /usr/portage/media-video/ati-drivers

Code:
nano -w ati-drivers-8.8.25.ebuild

Code:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/ati-drivers/ati-drivers-8.8.25.ebuild,v 1.3 2005/01/18 22:23:15 lu_zero Exp $

IUSE="multilib" #doc

inherit eutils rpm multilib linux-info linux-mod

DESCRIPTION="Ati precompiled drivers for r350, r300, r250 and r200 chipsets"
HOMEPAGE="http://www.ati.com"
SRC_URI="amd64? ( http://www2.ati.com/drivers/linux/fglrx64_6_8_0-${PV}-1.x86_64.rpm )"

LICENSE="ATI"
KEYWORDS="-* ~amd64"

DEPEND=">=virtual/linux-sources-2.4
>=x11-base/xorg-x11-6.8.0"

RDEPEND=">=x11-base/xorg-x11-6.8.0"
PROVIDE="virtual/opengl"

ATIBIN="${D}/opt/ati/bin"
RESTRICT="nostrip"

pkg_setup(){
#check kernel and sets up KV_OBJ
linux-mod_pkg_setup
# Set up X11 implementation
X11_IMPLEM_P="$(best_version virtual/x11)"
X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}"
X11_IMPLEM="${X11_IMPLEM##*\/}"
einfo "X11 implementation is ${X11_IMPLEM}."
}

src_unpack() {
local OLDBIN="/usr/X11R6/bin"

cd ${WORKDIR}
rpm_src_unpack

cd ${WORKDIR}/lib/modules/fglrx/build_mod

#epatch ${FILESDIR}/fglrx-3.9.0-allocation.patch

if kernel_is 2 6
then
#epatch ${FILESDIR}/fglrx-2.6.10-pci_get_class.patch
epatch ${FILESDIR}/8.08-kernel-2.6.10.patch
fi

rm -rf ${WORKDIR}/usr/X11R6/bin/fgl_glxgears
}

src_compile() {
einfo "Building the DRM module..."
cd ${WORKDIR}/lib/modules/fglrx/build_mod
if kernel_is 2 6
then
set_arch_to_kernel
addwrite "/usr/src/${FK}"
cp 2.6.x/Makefile .
export _POSIX2_VERSION="199209"
if use_m ;
then
make -C ${KV_DIR} M="`pwd`" modules || \
ewarn "DRM module not built"
else
make -C ${KV_DIR} SUBDIRS="`pwd`" modules || \
ewarn "DRM module not built"
fi
set_arch_to_portage
else
export _POSIX2_VERSION="199209"
# That is the dirty way to avoid the id -u check
sed -e 's:`id -u`:0:' \
-e 's:`uname -r`:${KV_FULL}:' \
-i make.sh
chmod +x make.sh
./make.sh || die "DRM module not built"
fi
}

pkg_preinst() {
# Clean the dinamic libGL stuff's home to ensure
# we don't have stale libs floating around ...
if [ -d "${ROOT}/usr/lib/opengl/ati" ]
then
rm -rf ${ROOT}/usr/lib/opengl/ati/*
fi
}

src_install() {
local ATI_ROOT="/usr/lib/opengl/ati"

cd ${WORKDIR}

# DRM module
insinto /lib/modules/${KV_FULL}/video
# set_kvobj
doins ${WORKDIR}/lib/modules/fglrx/build_mod/fglrx.${KV_OBJ}

local native_dir
use x86 && native_dir="lib"
use amd64 && native_dir="lib64"

# OpenGL libs
ATI_LIBS="${ATI_ROOT}/lib"
exeinto ${ATI_LIBS}
doexe ${WORKDIR}/usr/X11R6/${native_dir}/libGL.so.1.2
dosym libGL.so.1.2 ${ATI_LIBS}/libGL.so.1
dosym libGL.so.1.2 ${ATI_LIBS}/libGL.so
dosym libGL.so.1.2 ${ATI_LIBS}/libMesaGL.so

# X and DRI driver
if has_version ">=x11-base/xorg-x11-6.8.0-r4"
then
local X11_DIR="/usr/"
else
local X11_DIR="/usr/X11R6/"
fi

local X11_LIB_DIR="${X11_DIR}$(get_libdir)"


exeinto ${X11_LIB_DIR}/modules/drivers
doexe ${WORKDIR}/usr/X11R6/${native_dir}/modules/drivers/fglrx_drv.o
exeinto ${X11_LIB_DIR}/modules/dri
doexe ${WORKDIR}/usr/X11R6/${native_dir}/modules/dri/fglrx_dri.so
exeinto ${X11_LIB_DIR}/modules/linux
doexe ${WORKDIR}/usr/X11R6/${native_dir}/modules/linux/libfglrxdrm.a
# same as the xorg implementation
dosym ../${X11_IMPLEM}/extensions ${ATI_ROOT}/extensions
dosym ../../${X11_IMPLEM}/lib/libGL.la ${ATI_ROOT}/lib/libGL.la

#apps
insinto /etc/env.d
doins ${FILESDIR}/09ati
exeinto /opt/ati/bin
doexe usr/X11R6/bin/*

#ati custom stuff
cp -a ${WORKDIR}/usr/include ${D}/usr/include
insinto /usr/X11R6/include/X11/extensions
doins ${WORKDIR}/${X11_DIR}/include/X11/extensions/fglrx_gamma.h
cp -a ${WORKDIR}/usr/X11R6/${native_dir}/libfglrx_gamma.* \
${D}/${X11_LIB_DIR}

if use multilib ; then
einfo "Installing multilib support"
X11_LIB_DIR="${X11_DIR}$(get_multilibdir)"

exeinto ${ATI_ROOT}/lib32
doexe ${WORKDIR}/usr/X11R6/lib/libGL.so.1.2
dosym libGL.so.1.2 ${ATI_ROOT}/lib32/libGL.so.1
dosym libGL.so.1.2 ${ATI_ROOT}/lib32/libGL.so

exeinto ${X11_LIB_DIR}/modules/dri
doexe ${WORKDIR}/usr/X11R6/lib/modules/dri/fglrx_dri.so
fi

#docs
# if [ "`use doc`" ]
# then
# fi
}

pkg_postinst() {
# Ebuild shouldn't do this automatically, just tell the user to do it,
# otherwise it messes up livecd/gamecd stuff ... (drobbins, 1 May 2003)
# if [ "${ROOT}" = "/" ]
# then
# /usr/sbin/opengl-update ati
# fi

echo
einfo "To switch to ATI OpenGL, run \"opengl-update ati\""
einfo "To change your XF86Config you can use the bundled \"fglrxconfig\""
echo
ewarn "***"
ewarn "If you are experiencing problems with memory allocation try to add"
ewarn "this line to in your X11 configuration file:"
ewarn " Option \"KernelModuleParm\" \"agplock=0\" "
ewarn "That should solve the hangups you could have with Neverwinter Nights"
ewarn "***"
# DRM module
update-modules
}


Code:
ebuild ati-drivers-8.8.25.ebuild digest


Code:
USE=multilib emerge ati-drivers

Logout

Code:
/opt/ati/bin/fglrxinfo


Code:
opengl-update ati


Code:
cd /usr/lib/opengl/ati/lib


Code:
mv libGL.so.1.2 _libGL.so.1.2


Code:
wget http://home.comcast.net/~goodgames/libGL.so.1.2


Code:
ldconfig


Code:
fglrxconfig


Code:
cd /etc/X11


Code:
cp xorg.conf xorg.conf.bak01


Code:
cp XF86Config-4 xorg.conf


Your xorg.conf should look somthing like this:

Code:
# File: XF86Config-4
# File generated by fglrxconfig (C) ATI Research, a substitute for xf86config.

# Note by ATI: the below copyright notice is there for servicing possibly
# pending third party rights on the file format and the instance of this file.
#
# 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 T
O 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.
# **********************************************************************

# **********************************************************************
# DRI Section
# **********************************************************************
Section "dri"
# Access to OpenGL ICD is allowed for all users:
    Mode 0666
# Access to OpenGL ICD is restricted to a specific user group:
#    Group 100    # users
#    Mode 0660

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

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    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"

# 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/local/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
#    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    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><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
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

    Identifier   "Keyboard1"
    Driver   "kbd"
# For most OSs the protocol can be omitted (it defaults to "Standard").
# When using XQUEUE (only for SVR3 and SVR4, but not Solaris),
# uncomment the following line.

#    Option "Protocol"   "Xqueue"

    Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option "Xleds"      "1 2 3"

#    Option "LeftAlt"    "Meta"
#    Option "RightAlt"   "ModeShift"

# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults).  For example, for a non-U.S.
# keyboard, you will probably want to use:
#    Option "XkbModel"   "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
#    Option "XkbModel"   "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
#    Option "XkbLayout"  "de"
# or:
#    Option "XkbLayout"  "de"
#    Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
#    Option "XkbOptions" "ctrl:swapcaps"

# These are the default XKB settings for XFree86
#    Option "XkbRules"   "xfree86"
#    Option "XkbModel"   "pc101"
#    Option "XkbLayout"  "us"
#    Option "XkbVariant" ""
#    Option "XkbOptions" ""

#    Option "XkbDisable"

    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "pc101"
    Option "XkbLayout"   "us"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

    Identifier   "Mouse1"
    Driver      "mouse"
    Option      "Protocol" "IMPS/2"
    Option      "Device" "/dev/input/mice"
    Option      "ZAxisMapping" "4 5"
    Option      "Buttons" "7"

# When using XQUEUE, comment out the above two lines, and uncomment
# the following line.

#    Option "Protocol"   "Xqueue"

# Baudrate and SampleRate are only for some Logitech mice. In
# almost every case these lines should be omitted.

#    Option "BaudRate"   "9600"
#    Option "SampleRate" "150"

# Emulate3Buttons is an option for 2-button Microsoft mice
# Emulate3Timeout is the timeout in milliseconds (default is 50ms)

#    Option "Emulate3Buttons"
#    Option "Emulate3Timeout"    "50"

# ChordMiddle is an option for some 3-button Logitech mice

#    Option "ChordMiddle"

EndSection


# **********************************************************************
# Other input device sections
# this is optional and is required only if you
# are using extended input devices.  This is for example only.  Refer
# to the XF86Config man page for a description of the options.
# **********************************************************************
#
# Section "InputDevice"
#    Identifier  "Mouse2"
#    Driver      "mouse"
#    Option      "Protocol"      "MouseMan"
#    Option      "Device"        "/dev/mouse2"
# EndSection
#
# Section "InputDevice"
#    Identifier "spaceball"
#    Driver     "magellan"
#    Option     "Device"         "/dev/cua0"
# EndSection
#
# Section "InputDevice"
#    Identifier "spaceball2"
#    Driver     "spaceorb"
#    Option     "Device"         "/dev/cua0"
# EndSection
#
# Section "InputDevice"
#    Identifier "touchscreen0"
#    Driver     "microtouch"
#    Option     "Device"         "/dev/ttyS0"
#    Option     "MinX"           "1412"
#    Option     "MaxX"           "15184"
#    Option     "MinY"           "15372"
#    Option     "MaxY"           "1230"
#    Option     "ScreenNumber"   "0"
#    Option     "ReportingMode"  "Scaled"
#    Option     "ButtonNumber"   "1"
#    Option     "SendCoreEvents"
# EndSection
#
# Section "InputDevice"
#    Identifier "touchscreen1"
#    Driver     "elo2300"
#    Option     "Device"         "/dev/ttyS0"
#    Option     "MinX"           "231"
#    Option     "MaxX"           "3868"
#    Option     "MinY"           "3858"
#    Option     "MaxY"           "272"
#    Option     "ScreenNumber"   "0"
#    Option     "ReportingMode"  "Scaled"
#    Option     "ButtonThreshold"    "17"
#    Option     "ButtonNumber"   "1"
#    Option     "SendCoreEvents"
# EndSection

# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"
    Identifier  "My Monitor"
    HorizSync   31.5 - 68.7
    VertRefresh 60 - 100
    Option "DPMS"

# === mode lines based on GTF ===
# VGA @ 100Hz
# Modeline "640x480@100" 43.163 640 680 744 848 480 481 484 509 +hsync +vsync
# SVGA @ 100Hz
# Modeline "800x600@100" 68.179 800 848 936 1072 600 601 604 636 +hsync +vsync
# XVGA @ 100Hz
# Modeline "1024x768@100" 113.309 1024 1096 1208 1392 768 769 772 814 +hsync +vsync
# 1152x864 @ 60Hz
# Modeline "1152x864@60" 81.642 1152 1216 1336 1520 864 865 868 895 +hsync +vsync
# 1152x864 @ 85Hz
# Modeline "1152x864@85" 119.651 1152 1224 1352 1552 864 865 868 907 +hsync +vsync
# 1152x864 @ 100Hz
# Modeline "1152x864@100" 143.472 1152 1232 1360 1568 864 865 868 915 +hsync +vsync
# 1280x960 @ 75Hz
# Modeline "1280x960@75" 129.859 1280 1368 1504 1728 960 961 964 1002 +hsync +vsync
# 1280x960 @ 100Hz
# Modeline "1280x960@100" 178.992 1280 1376 1520 1760 960 961 964 1017  +hsync +vsync
# SXGA @ 100Hz
# Modeline "1280x1024@100" 190.960 1280 1376 1520 1760 1024 1025 1028 1085 +hsync +vsync
# SPEA GDM-1950 (60Hz,64kHz,110MHz,-,-): 1280x1024 @ V-freq: 60.00 Hz, H-freq: 63.73 KHz
# Modeline "GDM-1950"  109.62  1280 1336 1472 1720  1024 1024 1026 1062 -hsync -vsync
# 1600x1000 @ 60Hz
# Modeline "1600x1000" 133.142 1600 1704 1872 2144 1000 1001 1004 1035 +hsync +vsync
# 1600x1000 @ 75Hz
# Modeline "1600x1000" 169.128 1600 1704 1880 2160 1000 1001 1004 1044 +hsync +vsync
# 1600x1000 @ 85Hz
# Modeline "1600x1000" 194.202 1600 1712 1888 2176 1000 1001 1004 1050 +hsync +vsync
# 1600x1000 @ 100Hz
# Modeline "1600x1000" 232.133 1600 1720 1896 2192 1000 1001 1004 1059 +hsync +vsync
# 1600x1024 @ 60Hz
# Modeline "1600x1024" 136.385 1600 1704 1872 2144 1024 1027 1030 1060 +hsync +vsync
# 1600x1024 @ 75Hz
# Modeline "1600x1024" 174.416 1600 1712 1888 2176 1024 1025 1028 1069 +hsync +vsync
# 1600x1024 @ 76Hz
# Modeline "1600x1024" 170.450 1600 1632 1792 2096 1024 1027 1030 1070 +hsync +vsync
# 1600x1024 @ 85Hz
# Modeline "1600x1024" 198.832 1600 1712 1888 2176 1024 1027 1030 1075 +hsync +vsync
# 1920x1080 @ 60Hz
# Modeline "1920x1080" 172.798 1920 2040 2248 2576 1080 1081 1084 1118 -hsync -vsync
# 1920x1080 @ 75Hz
# Modeline "1920x1080" 211.436 1920 2056 2264 2608 1080 1081 1084 1126 +hsync +vsync
# 1920x1200 @ 60Hz
# Modeline "1920x1200" 193.156 1920 2048 2256 2592 1200 1201 1203 1242 +hsync +vsync
# 1920x1200 @ 75Hz
# Modeline "1920x1200" 246.590 1920 2064 2272 2624 1200 1201 1203 1253 +hsync +vsync
# 2048x1536 @ 60
# Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +vsync
# 2048x1536 @ 60
# Modeline "2048x1536" 266.952 2048 2200 2424 2800 1536 1537 1540 1589 +hsync +vsync
# 1400x1050 @ 60Hz M9 Laptop mode
# ModeLine "1400x1050" 122.000 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +vsync
# 1920x2400 @ 25Hz for IBM T221, VS VP2290 and compatible display devices
# Modeline "1920x2400@25" 124.620 1920 1928 1980 2048 2400 2401 2403 2434 +hsync +vsync
# 1920x2400 @ 30Hz for IBM T221, VS VP2290 and compatible display devices
# Modeline "1920x2400@30" 149.250 1920 1928 1982 2044 2400 2402 2404 2434 +hsync +vsync

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"

# 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      "vga"
# 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
# installed.

#    BusID       "PCI:0:10:0"

#    VideoRam    256

#    Clocks      25.2 28.3

EndSection

# === ATI device section ===

Section "Device"
    Identifier                          "ATI Graphics Adapter"
    Driver                              "fglrx"
# ### generic DRI settings ###

# === disable PnP Monitor  ===
    #Option                              "NoDDC"
# === disable/enable XAA/DRI ===
    Option "no_accel"                   "no"
    Option "no_dri"                     "no"
# === misc DRI settings ===
    Option "mtrr"                       "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
    Option "DesktopSetup"               "0x00000000"
    Option "MonitorLayout"              "AUTO, AUTO"
    Option "IgnoreEDID"                 "off"
    Option "HSync2"                     "unspecified"
    Option "VRefresh2"                  "unspecified"
    Option "ScreenOverlap"              "0"
# === TV-out Management ===
    Option "NoTV"                       "yes"     
    Option "TVStandard"                 "NTSC-M"     
    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 Management ===
    Option "Stereo"                     "off"
    Option "StereoSyncEnable"           "1"
# === FSAA Management ===
    Option "FSAAEnable"                 "no"
    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"                 "0"
    Option "BlockSignalsOnLock"         "on"
    Option "UseInternalAGPGART"         "no"
    Option "ForceGenericCPU"            "no"
    BusID "PCI:1:0:0"    # vendor=1002, device=4e48
    Screen 0
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  "Screen 1"
    Device      "ATI Graphics Adapter"
    Monitor     "My Monitor"
    DefaultDepth 24
    #Option "backingstore"

    Subsection "Display"
        Depth       24
        Modes       "1024x768"
        ViewPort    0 0  # initial origin if mode is smaller than desktop
#        Virtual     1280 1024
    EndSubsection
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  "Server Layout"

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

    Screen "Screen 1"

# 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 "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection

### EOF ###


Last edited by Tony420 on Thu Jan 20, 2005 6:21 am; edited 9 times in total
Back to top
View user's profile Send private message
Brain Fury
Guru
Guru


Joined: 10 Jul 2003
Posts: 357
Location: Düsseldorf (Germany)

PostPosted: Tue Jan 18, 2005 8:24 pm    Post subject: Reply with quote

@dangertools

I did just what you have said. But I still need a solution for my problem with glx using mesa instead of the ati drivers.
_________________
shift HAPPENS
Back to top
View user's profile Send private message
dangertools
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 278
Location: Saalfelden, Austria

PostPosted: Tue Jan 18, 2005 8:31 pm    Post subject: Reply with quote

maybe an agp-issue, had something similar on a 32bit machine a while ago too. try to switch from bultin to external or the other way round or see if you have agp in kernel.
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Jan 18, 2005 8:34 pm    Post subject: Reply with quote

well I have put everything that a newbie can possibly remember...let me know if it works!
Back to top
View user's profile Send private message
Brain Fury
Guru
Guru


Joined: 10 Jul 2003
Posts: 357
Location: Düsseldorf (Germany)

PostPosted: Tue Jan 18, 2005 8:34 pm    Post subject: Reply with quote

well i'll try to compile agp into the kernel and use external agp

@Tony
Doesn't work for me... still the same glx problem...

I'm going to reboot now and test the new kernel
_________________
shift HAPPENS
Back to top
View user's profile Send private message
Brain Fury
Guru
Guru


Joined: 10 Jul 2003
Posts: 357
Location: Düsseldorf (Germany)

PostPosted: Tue Jan 18, 2005 8:54 pm    Post subject: Reply with quote

okay.... it works now.. i don't know why but... who cares :D

I added /dev/agpart to the kernel, but didn't change the xorg.conf file.

Code:
/opt/ati/bin/fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: MOBILITY RADEON 9700 Generic
OpenGL version string: 1.3.4769 (X4.3.0-8.8.25)
Code:
glxgears
6645 frames in 5.0 seconds = 1329.000 FPS
7981 frames in 5.0 seconds = 1596.200 FPS
7978 frames in 5.0 seconds = 1595.600 FPS
7975 frames in 5.0 seconds = 1595.000 FPS
7979 frames in 5.0 seconds = 1595.800 FPS
7949 frames in 5.0 seconds = 1589.800 FPS

_________________
shift HAPPENS
Back to top
View user's profile Send private message
Pheee
n00b
n00b


Joined: 18 Jan 2005
Posts: 21

PostPosted: Tue Jan 18, 2005 8:56 pm    Post subject: Reply with quote

I would like to try this but my /dev/agpgart has --- next to it and i cant enable it in kernel.

anyone know why?
Back to top
View user's profile Send private message
duby2291
Guru
Guru


Joined: 17 Oct 2004
Posts: 583

PostPosted: Tue Jan 18, 2005 9:01 pm    Post subject: Reply with quote

Quote:
my /dev/agpgart has --- next to it and i cant enable it in kernel.


It's a dependancy for another part of the kernel so it is automaticly being compiled in
Back to top
View user's profile Send private message
Pheee
n00b
n00b


Joined: 18 Jan 2005
Posts: 21

PostPosted: Tue Jan 18, 2005 9:02 pm    Post subject: Reply with quote

Ok i will try this method, and see if it works, i'll report back with my findings.
Back to top
View user's profile Send private message
HotBBQ
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 275
Location: West Melbourne, FL

PostPosted: Tue Jan 18, 2005 9:03 pm    Post subject: Reply with quote

Tony420 wrote:
well I have put everything that a newbie can possibly remember...let me know if it works!


Thank you!!!
_________________
"If tyranny and oppression come to this land, it will be in the guise of fighting a foreign enemy." -- James Madison
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Jan 18, 2005 9:06 pm    Post subject: Reply with quote

Code:
bash-2.05b$ /opt/ati/bin/fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9800 Pro Generic
OpenGL version string: 1.3.4769 (X4.3.0-8.8.25)

Code:

bash-2.05b$ glxgears
15549 frames in 5.0 seconds = 3109.800 FPS
16172 frames in 5.0 seconds = 3234.400 FPS
16157 frames in 5.0 seconds = 3231.400 FPS
16149 frames in 5.0 seconds = 3229.800 FPS
16147 frames in 5.0 seconds = 3229.400 FPS
16029 frames in 5.0 seconds = 3205.800 FPS
::click::  h4x0r:activated :twisted:
39279 frames in 5.0 seconds = 7855.800 FPS
40650 frames in 5.0 seconds = 8130.000 FPS
40597 frames in 5.0 seconds = 8119.400 FPS
40623 frames in 5.0 seconds = 8124.600 FPS
40556 frames in 5.0 seconds = 8111.200 FPS
40619 frames in 5.0 seconds = 8123.800 FPS
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Tue Jan 18, 2005 9:24 pm    Post subject: Reply with quote

Well Tony420, with your version I actually get to see my desktop, so for me it is a great improvement. Thank you.

But, all is not yet working:

Code:
babo@rasta babo $ /opt/ati/bin/fglrxinfo
/opt/ati/bin/fglrxinfo: error while loading shared libraries: libGL.so.1: cannot
 open shared object file: No such file or directory


and the dual screen is working a bit strange but I'll leave that for now.

??
Back to top
View user's profile Send private message
jimbojetset
n00b
n00b


Joined: 01 Feb 2004
Posts: 67
Location: UK

PostPosted: Tue Jan 18, 2005 9:25 pm    Post subject: Reply with quote

To those who have got the driver working, what is the performance of the driver like? Are they stable and fast enough to recommend me taking my geforce3 out and swapping my 9800 pro back in?

Thanks
James
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Jan 18, 2005 9:28 pm    Post subject: Reply with quote

babo wrote:
Well Tony420, with your version I actually get to see my desktop, so for me it is a great improvement. Thank you.

But, all is not yet working:

Code:
babo@rasta babo $ /opt/ati/bin/fglrxinfo
/opt/ati/bin/fglrxinfo: error while loading shared libraries: libGL.so.1: cannot
 open shared object file: No such file or directory


and the dual screen is working a bit strange but I'll leave that for now.

??



you didnt copy the libGL that i provided i dont think...thats your problem
Back to top
View user's profile Send private message
HotBBQ
Apprentice
Apprentice


Joined: 03 Mar 2004
Posts: 275
Location: West Melbourne, FL

PostPosted: Tue Jan 18, 2005 9:31 pm    Post subject: Reply with quote

I am getting the following error when I try following Tony420's instructions:

Code:
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/ati-drivers-3.14.6 to /
>>> md5 src_uri ;-) fglrx64_6_8_0-8.8.25-1.x86_64.rpm

!!! ERROR: media-video/ati-drivers-3.14.6 failed.
!!! Function pkg_setup, Line 28, Exitcode 0
!!! Please ensure /usr/src/linux points to your kernel symlink!
!!! If you need support, post the topmost build error, NOT this status message.


Here is my /usr/src directory:

Code:
-rw-r--r--   1 root root    0 Jan 17 18:57 .keep
lrwxrwxrwx   1 root root   22 Jan 18 16:23 linux -> linux-2.6.10-gentoo-r5
drwxr-xr-x  19 root root 1280 Jan 13 12:36 linux-2.6.10-gentoo-r4
drwxr-xr-x  19 root root 1312 Jan 18 16:09 linux-2.6.10-gentoo-r5


Any ideas?
_________________
"If tyranny and oppression come to this land, it will be in the guise of fighting a foreign enemy." -- James Madison
Back to top
View user's profile Send private message
ArKay
n00b
n00b


Joined: 30 Nov 2003
Posts: 61

PostPosted: Tue Jan 18, 2005 9:34 pm    Post subject: Reply with quote

After executing "opengl-update ati" and downloading libGL.so.1.2.1 this happens:

Code:

gentoo lib # ldconfig
ldconfig: libraries libGL.so.1 and libGL.so.1.2 in directory /usr/lib have same soname but different type.

gentoo lib # ll /usr/lib/libGL.so*
lrwxrwxrwx  1 root root      36 Jan 18 22:29 /usr/lib/libGL.so -> /usr/lib/opengl/ati/lib/libGL.so.1.2*
lrwxrwxrwx  1 root root      36 Jan 18 22:29 /usr/lib/libGL.so.1 -> /usr/lib/opengl/ati/lib/libGL.so.1.2*
-rwxr-xr-x  1 root root 1015425 Jan 18 21:54 /usr/lib/libGL.so.1.2*

gentoo lib # ll /usr/lib/opengl/ati/lib
total 1810
drwxr-xr-x  2 root root     224 Jan 18 22:30 ./
drwxr-xr-x  3 root root     128 Jan 18 21:54 ../
lrwxrwxrwx  1 root root      27 Jan 18 21:54 libGL.la -> ../../xorg-x11/lib/libGL.la
lrwxrwxrwx  1 root root      12 Jan 18 21:54 libGL.so -> libGL.so.1.2*
lrwxrwxrwx  1 root root      12 Jan 18 21:54 libGL.so.1 -> libGL.so.1.2*
-rwxr-xr-x  1 root root  835306 Jan 18 21:54 libGL.so.1.2*
-rw-r--r--  1 root root 1015427 Jan 18 21:15 libGL.so.1.2.1
lrwxrwxrwx  1 root root      12 Jan 18 21:54 libMesaGL.so -> libGL.so.1.2*


Do we have to rename the downloaded libGL.so.1.2.1 to libGL.so.1.2?
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Tue Jan 18, 2005 9:35 pm    Post subject: Reply with quote

Tony420 wrote:

you didnt copy the libGL that i provided i dont think...thats your problem


I did, and repeated this one again:

Code:
babo@rasta babo $ ls /usr/lib/opengl/ati/lib/
libGL.la  libGL.so.1    libGL.so.1.2.1    libMesaGL.so
libGL.so  libGL.so.1.2  libGL.so.1.2.1.1
Back to top
View user's profile Send private message
ArKay
n00b
n00b


Joined: 30 Nov 2003
Posts: 61

PostPosted: Tue Jan 18, 2005 9:40 pm    Post subject: Reply with quote

Does anyone know what this could mean?

(II) fglrx(0): Composite extension enabled, disabling direct rendering
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *
Back to top
View user's profile Send private message
Schmokin
n00b
n00b


Joined: 21 Dec 2004
Posts: 47
Location: Salem, OR

PostPosted: Tue Jan 18, 2005 9:42 pm    Post subject: Reply with quote

jimbojetset wrote:
To those who have got the driver working, what is the performance of the driver like? Are they stable and fast enough to recommend me taking my geforce3 out and swapping my 9800 pro back in?

Thanks
James

This is for my X800 XT Platinum:
Code:
khall@aliens ~ $ glxgears -display :0
32226 frames in 5.0 seconds = 6445.200 FPS
37827 frames in 5.0 seconds = 7565.400 FPS
37902 frames in 5.0 seconds = 7580.400 FPS
37918 frames in 5.0 seconds = 7583.600 FPS
37920 frames in 5.0 seconds = 7584.000 FPS
37881 frames in 5.0 seconds = 7576.200 FPS
37921 frames in 5.0 seconds = 7584.200 FPS
37917 frames in 5.0 seconds = 7583.400 FPS


I played a little UT2k4 last night, was very smooth. Tried to play doom3 but it wouldn't run, I think that's more of a sound issue, I'm having problems with my sound right now.
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Jan 18, 2005 9:45 pm    Post subject: Reply with quote

ArKay wrote:
After executing "opengl-update ati" and downloading libGL.so.1.2.1 this happens:

Code:

gentoo lib # ldconfig
ldconfig: libraries libGL.so.1 and libGL.so.1.2 in directory /usr/lib have same soname but different type.

gentoo lib # ll /usr/lib/libGL.so*
lrwxrwxrwx  1 root root      36 Jan 18 22:29 /usr/lib/libGL.so -> /usr/lib/opengl/ati/lib/libGL.so.1.2*
lrwxrwxrwx  1 root root      36 Jan 18 22:29 /usr/lib/libGL.so.1 -> /usr/lib/opengl/ati/lib/libGL.so.1.2*
-rwxr-xr-x  1 root root 1015425 Jan 18 21:54 /usr/lib/libGL.so.1.2*

gentoo lib # ll /usr/lib/opengl/ati/lib
total 1810
drwxr-xr-x  2 root root     224 Jan 18 22:30 ./
drwxr-xr-x  3 root root     128 Jan 18 21:54 ../
lrwxrwxrwx  1 root root      27 Jan 18 21:54 libGL.la -> ../../xorg-x11/lib/libGL.la
lrwxrwxrwx  1 root root      12 Jan 18 21:54 libGL.so -> libGL.so.1.2*
lrwxrwxrwx  1 root root      12 Jan 18 21:54 libGL.so.1 -> libGL.so.1.2*
-rwxr-xr-x  1 root root  835306 Jan 18 21:54 libGL.so.1.2*
-rw-r--r--  1 root root 1015427 Jan 18 21:15 libGL.so.1.2.1
lrwxrwxrwx  1 root root      12 Jan 18 21:54 libMesaGL.so -> libGL.so.1.2*


Do we have to rename the downloaded libGL.so.1.2.1 to libGL.so.1.2?


oops yea I didnt notice that...let me fix that and fix the file on the server
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Jan 18, 2005 9:49 pm    Post subject: Reply with quote

ok I updated it...sorry ! the libGL file was wrong! I fixed my original post
Back to top
View user's profile Send private message
babo
Guru
Guru


Joined: 10 Aug 2004
Posts: 477
Location: Ljubljana

PostPosted: Tue Jan 18, 2005 9:55 pm    Post subject: Reply with quote

works now Tony420 8)

Last edited by babo on Tue Jan 18, 2005 9:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Jan 18, 2005 9:57 pm    Post subject: Reply with quote

wahooo...im happy to hear that
Back to top
View user's profile Send private message
Master_Of_Disaster
l33t
l33t


Joined: 28 Feb 2003
Posts: 610
Location: 15.05072° East, 48.13747° North (aka Mauer), Austria

PostPosted: Tue Jan 18, 2005 10:00 pm    Post subject: Reply with quote

@Schmokin:
How the heck did you accomplish this? Radeon 9800 XT over here, and I got about ~3500 fps... Would you mind PN me your xorg.conf?
_________________
post tenebras lux, post fenestras tux
Registered Linux User Nr. 312509
Adopt an unanswered post today!
Back to top
View user's profile Send private message
Tony420
Apprentice
Apprentice


Joined: 16 Mar 2004
Posts: 193
Location: Corona, CA

PostPosted: Tue Jan 18, 2005 10:11 pm    Post subject: Reply with quote

Master_Of_Disaster wrote:
@Schmokin:
How the heck did you accomplish this? Radeon 9800 XT over here, and I got about ~3500 fps... Would you mind PN me your xorg.conf?



He has an X800XT PE....You have 9800...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 20, 21, 22  Next
Page 13 of 22

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum