90
submitted 5 months ago by markstos@lemmy.world to c/linux@lemmy.ml

I have a Logitech C920 and am looking to upgrade. Something suitable for streaming.

Some annoyances with the Logitech: sometimes autofocus fails and poor reproduction of blacks. Ex: Lack of detail when a black cat is on screen.

I already have a nice mic-- the webcam doesn't need one.

you are viewing a single comment's thread
view the rest of the comments
[-] markstos@lemmy.world 15 points 5 months ago

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.

❯ cat /etc/udev/rules.d/90-video4linux-webcam-config.rules
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"
❯ cat /etc/systemd/system/video4linux-webcam-config@.timer
# This file is managed by ansible-video4linux-webcam-config
[Unit]
Description=Periodically restart webcam config service

[Timer]
# Unit= defaults to service matching .timer name
OnActiveSec=30

[Install]
WantedBy=timers.target
❯ cat /etc/systemd/system/video4linux-webcam-config@.service
[Unit]
Description=Set webcam configs

[Service]
Type=oneshot
ExecStart=/bin/bash -c "/usr/local/bin/video4linux-webcam-config.sh %I"

[Install]
WantedBy=multi-user.target
❯ cat /usr/local/bin/video4linux-webcam-config.sh
#!/bin/bash

if [[ $# -ne 1 ]]; then
  echo "Expected minor device number as sole argument" 1>&2
  exit 1
fi

   v4l2-ctl -d $1 --set-ctrl focus_automatic_continuous=0
  v4l2-ctl -d $1 --set-ctrl focus_absolute=0
[-] TCB13@lemmy.world 6 points 5 months ago

I'm using a C920 on Debian and I don't have focus issues. I remember that once it was permanently stuck out of focus but unplugging and plugging again fixed the issue. Never had any other issues in years.

this post was submitted on 20 Jun 2024
90 points (98.9% liked)

Linux

48325 readers
653 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS