BLFS - ATI Radeon & Xorg - drm report modesetting isn't supported
Hello there,
I have often found solutions for problems with Linux here by searching through the forum, now is the first time for me to ask for help, because neither google nor linuxquestions.org are helpful with my issue with Xorg. Recently I set up a LFS 7.3 system and am now trying to get on to make it my own unique working environment. Currently I have problems getting Xorg Server to work with my two Radeon HD 6570 cards. I compiled all the packages in "BLFS - 24. X Window System Environment", recompiled the Kernel with ATI Radeon Graphics Support and with the firmware for my cards. my xorg.conf as suggested at BLFS - Glamor Acceleration: Code:
Section "Module" /var/log/Xorg.0.log (only the interesting parts with warnings and errors): Code:
...(initializing, loading modules ...) ... |
Quote:
1. Even though it may still work, xorg.conf has been replaced by .conf files in /etc/X11/xorg.conf.d. But you may not need anything at all in there. I use one that I named radeon.conf for a Device section to specify the radeon driver only to clean up the messaging in the Xorg log. It's strictly cosmetic for the startup messaging. Except for that reason, I wouldn't need any Xorg config files. For now, I would skip it because it may confuse other issues. 2. I recommend that you compile the kernel with the radeon driver built as a module. If you build it in, then the kernel may attempt to access the firmware before it has access to the filesystem. That can cause it to drop back to vesa. If this is so in your case, there is a way to deal with the firmware when the driver is built in. But it's simpler and perfectly effective just to build the radeon driver as a module and be done with this issue. Code:
<M> ATI Radeon (CONFIG_DRM_RADEON=m, module=radeon) NOTE: There used to be a kernel option right below that to enable radeon modesetting...3. Enable Direct Rendering Manager as a module. Code:
<M> Direct Rendering Manager (CONFIG_DRM=m, module=drm) Code:
{M} Support for framebuffer devices (CONFIG_FB=m, module=fb) Code:
-M- Framebuffer Console support (CONFIG_FRAMEBUFFER_CONSOLE=m, module=fbcon, selected by DRM_KMS_HELPER) No promises for anything above this sentence. |
Thanks for your detailed reply.
I already tested the kernel with ATI Radeon driver as module without success. The other options you mentioned were already activated as built-ins. Now I recompiled the kernel with all options from your post as modules, but I still get only VESA. /var/log/Xorg.0.log still complains about "[KMS] drm report modesetting isn't supported." Any more suggestions? |
If in doubt, just grab a kernel configuration from the Slackware-Current x86 or x64 trees and use them to build your kernel. Slackware's kernel is fairly much foolproof, and, while it may build non-essential drivers, it may have an option LFS/BLFS doesn't cover specifically, plus it saves a ton of grunt-work to determine what is and isn't used by your system.
You should also check your x11-drivers, libmesa, and radeon driver setup and configurations before you proceed further. Do note that some of the Radeon series cards from the most recent batch from AMD have only experimental support in both the kernel and drivers, especially those using Southern Islands series GPUs. Because you have a 6570 series Radeon HD you should probably first attempt to use the standard libmesa acceleration rather than the glamor-egl. If all else fails you can always grab the Proprietary driver from AMD and give it a shot. |
I saw in the BLFS book where you got the xorg.conf file stuff for glamor. So do what the book says for that. I still think it would be more consistent with the Xorg-7.7 Testing and Configuration section of the book for that config stuff to be in /etc/X11/xorg.conf.d, but that isn't very relevant at the moment.
P.S.: I take that statement back, sort of. The xorg.conf.d folder may be the recommended way nowadays, but the xorg.conf file still is acceptable and read by the xorg server. In fact, xorg.conf, when it exists, takes precedence over files in /etc/X11/xorg.conf.d.For the radeon driver and KMS business, study the output of dmesg for clues about anything that is missing for the radeon driver. Like firmware, for example. The Gentoo Radon wiki identifies what firmware the HD6570 needs. Check that you have all of that stuff installed somewhere in /lib/firmware. It's not unheard of to have to install some firmware not provided by the kernel. I had to find and install a single firmware file, and discovering that was not straight-forward. Other sites that may help... http://wiki.x.org/wiki/radeonBuildHowTo/ http://www.freedesktop.org/wiki/Software/Glamor/ |
Please show your full Xorg.0.log file.
Adam |
I already have all the needed firmware files installed.
Code:
# ls /lib/firmware/radeon http://pastebin.com/aPkpMWyF Here is the full /var/log/Xorg.0.log: http://pastebin.com/hxrFYckf |
The first thing that jumps out at me is that you have the AMD proprietary driver installed, yet you are trying to use the open source driver. You need to remove the proprietary one. The next thing I see is that the kernel is never loading it's direct rendering module for your hardware. If you log in at the console and type 'modprobe radeon' (as root or with sudo) do you get any error?
Adam |
That was it, adamk75, thank you very much!
The kernel module wasn't loaded. There were no errors after modprobing it and X started just fine with the radeon driver. Since I'm doing that all for learning and experience, please, would you point me to the lines from which you concluded that the module was missing and the proprietary driver was installed (yes it was, but I thought I wiped it off the disk - however, it is blacklisted and does not seem to interfere)? |
Quote:
And, yes, the fglrx driver is interfering. If you check the Xorg log file, when it loads the GLX module, you can see it's loading the proprietary GLX module from AMD, not the open source one from Xorg. 3D acceleration will not work. Adam |
Thank you, I really appreciate your kind help.
I have now everything running properly. Radeon module is loading during boot, and I got rid of the remains of the fglrx driver completely and got 3D acceleration running. Next step will be to configure X for a dual head setup. I will try first by myself - when I get stuck, I know where to get support :) |
Quote:
|
If your Xorg configuration uses driver "ati" then it's the Free driver. The OEM driver is "fglrx".
|
Quote:
xorg.conf Quote:
Quote:
When I use the vesa driver, it seems to hang but does not start. Here is the end of the output of "startx" Quote:
Quote:
Quote:
|
Try removing all configurations for X and use the method to generate a configuration as posted in this section. That should help. Also, try installing the firmware for the video adapter as well. The latest BLFS book should describe how to do this.
|
All times are GMT -5. The time now is 05:26 AM. |