#OpenGL doesn't work on legacy nvidia gpu drivers

140 messages · Page 1 of 1 (latest)

languid oasis
#

Here are some outputs:

lspci -k | awk '/VGA/,/modules/'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
  Subsystem: Lenovo Device 3901
  Kernel driver in use: i915
  Kernel modules: i915
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)
  Subsystem: Lenovo Device 3901
  Kernel modules: nouveau, nvidia_drm, nvidia
lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)

and the problem is:

glxinfo | grep "OpenGL renderer"
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  150 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40

I'd installed drivers with:

yay -S nvidia-390xx-dkms nvidia-390xx-utils lib32-nvidia-390xx-utils

I need to say that I use Hyprland (Wayland tho).
How can i fix it (i cannot run lots of apps/games coz of this)?

#

it'll be suitable to post this output too:

nvidia-smi
Sat Jun 21 11:46:29 2025       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.157                Driver Version: 390.157                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GT 635M     Off  | 00000000:01:00.0 N/A |                  N/A |
| N/A   62C    P8    N/A /  N/A |     34MiB /  1985MiB |     N/A      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0                    Not Supported                                       |
+-----------------------------------------------------------------------------+

and the 390xx driver does not support Firefox, I don’t know, my browser simply doesn’t start with it.

#

OpenGL doesn't work on legacy nvidia gpu drivers

frank beacon
#

does other software work like glxgears? hyprland shouldn't work well on that old driver

shrewd elk
#

You need mesa

#

yay -S lib32-mesa mesa

languid oasis
languid oasis
shrewd elk
#

it work?

languid oasis
shrewd elk
#

alright

languid oasis
#

glxinfo | grep "OpenGL renderer"
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 39
Current serial number in output stream: 40

#

mmm, didn't help

shrewd elk
#

reboot?

languid oasis
#

i did it

#

nothing

shrewd elk
#

oh wtf

#

sudo pacman -S nvidia nvidia-utils lib32-nvidia-utils

shrewd elk
#

if that does not work try this
sudo pacman -Rns nvidia nvidia-utils lib32-nvidia-utils
sudo pacman -S xf86-video-nouveau mesa libglvnd

languid oasis
#

k

#

glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa Intel(R) HD Graphics 4000 (IVB GT2)

shrewd elk
#

wait do you have integrated?

languid oasis
#

how to check it? I use laptop btw

shrewd elk
#

lspci

languid oasis
#

00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
02:00.0 Ethernet controller: Qualcomm Atheros AR8162 Fast Ethernet (rev 10)
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)

shrewd elk
#

alright so

#

lspci | grep -E "VGA|3D"

languid oasis
#

lspci | grep -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)

shrewd elk
#

ok so you have dedicated graphics and integrated so now we need to install nvidia drivers

#

as you installed mesa before

#

hold up

#

lspci -k | grep -A 3 -E "VGA|3D"

languid oasis
#

now so:

yay -S nvidia-390xx-dkms nvidia-390xx-utils lib32-nvidia-390xx-utils

#

?

shrewd elk
languid oasis
# shrewd elk `lspci -k | grep -A 3 -E "VGA|3D"`

lspci -k | grep -A 3 -E "VGA|3D"
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
Subsystem: Lenovo Device 3901
Kernel driver in use: i915
Kernel modules: i915

01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)
Subsystem: Lenovo Device 3901
Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)

shrewd elk
#

sudo pacman -Rns nvidia nvidia-utils

shrewd elk
languid oasis
#

sudo pacman -Rns nvidia nvidia-utils
[sudo] password for lazari:
error: not found: nvidia
error: not found: nvidia-utils

shrewd elk
#

pacman -Qs nvidia

#

now show

languid oasis
#

pacman -Qs nvidia
local/bumblebee 3.2.1-21
NVIDIA Optimus support for Linux through VirtualGL
local/egl-wayland 4:1.1.19-1
EGLStream-based Wayland external platform
local/libva-nvidia-driver 0.0.14-1
VA-API implementation that uses NVDEC as a backend
local/libvdpau 1.5-3
Nvidia VDPAU library
local/libxnvctrl-390xx 390.157-1
NVIDIA NV-CONTROL X extension, 390xx legacy branch
local/nvidia-390xx-dkms 390.157-17
NVIDIA drivers - module sources
local/nvidia-390xx-settings 390.157-1
Tool for configuring the NVIDIA graphics driver, 390xx legacy
branch
local/nvtop 3.2.0-1
GPUs process monitoring for AMD, Intel and NVIDIA
local/xf86-video-nouveau 1.0.18-1 (xorg-drivers)
Open Source 3D acceleration driver for nVidia cards

shrewd elk
#

sudo mkinitcpio -P (Dont run yet)

#

hang o

#

on

languid oasis
#

dont run now

shrewd elk
#

lspci -k | grep -A 3 -E "VGA|3D"

languid oasis
languid oasis
shrewd elk
languid oasis
#

00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
Subsystem: Lenovo Device 3901
Kernel driver in use: i915
Kernel modules: i915

01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)
Subsystem: Lenovo Device 3901
Kernel modules: nouveau, nvidia_drm, nvidia
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)

shrewd elk
#

sudo pacman -Rns bumblebee libva-nvidia-driver libxnvctrl-390xx nvidia-390xx-dkms nvidia-390xx-settings

