ATI Driver

Материал из openSUSE.


Содержание

openSUSE Linux 10.2 - xf86

  • Внимание: Это драйвер ATI с открытыми исходными кодами, он не будет работать с картами Радеон X1k серии.
  • Внимание: У меня всё получилось, следуя этому HOWTO, только одно замечание: для предотвращения копирования заголовков файлов C, просто установите правильный пакет (xorg-x11-server-sdk)! На "чиcтой" openSUSE 10.2 с уставовленным Xorg SDK, установка по этому HOWTO проходит гладко. Я никогда не видел ошибок упомянутых в этом HOWTO. --cstamas 15:19, 14 December 2006 (UTC)

Перед установкой новой версии драйвера, обязательно удалите старый, восстановите X.org до версии 7.2 (если вы меняли версию на 7.1), и установите xf86 ATI driver 6.6.3.

Основное размещение xf86 driver'а это ftp://ftp.x.org/pub/individual/driver/xf86-video-ati-6.6.3.tar.gz или ftp://ftp.x.org/pub/individual/driver/xf86-video-ati-6.6.3.tar.bz2. (вы также сможете найти зеркала проекта X.org здесь. [1])


Распакуйте пакет:

       tar -zxvf xf86-video-ati-6.6.3.tar.gz

или

       tar -jxvf xf86-video-ati-6.6.3.tar.bz2

и

       cd xf86-video-ati-6.6.3
       ./configure
       make
       make install

Возможно вы встретите ошибку во время выполнения команды make. Ошибка в исходных кодах, и отсутствие 2 заголовочных файлов.

Первое, Вы должны скопировать или слинковать 2 недостающих файла в /usr/include/xorg/. Недостающие файлы Вы можете найти здесь.

       xf86dri.h -> /usr/include/X11/dri/xf86dri.h
       drm.h -> /usr/include/drm/drm.h

и повторить попытку.

если ошибка возникла вновь, откройте src/aticonfig.c и измените строку 365.

с:

               pATI->RenderAccelEnabled = FALSE;
       #if defined(USE_EXA)
               if (pATI->useEXA && RenderAccel)
                   pATI->RenderAccelEnabled = TRUE;
       #endif

на:

       #if defined(USE_EXA)
               pATI->RenderAccelEnabled = FALSE;
               if (pATI->useEXA && RenderAccel)
                   pATI->RenderAccelEnabled = TRUE;
       #endif

и повторите попытку. всё просто :D

openSUSE Linux 10.2 - fglrx

Эта секция описывает процесс сборки пакета (rpm) закрытого драйвера ATI. Вы можете найти YaST репозиторий с корректной версией пакета собранного компанией ATI, но версия должна быть 8.32.5 или выше. В случае если вы нашли такой репозиторий, вы сможете следовать этим инструкциям и быть счастливым #SUSE Linux 10.1.

Внимание

Во время установки драйвера очень часто возникают ошибки. Аккуратно измените строчку в /etc/inittab с "id:5:initdefault:" на "id:3:initdefault:". Так ваша система будет загружаться в текстовом режиме. Если вы захотите проверить работоспособность графического входа в систему, запустите:

>init 5

Если просто опробовать запуск X сессии, запустите:

>startx

Требования

Убедитесь что пакеты gcc и kernel-source установлены.

Установка драйвера fglrx

ATI Пакет

Пройдите по адресу http://www.ati.com и загрузите инсталятор для Радеон.

Следуйте инструкциям по сборке пакета под ваш дистрибутив как это написано здесь (примерно 4/5ая страница): http://ati.amd.com/support/driver.html. Теперь установите собранный пакет и настройте xorg.conf.

    >rpm -i fglrx_7_1_0_SUSE102-[ATI driver version].i386.rpm

Команда rpm -i выполнит некторые действия по сборке, так если у вас не установлен kernel-headers, Вам придется выполнить ряд дополнительных действий.

  • Драйвер ATI поддерживает верисии X.org 7.1 и 7.2.
    >SaX2 -r -m 0=fglrx
