Hi,
I tried to use v4l2ctrl and v4l2ucp to set the brightness and contrast of the camera IMX307 (USB) but there is no change in camera preview or capture.
My command:
1. Get control list
v4l2-ctl --device=/dev/video1 --list-ctrls
brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=50
contrast 0x00980901 (int) : min=0 max=100 step=1 default=50 value=50
saturation 0x00980902 (int) : min=0 max=100 step=1 default=50 value=50
hue 0x00980903 (int) : min=0 max=100 step=1 default=50 value=50
error 5 getting ctrl White Balance Temperature, Auto
2. Change the brightness value:
v4l2-ctl --device=/dev/video1 --set-ctrl=brightness=80
3. Confirm value is set:
v4l2-ctl --device=/dev/video1 --list-ctrls
brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=80
Noted: I got this error when list the control:
v4l2-ctl --device=/dev/video1 --list-ctrls
brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=80
contrast 0x00980901 (int) : min=0 max=100 step=1 default=50 value=50
saturation 0x00980902 (int) : min=0 max=100 step=1 default=50 value=50
hue 0x00980903 (int) : min=0 max=100 step=1 default=50 value=50
error 5 getting ctrl White Balance Temperature, Auto
How to set the brightness and other parameters of the camera properly?