Nvidia drm used instead of Intel drm , how change it?

my notebook uses i915kms kernel module and modesetting xorg driver

when I start , firefox or librewolf I get the warning:

Code:
Xlib:  extension "GLX" missing on display ":0".

so, looking in
/var/log/Xorg.0.log found

Code:
[  3067.807] (II) LoadModule: "glx"
[  3067.807] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[  3067.811] (II) Module glx: vendor="NVIDIA Corporation"

reinstalled drm-kmod with no luck
 
You installed the NVidia driver from the NVidia website at some point?

pkg which /usr/local/lib/xorg/modules/extensions/libglx.so


reinstalled drm-kmod with no luck
It doesn't have that libglx.so library, so it's not going to help much. Reinstall the package that actually has that library (see pkg-which(8))
 
It should be installed by x11-servers/xorg-server.
Code:
% pkg which /usr/local/lib/xorg/modules/extensions/libglx.so
/usr/local/lib/xorg/modules/extensions/libglx.so was installed by package xorg-server-21.1.26,1

And what x11/nvidia-driver installs there are:
  • libglxserver_nvidia.so.1
  • libglxserver_nvidia.so (symlink to the above)
 
You installed the NVidia driver from the NVidia website at some point?

pkg which /usr/local/lib/xorg/modules/extensions/libglx.so



It doesn't have that libglx.so library, so it's not going to help much. Reinstall the package that actually has that library (see pkg-which(8))

No, never installed nvidia related stuff on this notebook, only the usual initial packages from a fresh install

Code:
nano xorg lilyterm feh viewnior thunar librewolf firefox fvwm3



pkg which /usr/local/lib/xorg/modules/extensions/libglx.so
Code:
/usr/local/lib/xorg/modules/extensions/libglx.so was installed by package xorg-server-21.1.25,1
oh...sh$#...
 
It seems to me that my Dell Laptops with Nvidia GPU you have to consider BIOS settings.
There are settings for "Optimus" which directs the video settings.

Easy first start is look at pciconf -lv and see what your system see's for video output devices.

For example:
Code:
vgapci0@pci0:1:0:0:    class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1056 subvendor=0x1028 subdevice=0x1493
    vendor     = 'NVIDIA Corporation'
    device     = 'GF119M [NVS 4200M]'
    class      = display
    subclass   = VGA

So this shows Nvidia as the only video output device the system can find.
Even though my CPU has an Intel GPU it is not seen by the system.
The reason is Optimus. It is controlling what device is available to the system.

So first step is take note of the vgapci* devices as shown in your output.

Make sure you have installed i915drm and the correct firmware.

Then poke around in the BIOS and see what you can change for video output device.
 
I am going to take a wild guess and assume you are using the scfb driver.
It does not use GLX and it is the fallback graphics mode for all EFI Xorg installations.
You can check what is in use with xrandr --listproviders.
Output of 0=scfb driver.

if not I'am wrong is modesetting

Code:
Providers: number : 1
Provider 0: id: 0x49 cap: 0x2, Sink Output crtcs: 3 outputs: 8 associated providers: 0 name:modesetting
 
Another good tool for examining the video subsystem is /benchmarks/glmark2

It gives a very in-depth report.

mm not luck

Code:
Xlib:  extension "GLX" missing on display ":0".
Xlib:  extension "GLX" missing on display ":0".
Error: GLX version >= 1.3 is required
Error: Error: Couldn't get GL visual config!
Error: main: Could not initialize canvas
Xlib:  extension "GLX" missing on display ":0".
 
Defiantly using something other than llvm.
Modesetting could be either.
vgapci0 will be primary output device.

Sorry, is a lenovo t430

pciconf -lv | grep VGA
Code:
vgapci0@pci0:0:2:0:     class=0x030000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x0166 subvendor=0x17aa subdevice=0x21f3

never used the VGA external output
 
I can tell by the PCI device ID and vendor ID that yours is using the Intel GPU Device.

Very similar to my output (Sandy/IvyCreek). Make sure this is the only pcivga* device
pciconf -lv | grep vgapci
Code:
vgapci1@pci0:0:2:0:    class=0x030000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x0126 subvendor=0x1028 subdevice=0x0493
vgapci0@pci0:1:0:0:    class=0x030000 rev=0xa1 hdr=0x00 vendor=0x10de device=0x1056 subvendor=0x1028 subdevice=0x1493
Do you have another device lurking? Lenovo BIOS might be different.

graphics/drm_info
 
Back
Top