aboutsummaryrefslogtreecommitdiffci
path: root/root/tmp/SayaAndy
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
authorGravatar Saya Andy <saya.andy@posteo.com> 2026-08-19 18:42:54 +0700
committerGravatar Saya Andy <saya.andy@posteo.com> 2026-09-27 23:44:47 +0700
commitc209196f2af66b0117e1d2705fb9b83ce1c7e1d4 (patch)
treeeccd89e1be75514603e25ff1ee52c38b9ce3e2fe /root/tmp/SayaAndy
parent63fc5e93845a31f7c4981a89d090cca87e59c33b (diff)
downloadkiwi-descriptions-c209196f2af66b0117e1d2705fb9b83ce1c7e1d4.tar.gz
kiwi-descriptions-c209196f2af66b0117e1d2705fb9b83ce1c7e1d4.zip
feat: rewrite wireupcameras service as optional to avoid system hanging
docs: add image of fedora running, update info of where to copy qcvss8380_pa.mbn
Diffstat (limited to 'root/tmp/SayaAndy')
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/wireupcameras.service3
-rw-r--r--root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/bin/wireupcameras.sh14
2 files changed, 14 insertions, 3 deletions
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/wireupcameras.service b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/wireupcameras.service
index 538d79a..31eff6c 100644
--- a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/wireupcameras.service
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/etc/systemd/system/wireupcameras.service
@@ -1,8 +1,5 @@
[Unit]
Description=Wire up Surface Pro rear camera (media-ctl pipeline)
-After=dev-media0.device
-Wants=dev-media0.device
-DefaultDependencies=no
[Service]
Type=oneshot
diff --git a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/bin/wireupcameras.sh b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/bin/wireupcameras.sh
index 2e8f2d3..833a422 100644
--- a/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/bin/wireupcameras.sh
+++ b/root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/bin/wireupcameras.sh
@@ -1,6 +1,20 @@
#!/bin/bash
set -e
+# Wait for /dev/media0 to appear (MSM VFE driver may need firmware to probe)
+# Timeout after 10 seconds to avoid infinite hangs on systems without camera hardware
+MAX_WAIT=10
+WAIT_COUNT=0
+while [ ! -e /dev/media0 ] && [ $WAIT_COUNT -lt $MAX_WAIT ]; do
+ sleep 1
+ WAIT_COUNT=$((WAIT_COUNT + 1))
+done
+
+if [ ! -e /dev/media0 ]; then
+ echo "wireupcameras: /dev/media0 not found after ${MAX_WAIT}s, skipping" >&2
+ exit 0
+fi
+
SENSOR="ov13858 1-0010"
# Tell each pad in the path what format to expect