#Tetrio Desktop doesn't use nvidia drivers on NixOS

40 messages · Page 1 of 1 (latest)

quick fable
#

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

green island
#

you might have done this already

#

but

quick fable
#

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

grand trench
#

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

turbid quarry
#

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

grand trench
#

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

burnt dune
#
#

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

grand trench
#

Blame Jensen Huang

burnt dune
#

@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 serikabishi

#

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

quick fable
#

Tetrio Desktop doesn't use nvidia drivers on NixOS

quick fable
burnt dune
#

you can edit the .desktop file to run steam-run for you

#

honestly patch worthy to nixpkgs but idunno

quick fable
#

Do i click close post now or how does this work?

burnt dune
#

it will close in a week

grand trench
#

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

burnt dune
#

idunno

#

but neueuvueueuueooooo drivers work

grand trench
#

cool that nouveau works

quick fable
#

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

burnt dune
#

oh

quick fable
#

I guess it was just missing :P

burnt dune
#

i guess noevueuve gets them while propriatary doesnt care