I'm using KDE(X11) on NixOS and the desktop app does not use the GPU, but the browser version does. Any ideas what could cause this?
Not the highest priority, because I can use the browser version. Just curious
#Tetrio Desktop doesn't use nvidia drivers on NixOS
40 messages · Page 1 of 1 (latest)
you might have done this already
but
Having technical issues with TETR.IO? Here's some common ones regarding the game and its desktop application, as well as solutions to the problems you may be facing.
im on a linux pc, don't have a integrated gpu
the desktop app uses google swiftshader so I think that means it's unable to find/use any gpu
Nvidia graphics is a major source of headaches on Linux, for having a proprietary core, not using Mesa, and others.
I think TETR.IO Desktop Linux is hardcoding Mesa-specific files somewhere?
If you are on Linux 6.7 and above (check uname -r), a quick workaround is to uninstall the proprietary drivers. Nouveau is likely still not good enough, but is a lot more usable than before (with reclocking support for RTX 3090!) so probably worth a try.
oh wait, Linux 6.7 is not released yet and latest you can get is the not-considered-stable Linux 6.7-rc6
for what it's worth i had nouveau installed for years and tetr.io still used my 1050 Ti
desktop is just an electron soup, so i don't think there's been any special attention to make mesa a requirement
Just to note, Mesa drives Intel and AMD/ATI GPUs -- which for PCs meant everything other than Nvidia
Nouveau for Pascal (10 series) is still garbage though in Linux 6.7
so I think hardcoding Mesa is probable for a naive port
Also NixOS uses a very unconventional directory layout which could also contribute to the problem
this is a NixOS issue and it doesn't belong in #1020051077820862596
less dickish answer:
https://discourse.nixos.org/t/electron-apps-dont-open-on-nvidia-desktops/32505/4
this should work
NixOS Discourse
That error might be due to the need to configure hardware acceleration for NVIDIA: hardware.opengl.enable = true; hardware.opengl.extraPackages = [ pkgs.libvdpau-va-gl ]; #NVIDIA doesn't support libvdpau, so this package will redirect VDPAU calls to LIBVA. environment.variables.VDPAU_DRIVER = "va_gl"; environment.variables.LIBVA_DRIVER_NAME = ...
personally I always played tetrio in a browser so I never noticed it but I can check tetrio-desktop soon
send nvidia-smi output also
I'm running the same stack as you so I will reprod tomorrow on 23.11
Blame Jensen Huang
@quick fable found the solution
Electron version of Tetrio doesnt recognize drivers that arent part of Filesystem Hierarchy Standard that NixOS breaks.
Solution is to run tetrio-desktop using some sort of FHS enviroment, i assume you already have Steam installed (programs.steam.enable = true;) and that package already comes with steam-run.
If you don't wish to have Steam installed there are instructions on the wiki of using steam-run without steam
marking as solved 
also rename issue to Tetrio Desktop doesn't use nvidia drivers on NixOS as this is purely a NixOS issue and it would help with searchability
Tetrio Desktop doesn't use nvidia drivers on NixOS
that worked thanks i love you 
you can edit the .desktop file to run steam-run for you
honestly patch worthy to nixpkgs but idunno
sorry didn't know if its nixos only or linux or nvidia, my only distro is nixos
Do i click close post now or how does this work?
it will close in a week
Electron version of Tetrio doesnt recognize drivers that arent part of Filesystem Hierarchy Standard that NixOS breaks.
makes me interested if Tetrio would recognize Mesa in NixOS
VM emulated graphics devices use Mesa so could spin up one to test
sorry for necro
cool that nouveau works
Oh yeah i also opened a pull request for nixpkgs and someone said to just add libGL to the libPath and that fixed it 😄 No need for steam-run
oh
I guess it was just missing :P
i guess noevueuve gets them while propriatary doesnt care