Page 1 of 1

Adjusting C920 Brightness and Zoom in Portsdown?

Posted: Wed Jun 12, 2024 8:44 pm
by G1INU
Hi All,

I need to adjust the input from a C920 Webcam as the brightness and zoom are way off?

Could one of you guys who is far far more understanding of linux than i will ever be help

I am running Portsdown 4 on a pi4 with a 7in touch screen and i have a C920 USB webcam attached. When it boots up I find the brightness and zoom on the webcam need adjusting. If I go into the terminal and ssh into pi4 I can set brightness and zoom with the appropriate commands. Namely v4l2-ctl -d /dev/video0 --set-ctrl=brightness=80 and likewise with zoom_absolute.

I have found that if i set the zoom and brightness by entering the respective lines in the /etc/rc.local file, only the zoom_absolute command is staying as I set it. I am guessing there must be a brightness setting in Portsdown that sets brightness back to default.

So my question is; Is there another file that will run at the end of the boot process where I can enter the brightness and zoom commands? Alternatively how do I run a .sh file containing the appropriate commands at the end of the boot process?