If I run this “NV_PRIME_RENDER_OFFLOAD=1 GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep vendor” command I get an error:
user@localhost:~> __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOPreformatted textR_LIBRARY_NAME=nvidia glxinfo | grep vendor
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 152 (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.
But if I run “lsmod | grep nvidia” command I can see that driver is seems to be running. Output:
I have the same problem as OP and I do not have a dracut file. Ubuntu 20.04.
±----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 GeForce GTX 960 On | 00000000:01:00.0 On | N/A |
| 0% 56C P8 13W / 160W | 510MiB / 2000MiB | 28% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1631 G /usr/lib/xorg/Xorg 50MiB |
| 0 N/A N/A 5872 G /usr/lib/xorg/Xorg 258MiB |
| 0 N/A N/A 6115 G /usr/bin/gnome-shell 62MiB |
| 0 N/A N/A 11192 G …gAAAAAAAAA --shared-files 53MiB |
| 0 N/A N/A 19001 G …AAAAAAAAA= --shared-files 70MiB |
±----------------------------------------------------------------------------+
Error:
xxx@xxxxxx:~$ steam
Running Steam on ubuntu 20.04 64-bit
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Steam client’s requirements are satisfied
/home/wes/.local/share/Steam/ubuntu12_32/steam -nominidumps -nobreakpad
[2021-02-24 17:01:40] Startup - updater built Feb 12 2021 23:21:33
[2021-02-24 17:01:40] Opted in to client beta ‘publicbeta’ via beta file
You are in the ‘publicbeta’ client beta.
SteamUpdateUI: An X Error occurred
X Error of failed request: GLXBadContext
SteamUpdateUI: An X Error occurred
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 45
xerror_handler: X failed, continuing
Major opcode of failed request: 151 (GLX)
Minor opcode of failed request: 6 (X_GLXIsDirect)
Serial number of failed request: 46
xerror_handler: X failed, continuing
The Xserver is running correctly on the nvidia gpu. Steam is 32bit, so you need to have the 32bit compatibility libs installed. How did you install the driver?
By installing the full cuda bundle, you installed the compute driver, which doesn’t have the 32bit compatibility libs. You need to install the graphics driver from Ubuntu’s software&Updates.