After installing the nvidia gpu driver (nvidia-driver-535) in my ubuntu 20.04 LTS server,
I tried to run the glxinfo which can be installed via ‘apt install mesa-utils’, but it shows as below,
Code:
root@dcvserver03:~/bin# glxinfo name of display: :0 X Error of failed request: BadAlloc (insufficient resources for operation) Major opcode of failed request: 151 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 0 Current serial number in output stream: 50
and the funny thing is, if i export DISPLAY=:1 and ‘startx’, then run glxinfo, it show as below,
Code:
root@dcvserver03:~/bin# export DISPLAY=:1 root@dcvserver03:~/bin# startx & [1] 52270 root@dcvserver03:~/bin# root@dcvserver03:~/bin# glxinfo |less name of display: :1 display: :1 screen: 0 direct rendering: Yes server glx vendor string: NVIDIA Corporation server glx version string: 1.4 …
and for the display :0, it is the Xorg process started by gdm3.
and i tried to gdb glxinfo, and it exit at this line 460 in file mesa-demos-8.4.0/src/xdemos/glxinfo.c, if (glXMakeCurrent(dpy, win, ctx))
i am a newbie for the linux graphical programming, can anyone help to direct what’s the possible reason? Thanks very much!
i compiled the mesa/demos from the source code, which can be downloaded from src/xdemos/glxinfo.c · main · Mesa / demos · GitLab, and run the compiled command, still the same issue.
so it’s seems issue related with the Xorg session but i don’t know how to investigate further, any suggestion? thx
I’m not actually familiar with the unique system you
are using unfortunately, but things tend to change
over time with linux, and things break naturally
as the systems change, and get older with little
maintenance (from upstream)
There’s always a lot of weird things that break as distributions move on to newer things, and some of us,
stick to the older versions of the operating system,
you should attempt to ask for help on the support forums,
for the unique system you are using, as it looks like a problem related to your operating system in particular, as
opposed to nvidia and it’s driver specifically.
You might even try simply using the nvidia driver installer
listed in this thread, which resolves all the problems that revolve around distribution provided drivers…
I just gave yet another guy instructions for doing so…
I have to give people these instructions over and over again, because there aren’t really clear instructions that people can easily find to take advantage of nvidia’s drivers…