Hatred's Log Place

DON'T PANIC!

Nov 22, 2013 - 3 minute read - linux

Linux Mint Petra и встроенная ATI/AMD RS880 [Radeon HD 4250]

Внезапно, при логине в систему (иксы) выдалось, что рендеринг у меня софтовый. Хотя пакет с драйвером radeon стоял. Изучение /var/log/Xorg.0.log указало на то, что не получается загрузить модули ati и fglrx. При этом нет попыток грузить модуль radeon:

$ cat /var/log/Xorg.0.log  | grep "ati<br/>|radeon<br/>|fglxrx"
[   990.107] Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
[   990.107] Current Operating System: Linux gaz-work 3.11.0-13-generic #20-Ubuntu SMP Wed Oct 23 07:38:26 UTC 2013 x86_64
	(++) from command line, (!!) notice, (II) informational,
	Using a default monitor configuration.
[   990.109] (=:simple_smile: Automatically adding devices
[   990.109] (=:simple_smile: Automatically enabling devices
[   990.109] (=:simple_smile: Automatically adding GPU devices
[   990.109] 	X.Org ANSI C Emulation: 0.4
[   990.113] Initializing built-in extension XVideo-MotionCompensation
[   990.114] (II) Module glx: vendor="X.Org Foundation"
[   990.114] (=:simple_smile: Matched ati as autoconfigured driver 1
[   990.115] (=:simple_smile: Matched ati as autoconfigured driver 3
[   990.115] (II) LoadModule: "ati"
[   990.116] (WW) Warning, couldn't open module ati
[   990.116] (II) UnloadModule: "ati"
[   990.116] (II) Unloading ati
[   990.116] (EE) Failed to load module "ati" (module does not exist, 0)
[   990.117] (II) Module vesa: vendor="X.Org Foundation"
[   990.117] (II) Module modesetting: vendor="X.Org Foundation"
[   990.118] (II) Module fbdev: vendor="X.Org Foundation"
[   990.118] (=:simple_smile: Matched ati as autoconfigured driver 1
[   990.118] (=:simple_smile: Matched ati as autoconfigured driver 3
[   990.119] (II) LoadModule: "ati"
[   990.120] (WW) Warning, couldn't open module ati
[   990.120] (II) UnloadModule: "ati"
[   990.120] (II) Unloading ati
[   990.120] (EE) Failed to load module "ati" (module does not exist, 0)

Почесав макушку, решил попытаться “помочь” серверу, подтолкнув его в нужном направлении. Для чего идём в /etc/X11 создаём каталог xorg.conf.d, а в нём файл radeon.conf (используя любой редактор на своё усмотрение) со следующим содержимым:

Section "Device"
    Identifier "radeon"
    Driver "radeon"
EndSection

Сохраняемся, перелогиниваемся, радуемся отсутствию предупреждения о софтовом рендеринге. Проверяем:

$ cat /var/log/Xorg.0.log  | grep "ati<br/>|radeon<br/>|fglxrx"
[  2082.177] Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
[  2082.177] Current Operating System: Linux gaz-work 3.11.0-13-generic #20-Ubuntu SMP Wed Oct 23 07:38:26 UTC 2013 x86_64
	(++) from command line, (!!) notice, (II) informational,
[  2082.178] (**) |   |-->Device "radeon"
	Using a default monitor configuration.
[  2082.178] (=:simple_smile: Automatically adding devices
[  2082.178] (=:simple_smile: Automatically enabling devices
[  2082.179] (=:simple_smile: Automatically adding GPU devices
[  2082.179] 	X.Org ANSI C Emulation: 0.4
[  2082.183] Initializing built-in extension XVideo-MotionCompensation
[  2082.184] (II) Module glx: vendor="X.Org Foundation"
[  2082.184] (II) LoadModule: "radeon"
[  2082.185] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[  2082.219] (II) Module radeon: vendor="X.Org Foundation"
[  2082.236] (II) RADEON(0): Creating default Display subsection in Screen section
[  2082.248] (II) Module exa: vendor="X.Org Foundation"
[  2082.313] (II) Module fb: vendor="X.Org Foundation"
[  2082.313] 	ABI class: X.Org ANSI C Emulation, version 0.4
[  2082.313] (II) EXA(0): Driver registered support for the following operations:
[  2082.313] (II)         Composite (RENDER acceleration)
[  2082.313] (II) RADEON(0): Acceleration enabled

и

$ glxinfo |grep -i render
direct rendering: Yes
OpenGL renderer string: Gallium 0.4 on AMD RS880

До этого вместо AMD RS880 выводилось следующее:

$ glxinfo | grep -i render
direct rendering: Yes
OpenGL renderer string: Gallium 0.4 on llvmpipe (LLVM 3.3, 128 bits)

Собственно всё.