Hello,
I have two systems, one PC with nVidia, one laptop having optimus, both with Sabayon up to date (kernel 4.10) with Plasma + sddm + Xorg.
The problem started on the PC only, on the laptop is not present.
I've tried to run Celestia. It shows the splash, loads a few seconds, then fails.
I've managed to debug it a bit:
Code:
$ export LIBGL_DEBUG=verbose
$ celestia
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL: Can't open configuration file /home/user/.drirc: No such file or directory.
libGL: Can't open configuration file /home/user/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
The program 'celestia' received an X Window System error.
This probably reflects a bug in the program.
The error was 'GLXBadContext'.
(Details: serial 1732 error_code 167 request_code 153 minor_code 6)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Here, I've listed the graphic libs:
Code:
find /usr -iname "*libGL.so*" -exec ls -l {} \;
lrwxrwxrwx 1 root root 14 mar 6 20:05 /usr/lib32/libGL.so.1 -> libGL.so.1.2.0
-rwxr-xr-x 1 root root 559796 mar 5 20:31 /usr/lib32/libGL.so.1.2.0
lrwxrwxrwx 1 root root 14 ian 29 10:51 /usr/lib32/opengl/nvidia/lib/libGL.so.1 -> libGL.so.1.0.0
-rwxr-xr-x 1 root root 444100 ian 14 11:13 /usr/lib32/opengl/nvidia/lib/libGL.so.1.0.0
lrwxrwxrwx 1 root root 14 ian 29 10:51 /usr/lib32/opengl/nvidia/lib/libGL.so -> libGL.so.1.0.0
lrwxrwxrwx 1 root root 12 mai 2 2016 /usr/lib32/opengl/ati/lib/libGL.so.1 -> libGL.so.1.2
lrwxrwxrwx 1 root root 12 mai 2 2016 /usr/lib32/opengl/ati/lib/libGL.so -> libGL.so.1.2
lrwxrwxrwx 1 root root 14 mar 6 20:05 /usr/lib32/libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root 14 mar 6 20:05 /usr/lib64/libGL.so.1 -> libGL.so.1.2.0
-rwxr-xr-x 1 root root 430608 mar 5 20:31 /usr/lib64/libGL.so.1.2.0
lrwxrwxrwx 1 root root 14 ian 29 10:51 /usr/lib64/opengl/nvidia/lib/libGL.so.1 -> libGL.so.1.0.0
-rwxr-xr-x 1 root root 583912 ian 14 11:13 /usr/lib64/opengl/nvidia/lib/libGL.so.1.0.0
lrwxrwxrwx 1 root root 14 ian 29 10:51 /usr/lib64/opengl/nvidia/lib/libGL.so -> libGL.so.1.0.0
lrwxrwxrwx 1 root root 12 mai 2 2016 /usr/lib64/opengl/ati/lib/libGL.so.1 -> libGL.so.1.2
lrwxrwxrwx 1 root root 12 mai 2 2016 /usr/lib64/opengl/ati/lib/libGL.so -> libGL.so.1.2
lrwxrwxrwx 1 root root 14 mar 6 20:05 /usr/lib64/libGL.so -> libGL.so.1.2.0
I've managed to run it, eventually:
Code:
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib:/usr/lib64/opengl/nvidia/lib" celestia
On the laptop it is not necessary to add the libs path.
Of course I've reinstalled nvidia drivers, mesa, in order to fix glx, but no success.
What can I do to make it run without the libs path?
I suspect some other issues have the same source. I can't connect to the PC remotely using x2go to the pc (a black screen and a mouse pointer is present). The laptop works again.
glxgears works fine.
I've tried the nvidia setup of X.org, but no success.
Please help.
Thank you.