Fixing AMD video drivers on Ubuntu x64 for running Mix and other apps

DimitryDimitry Moderator Posts: 3 mod
So in some cases it might be that Mix ethereum and various other applications won't run on ubuntu because of the incorrect video driver configuration. I have installed fglrx amd driver by following this instruction (part 3.1)
https://help.ubuntu.com/community/BinaryDriverHowto/AMD
But that was not enough.

Diagnose:
glxinfo | grep render

gives you output
libGL error: dlopen /usr/lib/fglrx/dri/swrast_dri.so failed (/usr/lib/fglrx/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: failed to load driver: swrast
direct rendering: No 
1) Lets restore dri path.
cd /usr/lib/fglrx
ln -s /usr/lib/x86_64-linux-gnu/dri ./dri
2) Fix link to the libGL.so.1.2
cd /usr/lib/x86_64-linux-gnu
cp libGL.so.1.2.0 ./libGL.so.1.2.0.back
rm libGL.so.1.2.0
ln -s /usr/lib/fglrx/libGL.so.1 libGL.so.1.2.0
3) Check that everything works

glxinfo | grep render

should now give you

direct rendering: Yes

4) Useful commands
ldd - see dynamic links of the application
gdb - see debug log of the application
aticonfig --px-dgpu  - restore driver configuration

Post edited by Dimitry on
Sign In or Register to comment.