Frequently Asked Questions: Difference between revisions

From cchtml.com
(Undo revision 916 by Mooninite (talk))
(→‎How do I configure my system to use the fglrx driver?: Added info about auto X configuration generation though amdconfig)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Hello!I'm having promelbs installing ati on my vaio vgn-s1xpwhith a radeon 9700.In fglrxinfo it gives me this:Xlib: extension XFree86-DRI missing on display :0.0 When I turn composites off, I thik the dri loads, but I only get a black screen! Have to turn composites on again to be able to use ubunto (6.10).Any help would be apreciated!Thanks in advance!
== What is fglrx? ==
The AMD graphic driver for Linux is called fglrx.
 
==Installation==
===How do I know fglrx is installed correctly?===
There are several ways to check if fglrx is loaded and running.
<br>1. Check your X.org or XFree86 log. You should see "DRI Initialization Successful."
# less /var/log/Xorg.0.log
or
  # less /var/log/XFree86.0.log
2. Check glxinfo. You should see "direct" and not "indirect."
# glxinfo | grep direct
3. Check your kernel log. You should see fglrx messages near the bottom.
  # dmesg
4. Check your modules. You should see fglrx loaded.
  # lsmod | grep fglrx
*NOTE: [[Glxgears is not a Benchmark|glxgears]] is not a definite way of checking the installation of fglrx.
 
=== Is the rebooting really necessary? ===
 
No.
 
However, rebooting is the easiest method to ensure that the kernel module(s) from the old driver are unloaded and the fglrx module is loaded instead. If you don't want to reboot for some reason, you may manually shut down Xorg, unload any old "drm", "radeon" or "fglrx" modules and then start Xorg again.
 
==Kernel==
===Why does fglrx not work for my kernel?===
The development process of the fglrx driver and the Linux kernel are not on the same level.  The fglrx driver requires some special interactions with the kernel memory API and these tend to change between kernel versions.
 
There is also an 11-12 week cycle required to develop, validate and test each release of an ATI driver <ref>http://www.phoronix.com/scan.php?page=article&item=735&num=1</ref>.  ATI will only look to support the latest kernel that is officially out (no -rc or -git releases are supported) at the time they release a driver. Example: fglrx version A comes out Monday, but kernel version B comes out Tuesday. Kernel version B is not supported by fglrx version A. (but might be able to work anyway by doing a 'modprobe -f fglrx' in a shell)
 
The binary part of ATI's kernel module has no explicit dependency on the Linux kernel.  There are a set of source files that provide the glue to the kernel.  This is where the dependency to different kernels exist.  As a result, user contributed patches for newer kernels can often be found by searching [http://ati.cchtml.com Bugzilla].
 
Note: That's why an opensource hardware driver is necessary. Hopefully, AMD will continue releasing more documentation and we will be able to code our own maintainable and free driver, thus freeing ourselves from this dependency on AMD's good will - and freeing AMD to focus on hardware.
 
==X Configuration==
===How do I configure my system to use the fglrx driver?===
*aticonfig
:Command line program to modify the /etc/X11/xorg.conf file.
:Use "--initial" (without quotes) to generate a X configuration file if X doesn't see the fglrx driver
*amdcccle
:GUI program that allows detailed configuration over the driver's controls.
*/etc/X11/xorg.conf
:X configuration file. Find the Device section for your ATI card and edit the Driver line to read
Driver "fglrx"
:Note: This is the least-preferred method. Many things can stop working.
 
==Fixed Monitor Resolution==
Particularly when using affordable KVM switches (where one monitor can be connected to multiple computers), there may be problems when a machine boots 'headless' (without the monitor assigned). In that case, the EDID data of the monitor cannot be accessed, so the driver may start up with an unwanted standard resolution. Unfortunately, there seems to be no way to force the native monitor resolution in the configuration file.
 
However, the driver provides a work-around solution: the EDID data can be overridden, by providing the extracted monitor information as a small data file in /etc/ati. See the hints in this bug report: http://ati.cchtml.com/show_bug.cgi?id=415#c2
 
==Troubleshooting==
* See [[Troubleshooting]] page.
 
==See Also==
*[http://support.amd.com/en-us/search/faq AMD Support FAQ]
 
==References==
<references/>

Latest revision as of 05:57, 17 September 2014

What is fglrx?

The AMD graphic driver for Linux is called fglrx.

Installation

How do I know fglrx is installed correctly?

There are several ways to check if fglrx is loaded and running.
1. Check your X.org or XFree86 log. You should see "DRI Initialization Successful."

# less /var/log/Xorg.0.log
or
# less /var/log/XFree86.0.log

2. Check glxinfo. You should see "direct" and not "indirect."

# glxinfo | grep direct

3. Check your kernel log. You should see fglrx messages near the bottom.

# dmesg

4. Check your modules. You should see fglrx loaded.

# lsmod | grep fglrx
  • NOTE: glxgears is not a definite way of checking the installation of fglrx.

Is the rebooting really necessary?

No.

However, rebooting is the easiest method to ensure that the kernel module(s) from the old driver are unloaded and the fglrx module is loaded instead. If you don't want to reboot for some reason, you may manually shut down Xorg, unload any old "drm", "radeon" or "fglrx" modules and then start Xorg again.

Kernel

Why does fglrx not work for my kernel?

The development process of the fglrx driver and the Linux kernel are not on the same level. The fglrx driver requires some special interactions with the kernel memory API and these tend to change between kernel versions.

There is also an 11-12 week cycle required to develop, validate and test each release of an ATI driver [1]. ATI will only look to support the latest kernel that is officially out (no -rc or -git releases are supported) at the time they release a driver. Example: fglrx version A comes out Monday, but kernel version B comes out Tuesday. Kernel version B is not supported by fglrx version A. (but might be able to work anyway by doing a 'modprobe -f fglrx' in a shell)

The binary part of ATI's kernel module has no explicit dependency on the Linux kernel. There are a set of source files that provide the glue to the kernel. This is where the dependency to different kernels exist. As a result, user contributed patches for newer kernels can often be found by searching Bugzilla.

Note: That's why an opensource hardware driver is necessary. Hopefully, AMD will continue releasing more documentation and we will be able to code our own maintainable and free driver, thus freeing ourselves from this dependency on AMD's good will - and freeing AMD to focus on hardware.

X Configuration

How do I configure my system to use the fglrx driver?

  • aticonfig
Command line program to modify the /etc/X11/xorg.conf file.
Use "--initial" (without quotes) to generate a X configuration file if X doesn't see the fglrx driver
  • amdcccle
GUI program that allows detailed configuration over the driver's controls.
  • /etc/X11/xorg.conf
X configuration file. Find the Device section for your ATI card and edit the Driver line to read
Driver "fglrx"
Note: This is the least-preferred method. Many things can stop working.

Fixed Monitor Resolution

Particularly when using affordable KVM switches (where one monitor can be connected to multiple computers), there may be problems when a machine boots 'headless' (without the monitor assigned). In that case, the EDID data of the monitor cannot be accessed, so the driver may start up with an unwanted standard resolution. Unfortunately, there seems to be no way to force the native monitor resolution in the configuration file.

However, the driver provides a work-around solution: the EDID data can be overridden, by providing the extracted monitor information as a small data file in /etc/ati. See the hints in this bug report: http://ati.cchtml.com/show_bug.cgi?id=415#c2

Troubleshooting

See Also

References