Если вы захотите использовать Xgl и Compiz, Вам нужно добавить в ваш файл xorg.conf следующие записи:
  Section "Extensions"
      Option "Composite" "0"
  EndSection

Настрока с помощью SaX2 и ATI driver 8.32.5

Всё просто (в режиме init 3)

 sax2 -r -m 0=fglrx

и в появившемся диалоге нажмите OK.

Перезагрузка!

Просмотрите файл журнала Xorg на наличие ошибок связанных с модулем fglrx в /var/log/Xorg.0.log.

     >cat Xorg.0.log | grep "(EE)"

Также, попробуйте запустить

     >fglrxinfo

Если fglrx установлен, он должен ответить что-то похожее нв это "[YOUR CHIPSET] Generic", если он отвечает Mesa, у Вас проблемы. В противном случае, Вы всё настроили! Насладайтесь гладкими кадрами и высокими разрешениями!

FIXMEAlso take a look in the troubleshooting section called '3D will not work even though fglrx is being loaded'

SUSE Linux 10.1

Для SUSE Linux 10.1 процесс описан в ATI Installer HOWTO.

YaST Репозитарий

http://www2.ati.com/suse репозитарий драйверов для видокарт ATI. Учтите что это репозитарий.

YaST Installation Source может быть найден здесь:

Applications Menu

System
 YaST
  Software
   Installation Source

Учтите он не просматривается в броузере.

 Protocol    - HTTP
 Server Name - www2.ati.com
 Directories - /suse

Устанавливаемые пакеты:

 ati-fglrx-kmp-<kernelflavour>
 x11-video-fglrx
 

(замените kernelflavour на default,smp, или bigsmp.) <kernelflavour> это ядро установленное в вашей системе. Для проверки типа и версии ядра в Вашей системе, запуститеto команду от суперпользователя

 uname -r

Старые версии SUSE: 10.0 и ниже или ручная установка

Требования

  • ATI инcталер с сайта ATI. http://www.ati.com/support/driver.html
    • Внимание: Перед началом, Вы должны сменить права скачанного файла, добавив права на исполнение. В консоли, перейдите в каталог с загруженным файлом, затем наберите "chmod a+x ati-driver-installer*.run".


  • Пакеты (в дополнение к установленным по умлочанию SUSE Linux 10.0):
    • kernel-source
    • gcc

Установка требуемых пакетов

Используйте Yast для установки kernel-source и gcc с Вашего инсталяционного CD/DVD. Если у вас обновлённое ядро (новее чем на диске) Вам нужно будет запустить You для обновления kernel-source после инсталяции.

Генерация & Установка RPM (с консоли)

1. В консоли, перейдите в каталог содержащий инсталер , и просмотрите список поддерживаемых пакетов

 ./ati-driver-installer-8.24.8-x86.run --listpkg
 ........(etc)
 ==================================================
  ATI Technologies Linux Driver Installer/Packager
 ==================================================
 List of supported packages:
 SuSE/SLES9-IA32
 SuSE/SUSE91-IA32
 SuSE/SUSE100-IA32
 SuSE/SUSE92-IA32
 SuSE/SUSE93-IA32
 SuSE/SUSE101-IA32

2. Создайте RPM пакет для SUSE Linux 10.1 используя интсталлер с опциями для вашей платформы.

./ati-driver-installer-8.24.8-x86.run --buildpkg SuSE/SUSE101-IA32
./ati-driver-installer-8.24.8-x86.run --buildpkg SuSE/SUSE101-AMD64

3. Установите созданный RPM пакет используя rpm команду от пользователя root.

 rpm -Uhv fglrx_6_8_0_SUSE101-8.24.8-1.*.rpm

Настройка (старые версии)

Переключитесь в режим init 3

init 3
sax2 -r -m 0=fglrx -b /usr/share/doc/packages/fglrx/sax2-profile
Внимание: 3D режим включен поумолчанию, и не может быть настроен через sax2
Внимание: Если у вас проблемы с XFree Server откройте файл "/etc/X11/xorg.conf" и добавьте " Option "AGPMask" "0x00000006" " в секцию "Device".

Configure (version 8.23.7 and newer)

For SuSE 10.0 and earlier

Switch to runlevel 3

init 3
aticonfig --initial --input=/etc/X11/xorg.conf

Then reboot.

For SuSE 10.1 (from alpha on), at least for version 8.25.18 and newer

(You no longer need to specify the profile)

init 3
sax2 -r -m 0=fglrx


После каждого обновления ядра нужно пересобирать модуль fglrx

Каждый раз при обновлении ядра, драйвера ATI потребуют к себе немного внимания: нужно перекомпилировать модуль ядра fglrx.

Note: Вам необходимо убедиться, что кроме ядра Вы также обновили его исходники до той же версии, что и ядро, иначе ничего не получится. Это можно сделать через YaST -> Онлайн-обновление


Запуск скрипта компиляции модуля fglrx-kernel-build

1. Откройте консоль и перейдите в директорию со скриптом fglrx-kernel-build.

cd /usr/X11R6/bin

2. Станьте рутом (su)


3. Выполните скрипт

sh ./fglrx-kernel-build.sh

4. После того, как скрипт закончит работу, перезагрузитесь.

Additional References

New official ATI Installer instructions (6.26.2006) http://www2.ati.com/drivers/linux/linux_8.26.18-inst.html

See also https://support.ati.com/ics/support/default.asp?deptID=894

For official instructions (maintained by SUSE) to install and configure the ATI driver on (open)SUSE consult our ATI Installer HOWTO.

After installing the rpm, see the README.SUSE file in /usr/share/doc/packages/fglrx/

Also check this ATI Driver Install Howto updated 07 March 2007

Additional Notes for Toshiba Equium Laptops with ATI Graphics Cards

Quite often these laptops refuse to install properly, a quick and dirty guide to get the basic GUI running to allow you to get the latest drivers.

1) Install with ACPI disabled, finish all the usual installation steps, creation of root password and main user account. Reboot once complete rather then logging straight on.

2)On the main boot menu highlight SUSE 10.0, press F2 and type the number 3 into your boot options, then press enter. This boots up in text based mode rather then the GUI.

3) Login as root, and then using the editor of choice open the file /etc/X11/xorg.conf (It must be an upper case X in X11).

4) Scroll down till you see the following

Section "Device"
 Board Name   "ATI Radeon xPress 200m"
 Bus ID       "1:0:0"
 Driver       "Radeon"
 Identifier.........

Replace "Radeon" with "vesa" then save and exit.

5) Reboot your system by typing "reboot" in the console and log on as usual. You can now log on to the GUI and get to the ATI website and follow the rest of the instructions given here.

Troubleshooting

Latest ATI-drivers have problems with some x1000 cards (x1400, x1600, x1600 pro):

If sax or X-Server stops, when loading the driver, and you can find something like this in /var/log/SaX.log or /var/log/Xorg.0.log or /var/log/Xorg.93.log:

   (EE) fglrx(0): PreInitDAL failed
   (EE) fglrx(0): PreInit failed

then you should disable framebuffer in the console.

edit /boot/grub/menu.lst and remove the vga=xxx statement from the kernel line.

see Bugzilla Bug 222993


Testing 3D Support

Run

# fgl_glxgears

If you see a couple of gears turning extremely fast, framed within a 3D box that is rotating on itself then everything is working great.

3D will not work, even though fglrx is being loaded

Other symptoms: When starting the test server in SaX2, it crashes and the log contains Error: No screens found

This problem is caused by an incompatibility between the OSS Radeon driver and fglrx. Run:

lsmod | grep radeon

followed by

lsmod | grep fglrx

If both kernel modules are loaded, you'll need to remove the radeon module first with

#modprobe -r radeon

Then, reboot your system.

Incompatible ATI Drivers with Newer Xorg X11 builds

This should not be an issue, 8.32.5 is compatible with Xorg 7.2. However, this will stay in place for as future releases of Xorg may produce these same issues.

Updating or installing newer xorg or x11 package in the current SuSE system and using the installed ATI Drivers incompatibility problems might occur. The reason being is that the ATI Drivers is not compiled specifically for the newer Xorg X11 ebuilds.

