linux-enable-ir-emitter: Not working at boot

Even if I ran the “linux-enable-ir-emitter boot enable” command and the status is:

● linux-enable-ir-emitter.service - enable the infrared emitter
     Loaded: loaded (/lib/systemd/system/linux-enable-ir-emitter.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Thu 2021-10-14 08:28:01 CEST; 3h 24min ago
   Main PID: 1477 (code=exited, status=0/SUCCESS)

okt 14 08:28:01 user-linux systemd[1]: Starting enable the infrared emitter...
okt 14 08:28:01 user-linux systemd[1]: linux-enable-ir-emitter.service: Succeeded.
okt 14 08:28:01 user-linux systemd[1]: Finished enable the infrared emitter.

It just doesn’t enable the emitter during face scan. I need to run the command again to make it work at the current session. I’m on Ubuntu 20.4.3 LTS

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (11 by maintainers)

Most upvoted comments

I was having the same issue as described above. However, it seems to work on every boot after changing the type of the service to forking, i.e. Type=forking in /usr/lib/systemd/system/linux-enable-ir-emitter.service.

It is probably not an ideal solution, but it fixes some timing issue for me. With oneshot, my success rate was otherwise ~5%.

PS: Many thanks for the great work on this project.

Even the previous version was working sometimes, sometimes wasn’t. Let me test it for a few more days, then I will report back Now it seems to be working btw.