Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrusaSlicer not running with flatpak when running on dedicated gpu #13945

Open
2 tasks done
PredellaN opened this issue Jan 10, 2025 · 2 comments
Open
2 tasks done

PrusaSlicer not running with flatpak when running on dedicated gpu #13945

PredellaN opened this issue Jan 10, 2025 · 2 comments

Comments

@PredellaN
Copy link

PredellaN commented Jan 10, 2025

Description of the bug

When starting prusaslicer with "flatpak run com.prusa3d.PrusaSlicer", the application starts and works normally.
When starting with:

  • "flatpak --env=__NV_PRIME_RENDER_OFFLOAD=1 --env=__GLX_VENDOR_LIBRARY_NAME=nvidia run com.prusa3d.PrusaSlicer"
  • "switcherooctl -g 1 com.prusa3d.PrusaSlicer"
    The application stops here:
nicolas@pop-os:~$ flatpak run --env=__NV_PRIME_RENDER_OFFLOAD=1 --env=__GLX_VENDOR_LIBRARY_NAME=nvidia com.prusa3d.PrusaSlicer 
--------------------------------------------------------------------------
Message: 21:35:42: Starting PrusaSlicer flatpak with entrypoint script
--------------------------------------------------------------------------
nicolas@pop-os:~$

Starting the 2.8.0 AppImage version with switcherooctl -g 1 or with the environment variables specified before, the application starts on the dedicated GPU as intended. Other flatpak applications i am using run on the dedicated GPU without issue.
Enabling device=dri won't fix the issue.

Project file & How to reproduce

  • install the flatpak version of prusaslicer on a device with hybrid graphics
  • run prusaslicer with either of the above mentioned commands

Checklist of files included above

  • Project file
  • Screenshot

Version of PrusaSlicer

2.9.0

Operating system

Pop OS 22.04

Printer model

any

@Jan-Soustruznik
Copy link
Collaborator

Hello, @PredellaN , Could you check if PrusaSlicer has permission to use the GPU? You can add the necessary permissions using this command: flatpak override --gpu=all com.prusa3d.PrusaSlicer. Personally I would recommend flatseal to set/manage flatpak permissions in general.

@PredellaN
Copy link
Author

Hello @Jan-Soustruznik ,

nicolas@pop-os:~$ flatpak override --gpu=all com.prusa3d.PrusaSlicer
error: Unknown option --gpu=all

I assume you meant --device=all , however it doesn't solve the issue (it is already on by default). --device=dri also doesn't solve the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants