OpenGL uses llvmpipe instead of nvidia driver (Laptop GTX 1050 | Ubuntu 22.04)

Installed nvidia drivers using apt

On Prime Profile: “Power Saving” the GPU is Intel
On “Performance” is LLVM

This is the output of inxi -G

Graphics:
  Device-1: Intel CoffeeLake-H GT2 [UHD Graphics 630] driver: i915 v: kernel
  Device-2: NVIDIA GP107M [GeForce GTX 1050 3 GB Max-Q] driver: nvidia
    v: 515.65.01
  Device-3: Chicony USB2.0 Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.3 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915
    resolution: 1: 1920x1080~60Hz 2: 1920x1080~60Hz
  OpenGL: renderer: llvmpipe (LLVM 14.0.0 256 bits)
    v: 4.5 Mesa 22.3.0-devel (git-74fc367127)

Output of glxinfo -B

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa/X.org (0xffffffff)
    Device: llvmpipe (LLVM 14.0.0, 256 bits) (0xffffffff)
    Version: 22.3.0
    Accelerated: no
    Video memory: 15710MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 14.0.0, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 22.3.0-devel (git-74fc367127)
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 22.3.0-devel (git-74fc367127)
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.0-devel (git-74fc367127)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

nvidia-bug-report.log.gz (325.3 KB)

libGL.so.1 => /usr/local/lib/x86_64-linux-gnu/libGL.so.1

you’re running some non-standard OpenGL in /usr/local
Please uninstall.

ok, to uninstall i need to remove it? i renamed it to libGL.so.1.bak.
Now when running ldd /usr/bin/glxinfo again:

libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1
also opengl renderer remains llvmpipe.

So i renamed also that libGL.so.1, but after ldd /usr/bin/glxinfo will just say to me that there is no libGL.so.1 and startx won’t work.

reinstalling apt nvidia 515 drivers will get me back to the start

There’s also libOpenGL.so etc. in /usr/local you need to remove. likely some self-compiled mesa, you should know what you installed and where to run make uninstall.

ty for the replies so far, i have no info on what has been installed though, through synaptic i gathered these packages:

uninstalling some of these with apt will pretty much remove everything on my system , so i’m clearly doing something wrong or simply i’m not understanding the situatuion

is there a way to edit some configuration to successfully point to nvidia opengl rather than uninstalling?
Let’s say that i find the right package to uninstall though, what should i do after uninstalling? just reboot? reinstall nvidia drivers? run some specific commands?

So it’s not your system?
/usr/local is usually the default location where self-compiled stuff gets installed, i.e. download mesa sources, run configure, make, make install.
No packages get installed there, the location is usually empty but is searched first when libraries are loaded, to override system libs. Configured in /etc/ld.so.conf
Please check what’s in those directories
/usr/local/bin
/usr/local/sbin
/usr/local/lib
/usr/local/lib/x86_64-linux-gnu
and empty them in case you don’t find things you know and want to keep.

that worked thanks! i checked those directories and removed the unnecessary

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.