Just did an update to my Nvidia drivers, and now I can’t seem to figure out how to get games to run using the Nvidia graphics card (I’m using a computer with both integrated and dedicated graphics). When I use nvidia-smi, I get no processes besides “usr/lib/Xorg”.
Many of the forum posts I’ve seen here mention commands like ‘nvidia-installer-check’ which just return “command not found” for me.
I actually happen to have Envy-control installed at the moment, but even after setting it to Nvidia, I still can’t run games. When I set it to hybrid, I get very low frame rates on games. When I set it to Nvidia, I get games that don’t seem to start up properly (showing a black rectangle and nothing else, for example).
In both cases, the processes for the games I’m trying to run don’t show up when I run “nvidia-smi”.
I think we should stop recommending using EnvyControl and actually switch to Supergfx. Not sure if it is just me or it’s a small group, but envycontrol seems to cause issues switching between hybird/integrated/dedicated on some hardware, primarily Lenovo (oddly).
Meanwhile Supergfx seems to run the best, albeit with small configs to remove the eGPU menu (but maybe that is done automatically)
I have looked at the Linux Gaming Guide, but haven’t been able to find much that seems relevant to my problem specifically.
Giving Supergfxctl a try, and after restarting, it looks like I can run some games (like Doomrunner or Starsector) by appending prime-run to the command - but I can’t do so with the flatpak Steam version I have installed. When I try, I get an error reading “too many levels of symbolic links”. When did run flatpak steam with prime-run, I still couldn’t use prime-run on the Steam games.
Non-Steam games (such as Starsector) seem to run fine and make use of Nvidia graphics when I use Supergfxctl, but Steam games don’t seem to use it. I also can’t seem to put “prime-run %command%” in the launch options of Steam games. When I do so, the game briefly starts “running”, and then stops, without any windows appearing.
Running “nvidia-inst --drivers” just gave me this result:
$ nvidia-inst --drivers
NVIDIA card id: 2191
Fetching driver data from nvidia.com ...
Series 545: supported (nvidia.com: 545.29.06)
I’m also able to run prime-run glxinfo | grep “OpenGL renderer”:
as well as prime-run vulkaninfo, though that gives me a massive list of entries that I won’t post here (if it’s absolutely necessary, I’ll make a pastebin).
Looks like switching from Flatpak Steam to the Steam provided by AUR means I can run games with Nvidia. Not sure why it wasn’t working with flatpak Steam, though.
Just a thought… And I’m not using steam, so I might be totally wrong, but sometimes in a script the commands may need the full path, like /bin/prime-run
instead of just prime-run