#

wait

#

actually

#

lsmod | grep nvidia

languid oasis
shrewd elk
#

sudo pacman -Rns bumblebee libva-nvidia-driver libxnvctrl-390xx nvidia-390xx-dkms nvidia-390xx-settings sudo rm -f /etc/modprobe.d/disable-nouveau.conf sudo rm -f /etc/X11/xorg.conf.d/10-nvidia.conf sudo mkinitcpio -P sudo reboot

#

Then after reboot

#

lemme know

languid oasis
#

sudo mkinitcpio -P
command not found

shrewd elk
#

Uh wotttt

#

sudo pacman -S mkinitcpio

#

are you on arch?

languid oasis
shrewd elk
#

because the linux package includes mkinitcpio

#

?

languid oasis
#

EndeavourOS

shrewd elk
#

Ah

languid oasis
#

it is based on arch

shrewd elk
shrewd elk
languid oasis
#

downloading

shrewd elk
#

Does not take this long to mkinitcpio

languid oasis
shrewd elk
#

ight

#

so

#

yay -S nvidia-390xx-dkms nvidia-390xx-utils nvidia-390xx-settings lib32-nvidia-390xx-utils

languid oasis
#

wait, why i cannot enter hyprland anymore after reboot(

#

neither Hyprland (Wayland), nor Hyprland

#

even from ctrl+alt+f3

shrewd elk
#

install those packages

#

then try

languid oasis
#

k

#

i'm in shell rn, wait for me

#

done

#

now reboot

#

?

#

ok, after rebooting i entered hyprland, it's ok rn

#

what now?

shrewd elk
#

test if opengl works

languid oasis
#

glxinfo | grep "OpenGL renderer"

#

this?

shrewd elk
#

urd

#

yrd

#

yes

languid oasis
#

glxinfo | grep "OpenGL renderer"
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 150 (GLX)
Minor opcode of failed request: 24 (X_GLXCreateNewContext)
Value in failed request: 0x0
Serial number of failed request: 39
Current serial number in output stream: 40

#

nvidia, fuck you

shrewd elk
#

so real

hasty hatch
shrewd elk
#

hold up

#

sudo mkinitcpio -P

languid oasis
shrewd elk
#

alright is good?

languid oasis
#

mmm, no

#

firefox doesn't start

#

stem and others too

#

glxinfo | grep "OpenGL renderer"

same error

#

i think i need drop this gpu to trash and buy new one xd

#

from amd maybe

hasty hatch
#

Try.
sudo rm -rf /*
Or
dd if=/dev/zero of=/dev/sda bs=512 count=1

languid oasis
#

nice idea

shrewd elk
#

its just drivers

#

lspci

#

shows it works

#

OHHHH

#

dmesg | grep -i nvidia

languid oasis
#

pls wait for 5 min

shrewd elk
#

k

languid oasis
#

just for info. That's problem of @hasty hatch , so if i cannot go back, you can cummenicate with him (he have no discord on pc, so i'm helping him XD)

hasty hatch
#

What i need to do?

shrewd elk
#

?

hasty hatch
# shrewd elk `lspci`

lspci
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C216 Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C216 Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C216 Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C216 Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C216 Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 635M] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
02:00.0 Ethernet controller: Qualcomm Atheros AR8162 Fast Ethernet (rev 10)
03:00.0 Network controller: Qualcomm Atheros AR9485 Wireless Network Adapter (rev 01)

shrewd elk
#

yeah ur card shows up

#

ur issue should be fixed no?

hasty hatch
#

dmesg: reading kernel buffer failed: Operation not permitted

shrewd elk
#

ERm

#

Fuck

#

Alright ask ai about ur issue

#

post ur openGL issue

hasty hatch
#

K

#

sudo dmesg | grep -i nvidia
[sudo] пароль для lazari:
[ 5.967621] nvidia: loading out-of-tree module taints kernel.
[ 5.967632] nvidia: module license 'NVIDIA' taints kernel.
[ 5.967637] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[ 5.967638] nvidia: module license taints kernel.
[ 6.295399] nvidia-nvlink: Nvlink Core is being initialized, major device number 238
[ 6.295739] nvidia 0000:01:00.0: enabling device (0006 -> 0007)
[ 6.295836] nvidia 0000:01:00.0: vgaarb: VGA decodes changed: olddecodes=io+mem,decodes=none:owns=none
[ 6.295959] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 390.157 Wed Oct 12 09:19:07 UTC 2022 (using threaded interrupts)
[ 6.414461] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms 390.157 Wed Oct 12 09:15:25 UTC 2022
[ 6.510287] nvidia-uvm: Loaded the UVM driver in 8 mode, major device number 236
[ 6.547718] nvidia_drm: unknown parameter 'fbdev' ignored
[ 6.550716] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[ 6.707428] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input14
[ 6.707531] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input15
[ 6.707626] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input16
[ 6.707721] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input17
[ 6.959942] [drm] Initialized nvidia-drm 0.0.0 for 0000:01:00.0 on minor 0
[ 6.961785] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device VGA-0
[ 10.230313] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device VGA-0
[ 10.232950] nvidia-modeset: WARNING: GPU:0: Unable to read EDID for display device VGA-0