sony / flutter-embedded-linux

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

Consider replace systemd with libuv? #419

Closed Thor-x86 closed 1 month ago

Thor-x86 commented 1 month 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 1 month 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 1 month 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 1 month 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 1 month 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 1 month ago

Done.