flathub / net.lutris.Lutris

https://flathub.org/apps/details/net.lutris.Lutris
127 stars 25 forks source link

GPU drivers not accessible #112

Open gdonval opened 4 years ago

gdonval commented 4 years ago

I have those runtimes installed:

GNOME Application Platform version 3.36    org.gnome.Platform                                                    3.36         flathub         system
i386                                       org.gnome.Platform.Compat.i386                                        3.36         flathub         system
Freedesktop Platform                       org.freedesktop.Platform                           19.08.12           19.08        flathub         system
i386                                       org.freedesktop.Platform.Compat.i386                                  19.08        flathub         system
default                                    org.freedesktop.Platform.GL.default                                   19.08        flathub         system
default                                    org.freedesktop.Platform.GL.default                                   19.08beta    flathub-beta    system
default                                    org.freedesktop.Platform.GL32.default                                 19.08        flathub         system
default                                    org.freedesktop.Platform.GL32.default                                 19.08beta    flathub-beta    system

Lutris starts but no game does. There is nothing meaningful in the full log (just the process terminating after a couple of seconds). However when I run this (from my home, otherwise adapt the command to start winecfg from wherever):

flatpak run --command=.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-fshack-5.7-x86_64/bin/winecfg net.lutris.Lutris

I get:

000b:fixme:winediag:__wine_start_process Wine TkG 5.7 is a testing version containing experimental patches.
000b:fixme:winediag:__wine_start_process Please don't report bugs about it on winehq.org and use https://github.com/Tk-Glitch/PKGBUILDS/issues instead.
Wine cannot find the ncurses library (libncurses.so.5).
002b:err:winediag:nodrv_CreateWindow Application tried to create a window, but no driver could be loaded.
002b:err:winediag:nodrv_CreateWindow Make sure that your X server is running and that $DISPLAY is set correctly.

It used to work when you were based on Freedesktop SDK. It seems perfectly clear that no drivers are accessible from within flatpak with that runtime.

A6GibKm commented 4 years ago

You have a mix of runtimes from flathub and flathub-beta, actually the ones using the branch 19.08beta are probably older than the ones in flathub (and might be incompatible) with tag 19.08. Note that the current runtimes are 20.08 are 3.38. Please report back if this issue is still a thing.

Also lutris has been based on the gnome SDK for a long time.

strycore commented 2 years ago

might still be worth adding ncurses to the flatpak, it's likely that some native game installer will use it

WhyKickAmooCow commented 1 year ago

Try installing flatseal and adding GPU permission to lutris. For some reason it isn't enabled by default meaning that at least in my case, nvidia rendering offload didn't work on my laptop.

A6GibKm commented 1 year ago

We use --device=all which implies --device=dri, so we are giving access to gpu

WhyKickAmooCow commented 1 year ago

Which makes it odd that it render offload only started working when I enabled GPU access. Now I have disabled it and it continues working, so at this point I have no idea. Maybe a bug somewhere else in the chain.