Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108904 - Hardware 3D Acceleration Guide: more troubleshooting
Summary: Hardware 3D Acceleration Guide: more troubleshooting
Status: RESOLVED WONTFIX
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Docs Team
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 11:31 UTC by adr
Modified: 2006-05-12 12:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dri-howto.xml.patch (dri-howto.xml.patch,923 bytes, patch)
2005-12-23 08:59 UTC, nm (RETIRED)
Details | Diff
dri-howto.xml.diff (dri-howto.xml.diff,2.11 KB, patch)
2005-12-24 14:16 UTC, adr
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description adr 2005-10-11 11:31:32 UTC
This might be usefull tips for the Troubleshooting section of the Hardware 3D 
Acceleration Guide. (Taken from this reality soap: 
http://forums.gentoo.org/viewtopic-p-2785398.html#2785398 )  ;-) 
 
--- 
Direct rendering is slow, and in /var/log/Xorg.0.log I have an error about 
falling back to PCI-mode. 
 
If you are using a 2.6 kernel, the hardware specific part of agpgart is a 
separate module. Check lsmod if this module loads automatically. If not, add 
it to /etc/modules.autoload.d/kernel-2.6 and reboot. 
--- 
X is crashing at restart or logout; mouse and keyboard not working anymore! 
 
Setting APG in /etc/X11/xorg.conf to a high value, may cause instability. 
Lower it to 4, 2 or 1. It may not even have an effect on your acceleration 
speed (FPS). 
--- 
 
 
Regards. 
 

Reproducible: Always
Steps to Reproduce:
Comment 1 nm (RETIRED) gentoo-dev 2005-12-23 08:59:01 UTC
Created attachment 75397 [details, diff]
dri-howto.xml.patch

Okay, this implements the agpgart autoload reference--this is indeed very important, otherwise the whole thing is screwed up!! :)

But, what do you mean by "APG"? Do you mean AGP?

"less /etc/X11/xorg.conf.example | grep -i AGP" doesn't have much, and "man xorg.conf" doesn't talk about any such values for any AGP option. What are you talking about?
Comment 2 nm (RETIRED) gentoo-dev 2005-12-23 10:20:31 UTC
(In reply to comment #1)
> But, what do you mean by "APG"? Do you mean AGP?
> 
> "less /etc/X11/xorg.conf.example | grep -i AGP" doesn't have much, and "man
> xorg.conf" doesn't talk about any such values for any AGP option. What are you
> talking about?

Never mind, I figured it out. Re-read the doc. :)

So you know, the "4" setting reflects the mode that the card and motherboard are capable of running at. All modern AGP cards and AGP-capable motherboards ship with 8x AGP interfaces, so that's why one might set 8. If you only have a 4x or 2x card/motherboard, then obviously 8 (8x) will not work.

Comment 3 adr 2005-12-24 14:16:11 UTC
Created attachment 75467 [details, diff]
dri-howto.xml.diff
Comment 4 adr 2005-12-24 14:16:48 UTC
(In reply to comment #3)
> Created an attachment (id=75467) [edit]
> dri-howto.xml.diff
> 

Hi,

My two tips above where meant for the Troubleshooting section, using question-answer style. But a small change to section 3 would be a good idea too. However, the patch is not correct.

For 2.4 kernels, there's only one module to load: "agpgart". Since 2.6, two modules should load: "agpgart" plus one for the hardware ("intel-agp" in the example). Loading "intel-agp", pulls in "agpgart" as dependency automatically. So the current example in the doc is correct for 2.6. Only a separate example for 2.4 should be added, to load "agpgart". B.t.w.: using /etc/modules.autoload.d/kernel-2.x may not be necessary on all systems, but it won't hurt either.

Setting "AGPMode" in /etc/X11/xorg.conf to the max. value that is supported by the hardware, may cause instability. Not setting a value in /etc/X11/xorg.conf may cause a lower default value to be used. In case of instability, it's a good idea to find out the current value used in /var/log/Xorg.0.log, and try specifying a lower value in /etc/X11/xorg.conf.

How about this patch... Changed to only one troubleshooting tip.
Comment 5 nm (RETIRED) gentoo-dev 2005-12-24 14:25:08 UTC
(In reply to comment #4)
> Setting "AGPMode" in /etc/X11/xorg.conf to the max. value that is supported by
> the hardware, may cause instability. Not setting a value in /etc/X11/xorg.conf
> may cause a lower default value to be used. In case of instability, it's a good
> idea to find out the current value used in /var/log/Xorg.0.log, and try
> specifying a lower value in /etc/X11/xorg.conf.
> 
> How about this patch... Changed to only one troubleshooting tip.


Actually, if you build agpgart as a module, it *must* be listed in the proper modules.autoload.d. Otherwise it will not be loaded at boot, which of course will cause problems.

Regarding the AGP settings, well, I've already implemented that in a patch elsewhere. Take a look at bug #116506 ; I've made quite a few changes. Still waiting to hear back from spyderous on that one. I did suggest that the modules.autoload.d mention could (and should) be integrated with my numerous changes to other parts of the existing doc.

Comment 6 Jan Kundrát (RETIRED) gentoo-dev 2005-12-25 06:07:42 UTC
(In reply to comment #5)
> Actually, if you build agpgart as a module, it *must* be listed in the proper
> modules.autoload.d. Otherwise it will not be loaded at boot, which of course
> will cause problems.

What about coldplug?
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-02 21:46:11 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Actually, if you build agpgart as a module, it *must* be listed in the proper
> > modules.autoload.d. Otherwise it will not be loaded at boot, which of course
> > will cause problems.
> 
> What about coldplug?

Doesn't handle agpgart, AFAIK. Probably because that would totally screw around with binary drivers.
Comment 8 nm (RETIRED) gentoo-dev 2006-05-12 12:49:16 UTC
Already fixed in bug #116506.

Also, if you specify an AGP setting not supported by your hardware (for example, you attempt to rice your system with 8x AGP though your motherboard only supports 4x), it defaults to 1x, so you'll be safe.