m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/logitech
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2024-02-02 14:22:40 +0100
committerMarcin Chrzanowski <m@m-chrzan.xyz>2024-02-02 14:22:40 +0100
commitb37a40d5dfde41bd7a71cdc7184129dd0f89472f (patch)
tree3b9091f1d74dd984aea1c55c67720131a092448b /logitech
parentec2de162f255e0a09ebbc533b70d14b7cdde8043 (diff)
Update for new control namesHEADmaster
Diffstat (limited to 'logitech')
-rwxr-xr-xlogitech12
1 files changed, 7 insertions, 5 deletions
diff --git a/logitech b/logitech
index 66bf61a..2ac35bb 100755
--- a/logitech
+++ b/logitech
@@ -6,6 +6,9 @@
# there's only one webcam connected.
# NOTE: when one of the parameters is set, auto-setting it by the webcam is
# disabled.
+#
+# Getting device info:
+# v4l2-ctl -d <device ID> --all
device=
exposure=
@@ -30,9 +33,8 @@ if [ -z "$device" ]; then
fi
if [ -n "$exposure" ]; then
- v4l2-ctl -d "$device" --set-ctrl exposure_auto=1
- v4l2-ctl -d "$device" --set-ctrl exposure_auto_priority=0
- v4l2-ctl -d "$device" --set-ctrl exposure_absolute="$exposure"
+ v4l2-ctl -d "$device" --set-ctrl auto_exposure=1
+ v4l2-ctl -d "$device" --set-ctrl exposure_time_absolute="$exposure"
fi
if [ -n "$gain" ]; then
@@ -40,11 +42,11 @@ if [ -n "$gain" ]; then
fi
if [ -n "$temperature" ]; then
- v4l2-ctl -d "$device" --set-ctrl white_balance_temperature_auto=0
+ v4l2-ctl -d "$device" --set-ctrl white_balance_automatic=0
v4l2-ctl -d "$device" --set-ctrl white_balance_temperature="$temperature"
fi
if [ -n "$focus" ]; then
- v4l2-ctl -d "$device" --set-ctrl focus_auto=0
+ v4l2-ctl -d "$device" --set-ctrl focus_automatic_absolute=0
v4l2-ctl -d "$device" --set-ctrl focus_absolute="$focus"
fi