Skip to content

Commit 2f38ced

Browse files
authored
Merge pull request #83 from Tiramisioux/codex/fix-alsaloop-message-spamming
Limit autostart journal spam
2 parents 64b8c6c + c99eda0 commit 2f38ced

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/system-services.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Responsible for autostart of Cinemate on boot. By default, it is turned off on t
88

99
Starting in v3.2 the service now waits for the camera sensor to come online before launching the UI. The helper script `/usr/local/bin/camera-ready.sh` polls `cinepi-raw --list-cameras` for up to 30 seconds and logs progress to the systemd journal so Cinemate does not start with a black screen if the IMX sensor is still initialising.
1010

11+
To keep `journalctl -fu cinemate-autostart` readable when ALSA reports noisy underruns, the unit rate-limits log output (see `LogRateLimitIntervalSec` and `LogRateLimitBurst` in the service file). Adjust those values if you need more or less verbosity.
12+
1113
### Starting, stopping, enabling and disabling the service
1214

1315
Go to the Cinemate folder:
@@ -74,4 +76,4 @@ make disable
7476
7577
!!! note
7678
77-
While evaluating, it might be practical to have the Pi connect to your local wifi for easy access (`sudo raspi-config`). Therefore, on the image file, the wifi-hotspot.service is **not** activated by default. Cinemate will still stream its web interface on the available netowrk. You can read more [here](hotspot-logic.md)
79+
While evaluating, it might be practical to have the Pi connect to your local wifi for easy access (`sudo raspi-config`). Therefore, on the image file, the wifi-hotspot.service is **not** activated by default. Cinemate will still stream its web interface on the available netowrk. You can read more [here](hotspot-logic.md)

services/cinemate-autostart/cinemate-autostart.service

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ ExecStart=/home/pi/.cinemate-env/bin/python3 /home/pi/cinemate/src/main.py
99
WorkingDirectory=/home/pi/cinemate
1010
User=pi
1111
Group=pi
12+
SyslogIdentifier=cinemate-autostart
13+
LogRateLimitIntervalSec=30s
14+
LogRateLimitBurst=20
1215
TimeoutStopSec=5
1316
KillSignal=SIGINT
1417

0 commit comments

Comments
 (0)