Skip to content

Commit

Permalink
fix: the control parameter focus_auto is now focus_automatic_continuous
Browse files Browse the repository at this point in the history
The parameter `focus_auto` is no longer working. When we run:

  v4l2-ctl --device /dev/web-c920 --set-ctrl=focus_auto=0

We get:

  unknown control 'focus_auto'

It seems that the parameter is now named `focus_automatic_continuous`.

See mainsail-crew/crowsnest#96
  • Loading branch information
potyl committed Jul 10, 2024
1 parent 4decfe8 commit f412eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fix-Logitech-HD-Pro-Webcam-C920.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ fi
webcam_name="$(v4l2-ctl --device "$video_device" --info | grep -E '^\s+Card type\s+:' | sed -E 's/^.*?:\s+//')"
echo "Found video device: $video_device for $webcam_name"

v4l2-ctl --device "$video_device" --set-ctrl=focus_auto=0
v4l2-ctl --device "$video_device" --set-ctrl=focus_automatic_continuous=0

exit 0

0 comments on commit f412eeb

Please sign in to comment.