PiSupply / JustBoom

Resources for JustBoom range
https://JustBoom.co
15 stars 5 forks source link

Make jb-rotary service more robust #10

Closed tvoverbeek closed 6 years ago

tvoverbeek commented 6 years ago

Modified jb-rotary.py to detect the justboom card even when the on-board audio (ALSA) is active.

Not sure if the possible card names have to be updated/extended.

Had to delay the start of the service, since it started too early before the alsa devices were available. Current delay is 20 sec. Hope that is sufficient for all cases.

Please review and test before merging.

tvoverbeek commented 6 years ago

No comments for > 1 week. Therefore merged.

tvoverbeek commented 6 years ago

As far as I know yes. See 'man systemd' the DIRECTORIES section. For user units the directory is /usr/lib/systemd/system. /etc/systemd/system is supposed to be for overriding system units in /lib/systemd/system. Anyway, if the unit file is unique it will work from either directory