LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-03-2004, 04:57 AM   #1
dataangel
Member
 
Registered: Aug 2004
Posts: 51

Rep: Reputation: 15
Can get ATI drivers to load, but no acceleration


I have a radeon 9700 pro, and an nforce2 chipset motherboard. I'm running fedora core 2 and I'm trying to get 3d acceleration with the ati binary drivers working. I found a few howtos online and have already done the following:

-Installed the rpm (no errors)
-Patched the make files (no errors)
-Make'd the module (/proc/version permission denied but otherwise no errors)
-Make Install'd the module (no errors)
-Edited xorg.conf (no problem)

I run startx and everything loads fine -- looks like it's all working. But fglrxinfo still reports that I'm using the mesa libraries. I've tried using internal and external AGP, but it doesn't seem to matter. Curiously enough:

Code:
# lsmod | grep fglrx
fglrx                 200204  0
# lsmod | grep agp
#
Curiously enough fglrx is loaded, but no agpgart module is to be found! I'm not sure but I think that could be the problem. I googled around for advice but the only stuff I found recommended running opengl-update ati on Gentoo, but that's not my distro. This is a fresh install of fedora -- I'm using the default kernel.

Anyone know why no agp modules would be loaded, or just how to get acceleration working? :P

In case it would help, I've added my xorg.conf below.

Code:
# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
	Identifier     "Default Layout"
	Screen      0  "Screen0" 0 0
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"

# RgbPath is 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.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
	RgbPath      "/usr/X11R6/lib/X11/rgb"
	FontPath     "unix/:7100"
EndSection

Section "Module"
	Load  "dbe"
	Load  "extmod"
	Load  "fbdevhw"
	Load  "glx"
	Load  "record"
	Load  "freetype"
	Load  "type1"
	Load  "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#	Option	"Xleds"		"1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
#	Option	"XkbDisable"
# 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"
# Or if you just want both to be control, use:
#	Option	"XkbOptions"	"ctrl:nocaps"
#
	Identifier  "Keyboard0"
	Driver      "keyboard"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "us"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "IMPS/2"
	Option	    "Device" "/dev/input/mice"
	Option	    "ZAxisMapping" "4 5"
	Option	    "Emulate3Buttons" "yes"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "ENVISION"
	DisplaySize  320	240
	HorizSync    30.0 - 70.0
	VertRefresh  50.0 - 160.0
	Option	    "dpms"
EndSection

Section "Device"
	Identifier  "Videocard0"
	Driver      "radeon"
	VendorName  "Videocard vendor"
	BoardName   "ATI Radeon 9700 Pro"
EndSection

Section "Device"
    Identifier                          "Radeon 9600XT - fglrx"
    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"                     "" 
    Option "VRefresh2"                  "" 
    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"           "0x06419064"
    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"                 "yes"
    Option "FSAAScale"                  "4"
    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:2:0:0"    # vendor=1002, device=4152
    Screen 0
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Radeon 9600XT - fglrx"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes    "1024x768" "800x600" "640x480"
	EndSubSection
EndSection

Section "DRI"
	Group        0
	Mode         0666
EndSection
 
Old 09-03-2004, 08:06 AM   #2
enigma Z
Member
 
Registered: Sep 2003
Location: The edge of the world, peering down into the dark abyss
Distribution: Gentoo 2004.2
Posts: 224

Rep: Reputation: 30
Did you run flglrxconfig? If you did, you will need to copy the XF86Config-4 to xorg.conf

Also, in fglrxconfig, did you tell it to use the driver integrated agpgart or the kernel one? You might want to try the other option. (if you can't remember, then try the integrated one first)

Oh yeah, and can you post the output of glxinfo?
 
Old 09-03-2004, 03:08 PM   #3
dataangel
Member
 
Registered: Aug 2004
Posts: 51

Original Poster
Rep: Reputation: 15
I think I've found the problem. AGP support and nforce2 chipset support are directly compiled into the fc2 kernel, not as modules, and I read that the ati drivers only work when they're compiled as modules. So that's what I'm doing now... *waits for compiling to finish*
 
Old 09-03-2004, 04:59 PM   #4
dataangel
Member
 
Registered: Aug 2004
Posts: 51

Original Poster
Rep: Reputation: 15
Didn't work. The kernel won't even load. This is really wierd:

1. I've read elsewhere that the stock Fedora Core 2 kernel already has agpgart compiled as a module! but /sbin/modprobe agpgart returns module not found!

2. I copied the existing config file from /boot to use for my kernel compilation. I only made 1!!! change, making nvidia-agp and agp-gart modules. But the new kernel won't boot. This doesn't make any sense if that's really the config file for the stock kernel (which works fine for me).

The error the kernel gives me is "Version magic 2.6.5-1.358 686 regparm 4kstacks gcc-3.3" should be "Version magic 2.6.5-1.358agp 686 regparm 4kstacks gcc-3.3". 2.6.5-1.358agp is what I changed EXTRAVERSION in the makefile to be when I compiled the kernel. The problem is that it gives this error while loading ext3 -- my root filesystem, so I can't boot :P

Steps I followed:
oopy old config file from /boot to /usr/src/linux-2.6.5-1.358 naming it .config
make menuconfig
Change agpgart and nforce2 chipset to modules
Save and exit
make clean
make dep (said was unnecessary)
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot
cp System.map /boot/System-2.6.5-1.358agp.map
Edited grub.conf to point to the new image
Rebooted and picked new kernel in bootloader
Can't boot :P

I'm guessing I'm doing something wrong during setting up the new kernel? Help?
 
Old 09-04-2004, 01:25 AM   #5
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 137Reputation: 137
I had a similar problem in re-compiling the kernel. But my system booted without any problems. Try reinstalling the kernel sources and get the fglrx module to install and patch the kernel.
 
Old 09-04-2004, 02:28 AM   #6
dataangel
Member
 
Registered: Aug 2004
Posts: 51

Original Poster
Rep: Reputation: 15
I haven't made any modifications to the kernel sources so I'm not sure why that would be the problem, but I'll try it.

I've gotten the fglrx module to install -- just doesn't accelerate.

Patch the kernel? What patch? You mean get the latest kernel from up2date and try again?

Also, when compiling a new kernel, do I need to use mkinitrd? I've looked at numerous compiling howtos on the net, and most don't mention it but I recall seeing one that did. I'm not sure if this is something that's outdated now like make dep.

Last edited by dataangel; 09-04-2004 at 02:49 AM.
 
Old 09-04-2004, 06:45 AM   #7
vharishankar
Senior Member
 
Registered: Dec 2003
Posts: 3,161
Blog Entries: 4

Rep: Reputation: 137Reputation: 137
The fglrx module should detect a kernel build environment while its getting installed (I used a rpm). It will automatically patch the kernel when after it's installed. Report the messages during the fglrx installation.

For me it worked fine after I installed the kernel development package and reinstalled fglrx module.

Now I'm able to play UT2004 without any problems (although I get the occasional freeze).

Last edited by vharishankar; 09-04-2004 at 06:47 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ATI Proprietary Drivers (Radeon 9700) correctly installed but no 3D acceleration g-rom Linux - Hardware 5 05-11-2004 05:59 AM
ATI drivers does not load after compile in 2.6.0 kernel andrzejros Linux - Hardware 3 04-04-2004 01:07 AM
ATI drivers won't load at startup Preiselbeere Mandriva 1 03-28-2004 02:59 AM
how to get 3d acceleration with ati drivers ? overclocking Linux - Games 6 03-03-2004 08:08 PM
How Do I force load drivers for my ATI 9600pro Lfsve82 Linux - Hardware 0 02-08-2004 06:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration