setup-root.sh
Files / xps-14-webcam / setup-root.sh
Files in xps-14-webcam/
Directoryxps-14-webcam/
- 51-camera-relay.conf 463 bytes
- camera-relay.desktop 217 bytes
- camera-relay.service 869 bytes
- camera-relay.sh 661 bytes
- install.sh 2.4 KB
- LICENSE 1.0 KB
- ov08x40.yaml 628 bytes
- setup-root.sh 1.6 KB
From The webcam on a Dell XPS 14 (Panther Lake) under Kubuntu 26.04. MIT licence: LICENSE.
#!/usr/bin/env bash# Root part of the built-in camera setup on a Dell XPS 14 DA14260 (ov08x40 on IPU7):# CVS driver, libcamera + PipeWire plugin, GStreamer tools. Removes the old v4l2loopback# /dev/video60 setup (used until 2026-11-04 11:40 AEST).# Safe to re-run. Usage: bash setup-root.sh (asks for the sudo password)set -uo pipefailok() { echo "๐ข $*"; }fail() { echo "๐ด $*"; echo; echo "๐ด FAILED"; exit 1; }
[ "$(id -u)" -eq 0 ] || exec sudo bash "$0" "$@"
echo "๐ฑ Installing packages"pkgs=( linux-modules-vision-generic # intel_cvs: hands the sensor over from the CVS chip (INTC10E1) libcamera-tools libspa-0.2-libcamera gstreamer1.0-libcamera gstreamer1.0-tools gstreamer1.0-pipewire # gst-launch-1.0 and pipewiresink for camera-relay.service)apt-get install -y "${pkgs[@]}" >/tmp/camera-setup-apt.log 2>&1 \ || fail "apt install failed, see /tmp/camera-setup-apt.log"ok "Installed: ${pkgs[*]}"
echo "๐ฑ Removing the old v4l2loopback /dev/video60 setup"rm -f /etc/modprobe.d/v4l2loopback-camera-relay.conf /etc/modules-load.d/v4l2loopback-camera-relay.confif [ -d /sys/module/v4l2loopback ]; then modprobe -r v4l2loopback || echo "๐ v4l2loopback in use, it goes at the next reboot"fiok "No v4l2loopback config left"
command -v gst-launch-1.0 >/dev/null || fail "gst-launch-1.0 missing"gst-inspect-1.0 libcamerasrc >/dev/null 2>&1 || fail "GStreamer libcamerasrc missing"gst-inspect-1.0 pipewiresink >/dev/null 2>&1 || fail "GStreamer pipewiresink missing"ok "GStreamer elements present"
[ -d /sys/module/intel_cvs ] && ok "intel_cvs loaded" || echo "๐ intel_cvs not loaded yet: reboot once"
echoecho "๐ข SUCCESS"Text, photos and drawings: CC BY 4.0. Code: MIT. Share and adapt them, crediting HomeLab Series (blog.jacq.cc). Licence and terms of use ยทPrivacy policy (no cookies, no tracking)