From 3aa51a5c01e7832605705cb71dc9a14f315c6e79 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Thu, 17 Sep 2026 15:05:35 +0100 Subject: Prefer the dock camera and use the camera portal --- etc/systemd/system/integrated-camera-off@.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 etc/systemd/system/integrated-camera-off@.service (limited to 'etc/systemd/system') diff --git a/etc/systemd/system/integrated-camera-off@.service b/etc/systemd/system/integrated-camera-off@.service new file mode 100644 index 0000000..6d7eaf8 --- /dev/null +++ b/etc/systemd/system/integrated-camera-off@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Disable the integrated camera while the HP camera is connected +BindsTo=%i.device +After=%i.device + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecCondition=/usr/bin/grep -qx 13d3 /sys/bus/usb/devices/1-8/idVendor +ExecCondition=/usr/bin/grep -qx 56a6 /sys/bus/usb/devices/1-8/idProduct +ExecStart=/usr/bin/sh -c 'printf 0 > /sys/bus/usb/devices/1-8/authorized' +ExecStop=-/usr/bin/sh -c 'printf 1 > /sys/bus/usb/devices/1-8/authorized' -- cgit v1.3.1