-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Games (Apex Legends) don't use NVIDIA GPU #62
Comments
I'm assuming you have hybrid capability and have access to I've had similar problems, but it was a game-by-game issue, so trying different games may also be another data point worth collecting if you want. |
From what I can tell prime-select is an ubuntu package written by Alberto Milone (https://launchpad.net/~albertomilone) who has never upstream this package or command feature to Debian. There is no prime-select package or command in Debian so I cant test this unfortunately. Tried Shadow of the Tomb Raider as a second game to test, same issue, only sees Intel UHD Graphics 630 with Vulkan as an option in feral launcher. Very sad. Please help me Ash. |
Unfortunately, I'm unable to test myself currently as I'm having unrelated issues with my GPU. Do you have a command line tool like |
Yes exactly, as mentioned in the first post I use nvtop and am able to launch deb apps to the gpu no issue, only snap has the problem. |
Do other desktop processes appear in the list as well or only things you specifically run with nvidia? |
No only desktop processes told to be launched with the GPU appear in the list, I believe this is normal under wayland. Unsure if you are suggesting that I should be seeing anything else. That sounds incorrect to me, or random processes would be wasting GPU cycles. In gnome/wayland you can normally right click on a program and choose launch with discrete gpu or you can use the cli tool switcherooctl which is gnomes wrapper for calling the gpu. None of these have any affect on the snap, or launching the game with these methods directly and there is no method to expose the gpu to the snap version of steam. For example I can make glxgears run on the gpu no problem, via cli you just run switcherooctl launch -g 1 glxgears for example. This is not working for steam snap. P |
I was essentially getting at if your session is using hybrid graphics or strictly dedicated graphics. When I use Either way, the game should use your GPU, but obviously it isn't. I'm just curious if it is a hybrid graphics problem or a strictly nvidia problem. |
I see what you mean. I would say hybrid, because prime-select does not exist so I dont really have the option to use only nvidia and disable the intel card completely. The prime select command is an ubuntu only thing at this time I believe. |
Not sure if its something to do with vulkan? I saw this in the log also: [ 766.456143] audit: type=1400 audit(1667186104.946:15229): apparmor="DENIED" operation="open" profile="snap.steam.steam" name="/etc/vulkan/explicit_layer.d/" pid=15699 comm="pressure-vessel" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 |
Came back to retest this and I am still stuck not able to use my nvidia card when using steam snap. Unsure how to progress. P |
Are you still having this issue? I'm unable to reproduce it with my Intel/NVIDIA system. If it is still a problem, try installing 32-bit NVIDIA drivers, too: https://github.com/canonical/steam-snap/wiki/FAQ#32-bit-driver. Failing that, try switching NVIDIA driver versions. |
Closing for no because of no activity, see my previous comment for a further solution to try if it still doesn't work. Feel free to reopen if nothing is successful. |
My Apologies I missed this. What should I do to troubleshoot this? I am using Debian with the snap install. |
Are you on Wayland? And if so, would it be possible for you to try on X? |
Yes I am using wayland... I can try later on X. I also should note I have to follow 32 bit instructions here: https://wiki.debian.org/NvidiaGraphicsDrivers#Installing_32-bit_libraries_on_a_64-bit_system Also the command "prime select" does not exist on debian which I think is part of the issue. In Ubuntu you can force only 1 graphics card to be active, debian this is not possible it seems always to run in on demand mode with the intel used unless the nvidia card is explicitly requested. Will come back to you later on this :) |
@ashuntu I tried x11 windowing on gnome and it also has the same problem. To run glxgears with nvidia card I have to do the following: This then correctly uses the nvidia card. I tried fiddling around with the steam options like: __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia %command% but not able to make any improvement. |
Just some more info, I also tried another game which has a feral "launcher" that appears before launching the game. it only detects 1 graphics card in the launcher for the game "shadow of mordor" wgich is the intel UHD 630 with vulkan. I imagine that not detecting the nvidia card is the underlying issue here. |
This should be resolved with edge Steam and snapd. You can try by refreshing snapd with |
Incredible work. I have just tested after doing a
and everything works perfectly. You have made a heroic effort and huge leap forward. Can I ask when this will migrate out of the edge channel? Basically as everything is fixed I will stick on edge until the changes here migrate down. |
I can't say for certain at the moment, but it should be around the release of Ubuntu 24.04.1. (We will be closing issues with the |
Oh no that is so long away 😢 Thanks though. You are a legend. |
Describe the bug
Unable to launch steam snap/games (Apex Legends tested) on Nvidia GPU 1050
To Reproduce
Tried to launch using discrete graphics card option in right click menu of gnome.
Tried to launch steam snap using command with cli "__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia steam" from terminal
Tried adding launch option to game inside of steam __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia steam %command%
Expected behavior
Hoping that GPU would be used so that fps is improved above 10 fps.
Environment
Debian Bookworm (12) running gnome wayland with pipewire and wireplumber.
Distro & version:
CPU: Intel core i7 8th gen something
GPU: 1050 GTX laptop GPU
GPU Driver Version: 470.141.03-2
Logs
sudo dmesg:
Additional context
Unsure how to troubleshoot/proceed. Please advise.
Pete
The text was updated successfully, but these errors were encountered: