sony / flutter-embedded-linux

Embedded Linux embedding for Flutter
BSD 3-Clause "New" or "Revised" License
1.22k stars 129 forks source link

Consider replace systemd with libuv? #419

Closed Thor-x86 closed 5 months ago

Thor-x86 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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 commented 5 months ago

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

HidenoriMatsubayashi commented 5 months ago

Done.