Skip to content

Instantly share code, notes, and snippets.

@ndoo
Last active February 6, 2021 15:11
Show Gist options
  • Save ndoo/d34762aabb060a1f40848450dab7c1e7 to your computer and use it in GitHub Desktop.
Save ndoo/d34762aabb060a1f40848450dab7c1e7 to your computer and use it in GitHub Desktop.
udev Rules for Logitech C920 Fixed Focus on Prusa MK3S Z-axis Mount
SUBSYSTEM=="video4linux", KERNEL=="video[0-9]*", ATTRS{product}=="HD Pro Webcam C920", RUN+="/usr/bin/v4l2-ctl -d $devnode --set-ctrl=exposure_auto_priority=0"
SUBSYSTEM=="video4linux", KERNEL=="video[0-9]*", ATTRS{product}=="HD Pro Webcam C920", RUN+="/usr/bin/v4l2-ctl -d $devnode --set-ctrl=focus_auto=0"
SUBSYSTEM=="video4linux", KERNEL=="video[0-9]*", ATTRS{product}=="HD Pro Webcam C920", RUN+="/usr/bin/v4l2-ctl -d $devnode --set-ctrl=focus_absolute=45"
SUBSYSTEM=="video4linux", KERNEL=="video[0-9]*", ATTRS{product}=="HD Pro Webcam C920", RUN+="/usr/bin/v4l2-ctl -d $devnode --set-ctrl=sharpness=160"
SUBSYSTEM=="video4linux", KERNEL=="video[0-9]*", ATTRS{product}=="HD Pro Webcam C920", RUN+="/usr/bin/v4l2-ctl -d $devnode --set-ctrl=saturation=176"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment