[SOLVED] glxinfo only works for root

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] glxinfo only works for root

Postby magfan » Oct 9th, '19, 12:09

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
$
Last edited by magfan on Oct 10th, '19, 15:45, edited 1 time in total.
magfan
 
Posts: 290
Joined: Apr 3rd, '12, 12:33

Re: glxinfo only works for root

Postby doktor5000 » Oct 9th, '19, 18:02

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15165
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: glxinfo only works for root

Postby magfan » Oct 9th, '19, 21:05

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
$
magfan
 
Posts: 290
Joined: Apr 3rd, '12, 12:33

Re: glxinfo only works for root

Postby doktor5000 » Oct 10th, '19, 01:18

Can you show the output of
Code: Select all
ls -al /dev/*nvidia*
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15165
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: glxinfo only works for root

Postby magfan » Oct 10th, '19, 08:21

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
$
magfan
 
Posts: 290
Joined: Apr 3rd, '12, 12:33

Re: glxinfo only works for root

Postby doktor5000 » Oct 10th, '19, 15:25

Hmmm, looks fine. You may need to run glxinfo under strace to see where your regular users lacks permissions.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 15165
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: glxinfo only works for root

Postby magfan » Oct 10th, '19, 15:44

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
magfan
 
Posts: 290
Joined: Apr 3rd, '12, 12:33


Return to Basic support

Who is online

Users browsing this forum: MSN [Bot] and 1 guest

cron