GPU driver conflict

asked 2018-02-22 09:54:21 -0600

I have two GPUs installed in my system:

  • AMD RX 480
  • NVIDIA GeForce 8400

The proprietary nvidia driver overwrites some libraries in /usr/lib64 and /usr/lib64/xorg but I managed to work around it by specifying a different lib directory (/usr/lib64/nvidia) to the nvidia installer. If I run the X Server by:

sudo LD_LIBRARY_PATH=/usr/lib64/nvidia startx

everything works fine. But if I run it without root privileges like:

LD_LIBRARY_PATH=/usr/lib64/nvidia startx

the libraries in /usr/lib64/nvidia are not found and the X Server fails to start. It seems like LDLIBRARYPATH does not work without root?

edit retag flag offensive close merge delete

Comments

1

what are the permissions for /usr/lib64/nvidia?

fcomida gravatar imagefcomida ( 2018-02-22 13:44:37 -0600 )edit

drwxr-xr-x. 5 root root 4096 22. Feb 13:00 nvidia

icecold gravatar imageicecold ( 2018-02-22 14:41:23 -0600 )edit

Permissions are ok. why are you saying nvidia libraries aren't found? Did you see any error message? Can you startx as regular user with AMD card? Do you have another X session running? Post content of ~/.xsession-errors. Can you just start Xorg, not startx? Does setting DISPLAY=:2 work?

fcomida gravatar imagefcomida ( 2018-02-22 18:00:38 -0600 )edit

I can see it in /var/log/Xorg.0.log:

AMD works fine as regular user:

Starting with xinit leads to the same results. ~/.xsession-errors does not exist on my system.

icecold gravatar imageicecold ( 2018-02-23 07:28:38 -0600 )edit

Have you noticed this error?

(EE) Failed to load /usr/lib64/nvidia/modules/extensions/libglx.so: libnvidia-tls.so.340.106: cannot open shared object file: No such file or directory

The driver and other modules have been loaded, so the issue seems to be with libnvidia-tls.so.340.106.

fcomida gravatar imagefcomida ( 2018-02-23 10:31:04 -0600 )edit