From 8598c7193561bcca4344ecee7b1d6645929935db Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 8 Nov 2026 15:25:19 +0100 Subject: [PATCH] fix: init.d script use correct resolution and fix log --- .../overlay/etc/init.d/S99photobooth | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/board/winf-photobooth/overlay/etc/init.d/S99photobooth b/board/winf-photobooth/overlay/etc/init.d/S99photobooth index affd046b..ecdda127 100755 --- a/board/winf-photobooth/overlay/etc/init.d/S99photobooth +++ b/board/winf-photobooth/overlay/etc/init.d/S99photobooth @@ -2,13 +2,32 @@ export SLINT_BACKEND=linuxkms-software + + + + case "$1" in start) + mode=$( + SLINT_DRM_MODE=list /usr/bin/winf-photobooth-app 2>&1 | + awk '$1 == "Index:" && $4 == 1280 && $6 == 1024 { + print $2 + exit + }' + ) + + if [ -z "$mode" ]; then + echo "No 1280x1024 display mode available" >&2 + exit 1 + fi + + export SLINT_DRM_MODE="$mode" start-stop-daemon -S -b -m \ -p /run/winf-photobooth-app.pid \ -x /usr/bin/winf-photobooth-app \ - >> /var/log/winf-photobooth-app.log 2>&1 + -O /var/log/winf-photobooth-app.log ;; + stop) start-stop-daemon -K -p /run/winf-photobooth-app.pid ;;