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

[mce] Handle compositor startup actions #20

Merged
merged 3 commits into from Jan 28, 2023

Conversation

spiiroin
Copy link
Contributor

No description provided.

Querying information about D-Bus names leads those names to be queried
and tracked. Debug logging can trigger this for NULL names - which then
leads to problems.

Explicitly check and reject NULL names from tracking.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
Sometimes it is necessary to reschedule timers from within timer notify
callback but wltimer implementation makes it more difficult than what
it needs to be.

Make it so that stop/start function calls made directly or indirectly
from notification callback override stop/continue return value of
the callback function.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
There are timing and permission problems with compositor handovers that
cross system vs user service boundary or involve need for starting or
stopping android hw compositor service.

As MCE is already involved and watching over these handovers, it can also be
made to perform the necessary hw compositor actions in a time frame where it
ought to be safe i.e. after the previous compositor service has made an exit
and the new compositor service has not yet been given permission to draw.

Processes that act as compositor can implement a new dbus method call that
mce can then use to query what kinds of hwc needs (stop, start, or restart)
the new compositor has. If compositor does not implement this method call,
mce assumes no actions ought to be taken.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jolla.com>
@spiiroin
Copy link
Contributor Author

Force push to update (c) spans

@spiiroin spiiroin merged commit 92d1ad6 into sailfishos:master Jan 28, 2023
@spiiroin spiiroin deleted the jb59811_compositor_actions branch January 28, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants