I have a question about `bazzite arch`

Steam in bazzite-arch does not properly load or detect vulkan GPUs running on bluefin or Bazzite desktop.
63 Replies
Nathaniel
Nathaniel•11mo ago
Steam doesn't seem to see my NVIDIA card, but nvidia-smi does. Will Steam still use the card correctly and/or is this expected behavior? TIA
1/4 Life
1/4 Life•11mo ago
I need to update the usage instructions, give me a sec and I'll send you something that should fix it
Nathaniel
Nathaniel•11mo ago
cool, thanks!
1/4 Life
1/4 Life•11mo ago
Workaround for a distrobox bug fixed in git
Nathaniel
Nathaniel•11mo ago
I'm happy to help document stuff too
1/4 Life
1/4 Life•11mo ago
That's much appreciated
Nathaniel
Nathaniel•11mo ago
Also, just for context, yes it's a bluefin-nvidia install 🙂 and the bazzite-arch install was also the nvidia version. further context, this system doesn't have switchable graphics, but I do have one that does on which I can also do testing
1/4 Life
1/4 Life•11mo ago
What's happening on your end is multifaceted Distrobox has a Nvidia driver layer/export option but in the currently released build it's broken Files which are symlinks are not added to the box resulting in a broken Vulkan setup
Nathaniel
Nathaniel•11mo ago
I did see some messages about that
1/4 Life
1/4 Life•11mo ago
Additionally, no 32bit libraries are copied So there's a temp workaround you can do And a permanent fix in git, but that version has a bug preventing sudo from working
Nathaniel
Nathaniel•11mo ago
preventing sudo from working in the box, right? guest, not host
1/4 Life
1/4 Life•11mo ago
Yeah
1/4 Life
1/4 Life•11mo ago
Bazzite uses assemble to get it running That volume line will fix Vulkan for 64-bit applications
Nathaniel
Nathaniel•11mo ago
so, excuse my ignorance, is this the one that breaks sudo or the temp workaround?
1/4 Life
1/4 Life•11mo ago
Workaround, no issues with sudo
Nathaniel
Nathaniel•11mo ago
okay thank you so looking at this commit, I see where the files in the repo were changed, can I make this change directly on my already created bazzite container, or will I need to recreate it?
1/4 Life
1/4 Life•11mo ago
you'll have to recreate it, good news is unless you installed new applications yourself it'll be like nothing happened steam will start up already logged in once it's remade, all your existing shortcuts will work, etc
Nathaniel
Nathaniel•11mo ago
Okay, so follow-up questions, and updates. I mainly use(ed) github for documentation, but if I'm understading things correctly, the commit has already been pushed now? Would I have had to clone the repo and build the container from local? Again sorry, still getting my bearings with how all of this is set up. I got to thinking though, and decided to give Bazzite as the host OS a shot, since I would want to be able to game on the machine anyway, and Bazzite works as a full desktop. However, the same issue with vulkan/nvidia happens in the bazzite-arch containter there as well. What am I doing wrong? haha
1/4 Life
1/4 Life•11mo ago
Up until the commit I just pushed bazzite was using distrobox-git which had it's own problems, we're working on a stable release of that as far as the nvidia volume line, did you delete the box and start over?
Nathaniel
Nathaniel•11mo ago
Yes I did
1/4 Life
1/4 Life•11mo ago
can you show me what you're seeing in steam regarding vulkan?
Nathaniel
Nathaniel•11mo ago
Let me remove the box and re-add it, and I'll get you screenshots!
1/4 Life
1/4 Life•11mo ago
much appreciated
Nathaniel
Nathaniel•11mo ago
Okay so, I ran just update again, and this time it moved me from distrobox-git to distrobox
1/4 Life
1/4 Life•11mo ago
I just pushed that up because of the aforementioned issues with git
Nathaniel
Nathaniel•11mo ago
nvidia-smi still works fine and shows the correct version for the driver (535) I'm going to still remove and re-add the box to see what happens
1/4 Life
1/4 Life•11mo ago
sounds good
Nathaniel
Nathaniel•11mo ago
the box installed fine, this is what I got when I first ran steam
Nathaniel
Nathaniel•11mo ago
No description
1/4 Life
1/4 Life•11mo ago
odd, it's trying to use nouveau
Nathaniel
Nathaniel•11mo ago
I can blacklist it
1/4 Life
1/4 Life•11mo ago
what's in /etc/vulkan/icd.d ? oh yea hold on have you done the kargs and what not needed for nvidia?
1/4 Life
1/4 Life•11mo ago
GitHub
GitHub - ublue-os/nvidia: Fedora variants with built-in Nvidia drivers
Fedora variants with built-in Nvidia drivers. Contribute to ublue-os/nvidia development by creating an account on GitHub.
1/4 Life
1/4 Life•11mo ago
this and step 3
Nathaniel
Nathaniel•11mo ago
I will do that right now I do that in the host Terminal yes?
1/4 Life
1/4 Life•11mo ago
Yes
Nathaniel
Nathaniel•11mo ago
okay, rebooting so, still getting the failed, uanble to init and enumerate GPUs with Vulkan nuked and paved the box again too let me make sure it rebased
1/4 Life
1/4 Life•11mo ago
what's in /etc/vulkan/icd.d inside the box
Nathaniel
Nathaniel•11mo ago
there is no vulkan directory in the box' /etc/
1/4 Life
1/4 Life•11mo ago
that's new and likely your issue on your host what do you have in there?
Nathaniel
Nathaniel•11mo ago
I have that path, but there's nothing in the icd.d directory
1/4 Life
1/4 Life•11mo ago
uh... huh you should for-sure have nvidia files in there
Nathaniel
Nathaniel•11mo ago
you'd like to think so! lol
1/4 Life
1/4 Life•11mo ago
does vulkan work on the host?
Nathaniel
Nathaniel•11mo ago
also nvidia-smi works fine on the host too what's the fastest way to check, install the steam rpm and run a game?
1/4 Life
1/4 Life•11mo ago
rpm-ostree install vukan-tools followed by vulkaninfo can do the same in the arch distrobox, just with sudo pacman -S
Nathaniel
Nathaniel•11mo ago
okay that's running rebooting and then I'll check vulkaninfo okay I've got a buttload of output, anything in particular you want?
1/4 Life
1/4 Life•11mo ago
whole thing if you can, you can do uhh vulkaninfo | fpaste to make it easy
1/4 Life
1/4 Life•11mo ago
vulkan is definitely working there, that's good at least how about this same command on arch?
Nathaniel
Nathaniel•11mo ago
running the pacman install command, then I'll let you know 🙂
1/4 Life
1/4 Life•11mo ago
you might also want fpaste there paru -S fpaste
Nathaniel
Nathaniel•11mo ago
so I'm getting:
[nathaniel@bazzite-arch ~]$ vulkaninfo
ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools-1.3.255/vulkaninfo/vulkaninfo.h:1560:vkGetPhysicalDeviceSurfaceSupportKHR failed with ERROR_INITIALIZATION_FAILED
[nathaniel@bazzite-arch ~]$ vulkaninfo
ERROR at /usr/src/debug/vulkan-tools/Vulkan-Tools-1.3.255/vulkaninfo/vulkaninfo.h:1560:vkGetPhysicalDeviceSurfaceSupportKHR failed with ERROR_INITIALIZATION_FAILED
I stopped the box and re-entered it, do I need to do more first?
1/4 Life
1/4 Life•11mo ago
you shouldn't, no that's odd, we fixed that previously can you do cat /usr/share/ublue-os/distrobox/bazzite-arch-nvidia | fpaste on your host
1/4 Life
1/4 Life•11mo ago
😦 I'll have to get a nvidia GPU to test with on my end, that's very annoying
Nathaniel
Nathaniel•11mo ago
it is! especially because I have three NVIDIA machines and wanted to dog-food this lol I'm happy to do any tests you want me to on this machine, there's nothing important on it, I can nuke and pave. Or even give you remote access if that's helpful
1/4 Life
1/4 Life•11mo ago
that would be very helpful no need to nuke, if nvidia works on your host it should 100% work in distrobox
Nathaniel
Nathaniel•11mo ago
I just meant if you wanted to try a new OS build or something, but I agree just let me know what you need from me Any update on this I can help with? 🙂
1/4 Life
1/4 Life•11mo ago
Nothing yet I'm afraid, we're waiting for the distro box update to hit stable at this point Rather than try to work around this bug Beauty of Nvidia on Linux
Nathaniel
Nathaniel•11mo ago
Nature of the green eyed beast. 🙂 Update: Previously I had tried to run Persona 5 Royal, and it did come up with processing vulkan shaders, but I'm not sure if the game was strenuous enough to require the dGPU. Today, I am installing Overwatch 2, and Crysis Remastered to actually do some stress testing and make sure whether it's not using the GPU, or if it just says it's not. Crysis would not launch with multiple proton versions, indicating the GPU is not seen by the guest.
1/4 Life
1/4 Life•11mo ago
Latest build has distrobox-git again, upstream issue that kept us from using it is fixed That should be the end of all known Nvidia issues