I have an nvidia gpu, and run some apps through flatpak. And there is weird problem of gpu acceleration suddenly just stops working in flatpak apps.

Normally when i for example run zoom, i can stream my screen no problem, blender gets full performace from gpu. But if run these programs some time later, zoom just shows black screen, and blender lags so much.

In between this time, i did not do anything to installed packages. I did not do a system update, i did not update flatpak packages. Everything should have been working as it worked earlier but it doesnt.

I found out that in between that time, new nvidia driver version is released on flathub, and updating nvidia driver package specifically, fixes gpu acceleration in flatpak apps. But now i have a question, why does already installed driver suddelnly stops working, until i update it?

  • gegil@sopuli.xyzOP
    link
    fedilink
    arrow-up
    3
    ·
    22 hours ago

    I dont have an auto update enabled on my system, and i always reboot system after update. For flatpak specifically, when i hear people complaining about me streaming the black screen, i just update flatpak nvidia package, and dont even need to restart zoom to be able to start streaming again. And as i said, it realy does happen suddenly. I can stream video normally, but few minutes later, while still in meeting, i start streaming again and it shows black screen, while i did absolutely nothing.

    Really weird stuff.

    • Vincent@feddit.nl
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      20 hours ago

      Wait a minute, what is the Flatpak Nvidia package? Do you need that for GPU acceleration for Flatpak apps on Nvidia? How do you even know whether GPU acceleration is working?

      (I recently got a new laptop and it’s the first time I have a dedicated GPU, and I have no idea how it all works. Sorry for hijacking your thread.)

      • just_another_person@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        19 hours ago

        If you have an Nvidia GPU, run nvidia-smi in your terminal and it will show with prices are engaging the GPU.

        For AMD any process monitor should show GPU usage for procs, or there is radeontop for more detailed info.

    • ☂️-@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      21 hours ago

      that happened to me on nvidia when the apt packages auto updated but not the flatpak ones to match the new driver.

    • just_another_person@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      19 hours ago

      Kind of sounds like you have a rogue process engage the Wayland API to take exclusive control over something. Maybe you’re running multiple video apps that take input from your camera or streaming device at the same time, like Discord, Zoom, and OBS all running at the same time. One has exclusive access while you stream, but then another engages the same device and takes control for a split second, killing the other apps access.