SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61
Rep:
Direct Rendering and fglrx
This problem was not solved from reading all the other threads so I will go ahead. I can't seem to get direct rendering to work this time around. I recently reinstalled slackware and previously it worked fine.
The fglrx drivers in the xorg.0.log show direct rendering as enabled yet when I run glxgears it returns a no and obviously it doesn't work.
When I run fgl_glxgears it simply returns an error of BadLength and crashes. That seems to be a VERY bad thing.
The display driver requires POSIX shared memory to be enabled on the system in order to run these applications correctly. This feature should be enabled by default on most current Linux distributions, but may be disabled intentionally by some system administrators or not included in older distributions.
To enable POSIX shared memory on your system, perform the following as root:
1. Add to following line to /etc/fstab (if it isn't there already):
tmpfs /dev/shm tmpfs defaults 0 0
2. Mount POSIX shared memory as follows:
mount /dev/shm
3. Issue the following command to check that it mounted properly:
mount | grep "shm"
4. If the mount was successful, then the following output (or similar) should appear:
tmpfs on /dev/shm type tmpfs (rw)
At this point, POSIX shared memory is enabled. Your 3D applications should run properly and the error message above should no longer occur.
I just went through this again. From a fresh install of Slack 10.1 (2.4 kernel), and the latest drivers from ATI, these were the most important things for me to get it to work:
1. Disable DRI (DRM) in the kernel, recompile. As shipped, slack has it turned on.
2. Set UseinternalAGP to "no" in the xorg.conf that fglrxconfig produces. Also, make sure the agpgart module is loaded (or built into the kernel) before startx.
Other than those 2 points, I pretty much just followed the standard procedure outined in countless threads.
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61
Original Poster
Rep:
Sorry if I sounded rude, was just trying to point out that I had posted it in the topic. Text doesn't display tone of voice unfortunately.
Anyways I went to that thread and I already have fglrx loaded as a module in the kernel and the configuration was setup using fglrxconfig which I am currently using. I didn't see anything in that thread about a failure of direct rendering. Maybe I overlooked it though.
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61
Original Poster
Rep:
Ok well I saw stuff regarding my problem with direct rendering but none of it helped me out. I found this in dmesg and I think it may be the issue at hand:
[fglrx] Internal AGP support requested, but kernel AGP support active.
[fglrx] Have to use kernel AGP support to avoid conflicts.
Why is fglrx haven't to use the kernel AGP support? That is most likely the problem. How would one go about fixing this conflict so to speak?
Originally posted by drakethegreat Ok well I saw stuff regarding my problem with direct rendering but none of it helped me out. I found this in dmesg and I think it may be the issue at hand:
[fglrx] Internal AGP support requested, but kernel AGP support active.
[fglrx] Have to use kernel AGP support to avoid conflicts.
Why is fglrx haven't to use the kernel AGP support? That is most likely the problem. How would one go about fixing this conflict so to speak?
Man, either disable use of internal AGP handler of fglrx driver in xorg.conf in section for your ATI card (Option "UseInternalAGPGART" "no") or unload agpgart kernel module (
Code:
modprobe -r agpgart
) before starting X. If AGP support is built in your kernel, you have to go with the first option.
Distribution: None (Linux doesn't support my basic hardware)
Posts: 61
Original Poster
Rep:
I'm no longer getting that message about the kernel agpgart when I run startx but there is still a agpgart module loading and I still don't have direct rendering. Like I said, that option in the xorg.conf file is set to no and always has been so I'm confused about wtf is going on with this module.
Since you set the internal param to no, you need the agpgart module loaded. Which is why it probably shows up when you startx.
Maybe try one last thing: get out of X, 'modprobe agpgart' to make sure it is loaded. Then startx.
If you still don't have direct rendering (how are you confirming this?), look through /var/log/Xorg.0.log for any (EE), and let us know the errors you are getting.
The best way I know to confirm direct rendering is 'fglrxinfo'. It should output ATI as vendor.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.