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

How to destroy wlroots backend #2333

Open
dep4 opened this issue Apr 14, 2024 · 1 comment
Open

How to destroy wlroots backend #2333

dep4 opened this issue Apr 14, 2024 · 1 comment
Labels
help wanted Issues that need more hardware and knowledge low-priority Issues that aren't likely to be resolved soon needs information Issues where the reporter needs to add more information question wlroots

Comments

@dep4
Copy link
Contributor

dep4 commented Apr 14, 2024

Hi,

I need to unbind kernel driver from graphics card to pass to VM.
First, I tried to remove output but it still keeps DRI device open.
Added destroy backend, but it destroys all backends (including other card's) and still keeps device open.
What am I missing?

Modified sample from stipc plugin

        auto output = wf::get_core().output_layout->find_output(data["output"]);
        auto backend=output->handle->backend;
        wlr_output_destroy(output->handle);
        wlr_multi_backend_remove(wf::get_core().backend,backend);
        wlr_backend_destroy(backend);

lsof

wayfire 2294 -   14u      CHR            226,128       0t0     347 /dev/dri/renderD128
wayfire 2294 -   15u      CHR            226,128       0t0     347 /dev/dri/renderD128
wayfire 2294 -   16u      CHR            226,128       0t0     347 /dev/dri/renderD128
wayfire 2294 -   17u      CHR            226,128       0t0     347 /dev/dri/renderD128
wayfire 2294 -   21u      CHR              226,0       0t0     348 /dev/dri/card0
wayfire 2294 -   22u      CHR            226,129       0t0     396 /dev/dri/renderD129
wayfire 2294 -   23u      CHR            226,129       0t0     396 /dev/dri/renderD129
wayfire 2294 -   24u      CHR            226,129       0t0     396 /dev/dri/renderD129
wayfire 2294 -   25u      CHR            226,129       0t0     396 /dev/dri/renderD129
wayfire 2294 -   26u      CHR              226,1       0t0     397 /dev/dri/card1
wayfire 2294 -   27u      CHR              226,1       0t0     397 /dev/dri/card1
wayfire 2294 -   28u      CHR              226,1       0t0     397 /dev/dri/card1
wayfire 2294 -   29u      CHR              226,1       0t0     397 /dev/dri/card1
wayfire 2294 -   32u      CHR            226,129       0t0     396 /dev/dri/renderD129
wayfire 2294 -   33u      CHR            226,129       0t0     396 /dev/dri/renderD129

Thanks

@ammen99
Copy link
Member

ammen99 commented Apr 15, 2024

These things are mostly managed by wlroots, you should ask in the wlroots development channels what needs to happen on their side and then we can see what we can do on the Wayfire side to achieve it.

@ammen99 ammen99 added help wanted Issues that need more hardware and knowledge low-priority Issues that aren't likely to be resolved soon needs information Issues where the reporter needs to add more information labels Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues that need more hardware and knowledge low-priority Issues that aren't likely to be resolved soon needs information Issues where the reporter needs to add more information question wlroots
Projects
None yet
Development

No branches or pull requests

2 participants