There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

markstos OP ,

C920 is good enough for meetings. I solved the focus problem using the traditional Linux method of writing of udev rule which launches a timer when it’s plugged in, which periodically launches a systemd service, which runs a bash script to make sure it self-corrects at least every 5 minutes.


<span style="color:#323232;">❯ cat /etc/udev/rules.d/90-video4linux-webcam-config.rules
</span><span style="color:#323232;">KERNEL=="video[0-9]*", SUBSYSTEM=="video4linux", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="0892", TAG+="systemd", RUN{program}="/bin/systemctl start video4linux-webcam-config@$env{MINOR}.timer" ENV{SYSTEMD_WANTS}="video4linux-webcam-config@$env{MINOR}.timer"
</span>

<span style="color:#323232;">❯ cat /etc/systemd/system/[email protected]
</span><span style="color:#323232;"># This file is managed by ansible-video4linux-webcam-config
</span><span style="color:#323232;">[Unit]
</span><span style="color:#323232;">Description=Periodically restart webcam config service
</span><span style="color:#323232;">
</span><span style="color:#323232;">[Timer]
</span><span style="color:#323232;"># Unit= defaults to service matching .timer name
</span><span style="color:#323232;">OnActiveSec=30
</span><span style="color:#323232;">
</span><span style="color:#323232;">[Install]
</span><span style="color:#323232;">WantedBy=timers.target
</span>

<span style="color:#323232;">❯ cat /etc/systemd/system/[email protected]
</span><span style="color:#323232;">[Unit]
</span><span style="color:#323232;">Description=Set webcam configs
</span><span style="color:#323232;">
</span><span style="color:#323232;">[Service]
</span><span style="color:#323232;">Type=oneshot
</span><span style="color:#323232;">ExecStart=/bin/bash -c "/usr/local/bin/video4linux-webcam-config.sh %I"
</span><span style="color:#323232;">
</span><span style="color:#323232;">[Install]
</span><span style="color:#323232;">WantedBy=multi-user.target
</span>

<span style="color:#323232;">❯ cat /usr/local/bin/video4linux-webcam-config.sh
</span><span style="color:#323232;">#!/bin/bash
</span><span style="color:#323232;">
</span><span style="color:#323232;">if [[ $# -ne 1 ]]; then
</span><span style="color:#323232;">  echo "Expected minor device number as sole argument" 1>&2
</span><span style="color:#323232;">  exit 1
</span><span style="color:#323232;">fi
</span><span style="color:#323232;">
</span><span style="color:#323232;">   v4l2-ctl -d $1 --set-ctrl focus_automatic_continuous=0
</span><span style="color:#323232;">  v4l2-ctl -d $1 --set-ctrl focus_absolute=0
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines