Page 1 of 1

[SOLVED] glxinfo only works for root

PostPosted: Oct 9th, '19, 12:09
by magfan
After some Mageia updates I just realized that some of my 3D rendering programs do not work anymore. If I call "glxinfo" I get the following errors:

Code: Select all
$ glxinfo
name of display: :0
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  54
  Current serial number in output stream:  53
$


But "sudo glxinfo" works as expected. What do I have to change to benefit again from hardware acceleration as normal user?

Code: Select all
$ sudo glxinfo | grep NVIDIA
server glx vendor string: NVIDIA Corporation
client glx vendor string: NVIDIA Corporation
OpenGL vendor string: NVIDIA Corporation
OpenGL core profile version string: 4.6.0 NVIDIA 430.50
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL version string: 4.6.0 NVIDIA 430.50
OpenGL shading language version string: 4.60 NVIDIA
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 430.50
$

Re: glxinfo only works for root

PostPosted: Oct 9th, '19, 18:02
by doktor5000
Can you post the output of
Code: Select all
LIBGL_DEBUG=verbose glxinfo
as regular user? Not necesseraly the full output, should be sufficient up to and including the first error message.

Re: glxinfo only works for root

PostPosted: Oct 9th, '19, 21:05
by magfan
Code: Select all
$ LIBGL_DEBUG=verbose glxinfo
name of display: :0
libGL: screen 0 does not appear to be DRI2 capable
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/mer/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/mer/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  54
  Current serial number in output stream:  53
$

Re: glxinfo only works for root

PostPosted: Oct 10th, '19, 01:18
by doktor5000
Can you show the output of
Code: Select all
ls -al /dev/*nvidia*

Re: glxinfo only works for root

PostPosted: Oct 10th, '19, 08:21
by magfan
Code: Select all
$ ls -al /dev/*nvidia*
crw-rw-rw- 1 root root 195,   0 Okt 10 08:18 /dev/nvidia0
crw-rw-rw- 1 root root 195, 255 Okt 10 08:18 /dev/nvidiactl
crw-rw-rw- 1 root root 195, 254 Okt 10 08:19 /dev/nvidia-modeset
$

Re: glxinfo only works for root

PostPosted: Oct 10th, '19, 15:25
by doktor5000
Hmmm, looks fine. You may need to run glxinfo under strace to see where your regular users lacks permissions.

Re: glxinfo only works for root

PostPosted: Oct 10th, '19, 15:44
by magfan
I could solve the problem with re-installing x11-driver-video-nvidia-current-390.129-1.mga6.nonfree:

Code: Select all
urpmi --replacepkgs --replacefiles --force x11-driver-video-nvidia-current-390.129-1.mga6.nonfree