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

Turning off captured monitor breaks portal #91

Open
BrodieRobertson opened this issue Sep 7, 2024 · 1 comment
Open

Turning off captured monitor breaks portal #91

BrodieRobertson opened this issue Sep 7, 2024 · 1 comment

Comments

@BrodieRobertson
Copy link

If you're capturing a monitor with a portal (for example with OBS), and you for whatever reason turn the monitor off the capture freezes inside OBS (this is expected) but when you turn the monitor back on and try to recapture the screen the capture fails and the portal must be restarted. If you're streaming with OBS this also means having to restart OBS

@BrodieRobertson BrodieRobertson changed the title If you turn off a monitor you're capturing, the capture breaks and the portal must be restarted Turning off captured monitor breaks portal Sep 7, 2024
@ids1024
Copy link
Member

ids1024 commented Sep 11, 2024

It seems cosmic-comp doesn't send ready or failed in response to the capture that happens when the screen is off. Nor does it send stopped to the session. So that's something that will need to be fixed. The Pipewire thread keeps waiting on a response to the capture that it doesn't receive.

Though it's odd that this also prevents a future capture. It seems it does start a new screencopy thread, which creates a Pipewire stream, but for some reason it doesn't negotiate SPA_PARAM_format and doesn't actually start capturing frames...

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

No branches or pull requests

2 participants