appcenter icon indicating copy to clipboard operation
appcenter copied to clipboard

Install Flatpak runtime when installing NVIDIA drivers

Open cassidyjames opened this issue 2 years ago • 5 comments

Problem

After installing proprietary NVIDIA drivers, Web tabs crash like when we were missing the GL extension.

Proposal

Install the matching NVIDIA Flatpak GL extension when installing drivers.

Prior Art

cassidyjames avatar Aug 10 '21 08:08 cassidyjames

Hm, I had wondered about this, after installing the proprietary driver on my machine, I didn't notice any tab crashes in Web, but maybe it varies per hardware or how you have the driver configured (i.e. all the stuff about on-demand modes, etc)

I'll look into this, but initial thoughts are that AFAIK you have to match the nvidia GL runtime exactly to the version of the nvidia driver installed, down to the point release. So it would definitely be worth future me investigating if we can get Flatpak to do that matching for us, since it must have the code to do that, rather than trying to match ourselves.

davidmhewitt avatar Aug 10 '21 09:08 davidmhewitt

@davidmhewitt,

If it counts for something I had the same experience with Web failing to show a page and Tasks failing to even load because of this.

Maybe you're on some dual GPU configuration and flatpak reverts to the next one in the list? Or I don't know, don't even want to assume, but a sure thing is that the GL extension in flatpak were missing and it caused me issues with a single dedicated nvidia card after installing the drivers. It's actually why I'm here and looking to see if someone else reported this.

"flatpak --gl-drivers" outputs what it expects and the order it expects the GL extentions, I presume it can be used to create the final package name/ID to install!?

SmokeyCosmy avatar Aug 10 '21 23:08 SmokeyCosmy

Same here, I am using hybrid graphics configured to use on demand. flatpak --gl-driver output:

nvidia-460-91-03
default
host

JonathanOldenburg avatar Aug 11 '21 11:08 JonathanOldenburg

@JonathanOldenburg How you do that ? with prime profiles ?

andirsun avatar Aug 12 '21 14:08 andirsun

I think flatpak installs it automatically on the first update after the driver is installed. I wonder if it would just be as simple as doing the equivalent of running flatpak updates after the driver is installed?

jhaygood86 avatar Oct 01 '21 00:10 jhaygood86