2 hours ago · Tech · hide · 0 comments

Last year I talked about my faithful Logitech C930e webcam, and at the end of the article I mentioned that I have to manually disable the autofocus, and that sadly that setting is gone at every reboot, and even every time I unplug the webcam; my question then was, can I automate this somehow? And the answer is yes, of course you can. The first thing I’ve done is to change the approach, and instead of manually typing this command: $ v4l2-ctl --device=/dev/video4 --set-ctrl focus_automatic_continuous=0 … I took a different approach, using the v4l2ctrl command instead: $ sudo dnf install v4l2ucp $ v4l2ctrl -d /dev/video4 -s camera-settings.txt This saves all settings of the camera in a single text file, and the cool thing is that you can use the -l argument to load them back, and it gives you control over many different parameters of the webcam in one place and you can load them in one shot: $ v4l2ctrl -d /dev/video4 -l camera-settings.txt Loading on Startup Now I need to wrap this…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.