Open pallebone opened 2 years ago
I'm assuming you have hybrid capability and have access to prime-select
, so what happens when you run prime-select nvidia
and reboot? Does the game still not use the GPU?
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 nvidia-smi
to see what processes are using your GPU?
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
nvidia-smi
to see what processes are using your GPU?
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 nvidia
mode from prime-select
, things like xorg, GNOME shell, Firefox, etc. appear as using my graphics card, but the same isn't true when on on-demand
(hybrid graphics).
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.
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. I have retested it and still have the issue that the nvidia card is not used. Instead it uses the UHD Graphics 630 intel (device 0) card.
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?
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: __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxgears
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 snap refresh snapd --edge
(and restarting). Make sure to go back to stable after testing with snap refresh snapd --stable
.
This should be resolved with edge Steam and snapd. You can try by refreshing snapd with
snap refresh snapd --edge
(and restarting). Make sure to go back to stable after testing withsnap refresh snapd --stable
.
Incredible work. I have just tested after doing a
sudo snap refresh snapd --edge
sudo snap install steam --channel=latest/edge
and everything works perfectly. I tested Hitman 3, Apex Legends and Rise of the Tomb Raider. All worked with great fps and performance.
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.
Can I ask when this will migrate out of the edge channel?
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 fix-comitted
tag when everything is stable)
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