diff options
| author | 2026-08-19 18:42:54 +0700 | |
|---|---|---|
| committer | 2026-08-19 18:42:54 +0700 | |
| commit | 84311874fa8b83a97043bebb8b69861836905e69 (patch) | |
| tree | 5af0542231e683cc8781bb90489b1c8327682b09 /root/tmp/SayaAndy | |
| parent | ce7e0485e805d14a566a933788cd3fddac9cb733 (diff) | |
| download | kiwi-descriptions-rawhide.tar.gz kiwi-descriptions-rawhide.zip | |
feat: rewrite wireupcameras service as optional to avoid system hangingrawhide
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.service | 3 | ||||
| -rw-r--r-- | root/tmp/SayaAndy/surface-pro-12-inch-linux-fedora/usr/local/bin/wireupcameras.sh | 14 |
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 |