linux-enable-ir-emitter icon indicating copy to clipboard operation
linux-enable-ir-emitter copied to clipboard

runit instead of systemd

Open ChausseBenjamin opened this issue 3 years ago • 2 comments

I noticed every time I restart my computer, my IR emitter works just fine. But if I close my laptop lid and open it back up, it will no longer work.

Additional info

  • Distro: Artix Linux
  • Version: Using runit as a service manager
  • Version of linux-enable-ir-emitter: 4.1.5
  • How did you install linux-enable-ir-emitter: git version of the AUR

ChausseBenjamin avatar Jan 14 '23 18:01 ChausseBenjamin

Indeed, linux-enable-ir-emitter requires systemd, and you have runit. I don't know anything about how runit works, but maybe you can set up the startup script yourself.

In the simplest case, you just have to execute linux-enable-ir-emitter run after the initialization of the camera for each "startup" cases: boot, sleep, hibernate, etc.

The most complicated part is to detect when the initialization of the camera is completely finished. With some OS/HW, this is not a problem, but with some others, I had to implement in the systemd service several tricks.

Maybe with runit it is very simple, but I really have no idea.

EmixamPP avatar Jan 16 '23 14:01 EmixamPP

This should be easy to implement with the new integration created to support OpenRC #104

EmixamPP avatar Jun 16 '23 19:06 EmixamPP

I'm closing this issue, since it received no interest for more than one year

EmixamPP avatar Mar 17 '24 21:03 EmixamPP