Before updating or installing newer versions of Xorg X11 make sure that there are compatible ATI drivers for it.


[fglrx] API ERROR: could not register entrypoint for .....

Download http://www.ground-impact.com/libGL.so.1.2

Replace the original libGL.so.1.2 in /usr/X11R6/lib

[glxinfo] Reports mesa is still in use

Run

LIBGL_DEBUG="verbose" glxinfo|grep error

This will probebly report that /usr/lib/dri/atiogl_a_dri.so can't be found. You need to link the /usr/lib/dri to /usr/X11R6/lib/modules/dri.

ln -sf /usr/X11R6/lib/modules/dri /usr/lib/dri

on 8.32.5, (and you tried above but meet with this issue again) check libGL.so.1.2 at /usr/lib. that libGL is maybe incorrect. correct version of libGL.so.1.2 is inside of /usr/lib/fglrx or /usr/X11R6/lib. make copy or link then that will good work. --Divinespear 17:50, 16 December 2006 (UTC)

[fglrxinfo] Reports 'Xlib: extension "XFree86-DRI" missing on display ":0.0".'

Issue: The X.org logs state that DRI has been disabled and provides no more information.

# fglrxinfo
Xlib: extension “XFree86-DRI” missing on display “:0.0″.
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.5.1)

Enabling Composite extensions disables ATI’s driver support for DRI and 3D acceleration.

Resultion: To disable the Composite extension, edit/add the following lines to the end of /etc/X11/xorg.conf file:

Section "Extensions"
     Option "Composite" "false"
EndSection

Note: Apparently the default is Enabled, so removing the line to disable Composite will not work. The setting needs to be explicitly set to false.


This will bring back support for DRI, 3D acceleration and, provide, OpenGL support.

# fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9600SE Generic
OpenGL version string: 2.0.6011 (8.28.8)

--StephaneZ 18:21, 30 December 2006 (UTC)

[fgl_glxgears] Reports "Permission denied" when running as non-privileged user

Issue: The following output is generated when running as non-privileged user:

# fgl_glxgears
Using GLX_SGIX_pbuffer
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
FGLTexMgr: open of shared memory object failed (Permission denied)
__FGLTexMgrCreateObject: __FGLTexMgrSHMmalloc failed!!!
FGLTexMgr: open of shared memory object failed (Permission denied)
...

Resolution: Enable POSIX shared memory.

Try adding the following to /etc/fstab:

 tmpfs                /dev/shm             tmpfs      defaults              0 0

Then mount is using:

mount /dev/shm

Note: This line may appear different then the other lines, but is in the right order.

--StephaneZ 18:33, 30 December 2006 (UTC)

Video Output Driver Xv Fails to play Video

When installing 8.32.5 Xv no longer was capable of Playing video on my AMD64 System.

This is posible to be solve by using the Video Output driver gl2.

Mplayer:
mplayer -vo gl2 <file>
GMplayer:
echo "vo_driver = \"gl2\"" >> .mplayer/gui.conf
Xine:
echo "video.driver:opengl" >> .xine/config
Totem:
Unknown... does someone know?

AIGLX error __driCreateNewScreen

If you get a error in Xorg.0.log that looks like

(EE) AIGLX error: dlsym for __driCreateNewScreen_20050727 failed (/usr/lib/dri/fglrx_dri.so: undefined symbol: __driCreateNewScreen_20050727)
(EE) AIGLX: reverting to software rendering

The solution is to type this in /etc/X11/xorg.cong

Section "ServerFlags"
   Option "AIGLX" "off"
EndSection

Source

Manual Install

cp: missing destination file operand

When you run: ./ati-driver-installer-8.xx.xx-i386.run –buildpkg SuSE/SUSE100-IA32 you may get a message starting with: cp: missing destination file operand after

You need to set LC_ALL=C before the command to solve the problem

Ie, LC_ALL=C ./ati-driver-installer-8.xx.xx-i386.run –buildpkg SuSE/SUSE100-IA32