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

Consider replace systemd with libuv? #419

Closed
Thor-x86 opened this issue May 29, 2024 · 5 comments · Fixed by #420
Closed

Consider replace systemd with libuv? #419

Thor-x86 opened this issue May 29, 2024 · 5 comments · Fixed by #420
Labels
drm Topics of DRM backend enhancement New feature or request

Comments

@Thor-x86
Copy link
Contributor

Before I'm working on the PR, I need to know why not use libuv to poll libinput with event loop? Using systemd on most embedded system is like driving a bus to a picnic site where the only passenger is spouse and the rest seats are left empty. In our case, we included around 25 systemd binaries with some unrelated services including systemd-machined, but we only need sd-event. This is a huge resource waste for embedded system. If you think it's okay to replace systemd with libuv, I'm going to continue finish the PR. Thanks!

@HidenoriMatsubayashi HidenoriMatsubayashi added enhancement New feature or request drm Topics of DRM backend labels May 29, 2024
@HidenoriMatsubayashi
Copy link
Contributor

HidenoriMatsubayashi commented May 29, 2024

I need to know why not use libuv to poll libinput with event loop?

There is no particular reason and if I remember correctly, weston also uses systemd, which was one of the reasons.

If you think it's okay to replace systemd with libuv, I'm going to continue finish the PR. Thanks!

Yes, it would be great if your PR could reduce the dependencies on the necessary binaries.

@Thor-x86
Copy link
Contributor Author

Alright, I'm working on it. I'll assume libuv is only required if systemd is not exist. Please let me know if you need something

@HidenoriMatsubayashi
Copy link
Contributor

HidenoriMatsubayashi commented May 29, 2024

Thank you.

I'll assume libuv is only required if systemd is not exist. Please let me know if you need something

Nothing comes to mind. Currently, libsystemd is only used for DRM backend and poll libinput.
See also: https://github.com/sony/flutter-embedded-linux/wiki/Installing-dependent-libraries#only-when-using-drm-backend

@Thor-x86
Copy link
Contributor Author

Thor-x86 commented Jun 3, 2024

Friendly reminder to update your Wiki. Unfortunately, we can't pull request (or at least propose a modification) for the Wiki on GitHub.

@HidenoriMatsubayashi
Copy link
Contributor

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drm Topics of DRM backend enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants