Comments (28)
A possible solution for this problem is adding a switch for disabling controls from the host computer.
I will add this switch to the uvc-gadget.
from showmewebcam.
@jfurcean
Commit to enable more control setting #65 was merged. You will see it in the next release.
Or you can test a temporary image now : https://github.com/showmewebcam/showmewebcam/runs/1555578113 (click on artifacts
near the top-right corner)
from showmewebcam.
I can't seem to reproduce this.
# v4l2-ctl -l
[...]
brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=55 flags=slider
[...]
auto_exposure_bias 0x009a0913 (intmenu): min=0 max=24 default=12 value=15
Could you paste your full camera.txt
file, as well as the output of journalctl
?
from showmewebcam.
# cat /boot/camera.txt
#Tweak the auto exposure bias
auto_exposure_bias=15
#Tweak the brightness
brightness=55
below the output from journalctl
(last lines which fit on my screen, I have no clue how to display the complete output)
Feb 07 15:50:57 piwebcam systemd[1]: Started Serial Getty on ttyAMA0.
Feb 07 15:50:58 piwebcam ifup[103]: ifup: can't open '/var/run/ifstate.new': No such file or directory
Feb 07 15:50:58 piwebcam systemd[1]: network.service: Main process exited, code=exited, status=1/FAILURE
Feb 07 15:50:58 piwebcam systemd[1]: network.service: Failed with result 'exit-code'.
Feb 07 15:50:58 piwebcam systemd[1]: Failed to start Network Connectivity.
Feb 07 15:50:58 piwebcam systemd[1]: Reached target Network.
Feb 07 15:50:58 piwebcam systemd[1]: Found device /dev/ttyGS0.
Feb 07 15:50:58 piwebcam systemd[1]: Started Serial Getty on ttyGS0.
Feb 07 15:50:58 piwebcam systemd[1]: Reached target Login Prompts.
Feb 07 15:50:58 piwebcam systemd[1]: Reached target Multi-User System.
Feb 07 15:50:58 piwebcam systemd[1]: Starting Update UTMP about System Runlevel Changes...
Feb 07 15:50:58 piwebcam systemd[1]: systemd-update-utmp-runlevel.service: Succeeded.
Feb 07 15:50:58 piwebcam systemd[1]: Started Update UTMP about System Runlevel Changes.
Feb 07 15:50:58 piwebcam systemd[1]: Startup finished in 2.180s (kernel) + 6.930s (userspace) = 9.110s.
Feb 07 15:50:58 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_bind()
Feb 07 15:50:58 piwebcam kernel: dwc2 20980000.usb: bound driver configfs-gadget
Feb 07 15:50:59 piwebcam piwebcam[170]: Found camera.txt, applying settings
Feb 07 15:50:59 piwebcam piwebcam[182]: Setting auto_exposure_bias -> 15
Feb 07 15:50:59 piwebcam piwebcam[190]: Setting brightness -> 55
Feb 07 15:50:59 piwebcam kernel: dwc2 20980000.usb: new device is high-speed
Feb 07 15:50:59 piwebcam kernel: dwc2 20980000.usb: new address 18
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: high-speed config #2: c
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(0, 0)
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: reset UVC Control
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: Initial path: /sys/kernel/config/usb_gadget
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 10, resolution: 1600x1200, bitrate: [153600000, 307200000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 9, resolution: 1600x900, bitrate: [115200000, 230400000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 8, resolution: 1536x864, bitrate: [106168320, 212336640]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 7, resolution: 1920x1080, bitrate: [165888000, 331776000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 6, resolution: 1280x960, bitrate: [98304000, 196608000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 5, resolution: 1280x720, bitrate: [73728000, 147456000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 4, resolution: 1024x768, bitrate: [62914560, 125829120]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 3, resolution: 800x600, bitrate: [38400000, 76800000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 2, resolution: 640x480, bitrate: [24576000, 49152000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 1, resolution: 640x360, bitrate: [18432000, 36864000]
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: Number of buffers requested: 2
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: Video format: V4L2_PIX_FMT_MJPEG
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: Show FPS: DISABLED
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: IO method requested: USER_PTR
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: UVC device name: /dev/video1
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: V4L2 device name: /dev/video0
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_UVC: Opening /dev/video1 device
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_UVC: Device is 20980000.usb on bus gadget
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_V4L2: Opening /dev/video0 device
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_V4L2: Device is mmal service 16.1 on bus platform:bcm2835-v4l2
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_V4L2: Getting highest frame size: YUYV 4056x3040
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_V4L2: Getting highest frame size: MJPG 4056x3040
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Brightness (V4L2_CID_BRIGHTNESS = UVC_PU_BRIGHTNESS_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 0, max: 100, step: 1, default: 50, value: 55
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 100, step: 1, default: 50, value: 55
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Contrast (V4L2_CID_CONTRAST = UVC_PU_CONTRAST_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: -100, max: 100, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 200, step: 1, default: 100, value: 100
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Saturation (V4L2_CID_SATURATION = UVC_PU_SATURATION_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: -100, max: 100, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 200, step: 1, default: 100, value: 100
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Red Balance (V4L2_CID_RED_BALANCE + V4L2_CID_BLUE_BALANCE = UVC_PU_WHITE_BALANCE_COMPONENT_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 1, max: 7999, step: 1, default: 1000, value: 1000
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 7998, step: 1, default: 999, value: 999
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Power Line Frequency (V4L2_CID_POWER_LINE_FREQUENCY = UVC_PU_POWER_LINE_FREQUENCY_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 0, max: 3, step: 1, default: 1, value: 1
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 3, step: 1, default: 1, value: 1
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Sharpness (V4L2_CID_SHARPNESS = UVC_PU_SHARPNESS_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: -100, max: 100, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 200, step: 1, default: 100, value: 100
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Auto Exposure (V4L2_CID_EXPOSURE_AUTO = UVC_CT_AE_MODE_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 0, max: 3, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 3, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Exposure Time, Absolute (V4L2_CID_EXPOSURE_ABSOLUTE = UVC_CT_EXPOSURE_TIME_ABSOLUTE_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 1, max: 10000, step: 1, default: 1000, value: 1000
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 9999, step: 1, default: 999, value: 999
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Exposure, Dynamic Framerate (V4L2_CID_EXPOSURE_AUTO_PRIORITY = UVC_CT_AE_PRIORITY_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 0, max: 1, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 1, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: request uvc_fill_streaming_control: 0, 0
Feb 07 15:50:59 piwebcam piwebcam[192]: response: 1, 1
Feb 07 15:50:59 piwebcam piwebcam[192]: FRAME FORMAT: format: 1, frame: 1, resolution: 640x360, bitrate: [18432000, 36864000]
Feb 07 15:50:59 piwebcam piwebcam[192]: request uvc_fill_streaming_control: 0, 0
Feb 07 15:50:59 piwebcam piwebcam[192]: response: 1, 1
Feb 07 15:50:59 piwebcam piwebcam[192]: FRAME FORMAT: format: 1, frame: 1, resolution: 640x360, bitrate: [18432000, 36864000]
Feb 07 15:50:59 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:50:59 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_MIN - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:50:59 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_MAX - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:50:59 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_RES - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:11 piwebcam kernel: random: crng init done
Feb 07 15:51:11 piwebcam kernel: random: 7 urandom warning(s) missed due to ratelimiting
Feb 07 15:52:05 piwebcam login[133]: root login on 'ttyGS0'
I see, that the brightness is being set, but the output stays the same at 50.
v4l2-ctl -l
User Controls
brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=50 flags=slider
contrast 0x00980901 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
saturation 0x00980902 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
red_balance 0x0098090e (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider
blue_balance 0x0098090f (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider
horizontal_flip 0x00980914 (bool) : default=0 value=0
vertical_flip 0x00980915 (bool) : default=0 value=0
power_line_frequency 0x00980918 (menu) : min=0 max=3 default=1 value=1
sharpness 0x0098091b (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
color_effects 0x0098091f (menu) : min=0 max=15 default=0 value=0
rotate 0x00980922 (int) : min=0 max=360 step=90 default=0 value=0 flags=modify-layout
color_effects_cbcr 0x0098092a (int) : min=0 max=65535 step=1 default=32896 value=32896
Codec Controls
video_bitrate_mode 0x009909ce (menu) : min=0 max=1 default=0 value=0 flags=update
video_bitrate 0x009909cf (int) : min=25000 max=25000000 step=25000 default=10000000 value=25000000
repeat_sequence_header 0x009909e2 (bool) : default=0 value=0
h264_i_frame_period 0x00990a66 (int) : min=0 max=2147483647 step=1 default=60 value=60
h264_level 0x00990a67 (menu) : min=0 max=11 default=11 value=11
h264_profile 0x00990a6b (menu) : min=0 max=4 default=4 value=4
Camera Controls
auto_exposure 0x009a0901 (menu) : min=0 max=3 default=0 value=0
exposure_time_absolute 0x009a0902 (int) : min=1 max=10000 step=1 default=1000 value=1000
exposure_dynamic_framerate 0x009a0903 (bool) : default=0 value=0
auto_exposure_bias 0x009a0913 (intmenu): min=0 max=24 default=12 value=15
white_balance_auto_preset 0x009a0914 (menu) : min=0 max=10 default=1 value=1
image_stabilization 0x009a0916 (bool) : default=0 value=0
iso_sensitivity 0x009a0917 (intmenu): min=0 max=4 default=0 value=0
iso_sensitivity_auto 0x009a0918 (menu) : min=0 max=1 default=1 value=1
exposure_metering_mode 0x009a0919 (menu) : min=0 max=2 default=0 value=0
scene_mode 0x009a091a (menu) : min=0 max=13 default=0 value=0
JPEG Compression Controls
compression_quality 0x009d0903 (int) : min=1 max=100 step=1 default=30 value=30
from showmewebcam.
Hmm...
Feb 07 15:50:59 piwebcam piwebcam[182]: Setting auto_exposure_bias -> 15
Feb 07 15:50:59 piwebcam piwebcam[190]: Setting brightness -> 55
The settings are applied correctly. What happens if you issue
v4l2-ctl -c brightness=55
manually?
from showmewebcam.
from showmewebcam.
Hmm...
Feb 07 15:50:59 piwebcam piwebcam[182]: Setting auto_exposure_bias -> 15 Feb 07 15:50:59 piwebcam piwebcam[190]: Setting brightness -> 55
The settings are applied correctly. What happens if you issue
v4l2-ctl -c brightness=55
manually?
Setting it manually works until the next reboot.
Your webcam at your service!
piwebcam login: root
Password:
# v4l2-ctl -l
User Controls
brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=50 flags=slider
contrast 0x00980901 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
saturation 0x00980902 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
red_balance 0x0098090e (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider
blue_balance 0x0098090f (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider
horizontal_flip 0x00980914 (bool) : default=0 value=0
vertical_flip 0x00980915 (bool) : default=0 value=0
power_line_frequency 0x00980918 (menu) : min=0 max=3 default=1 value=1
sharpness 0x0098091b (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
color_effects 0x0098091f (menu) : min=0 max=15 default=0 value=0
rotate 0x00980922 (int) : min=0 max=360 step=90 default=0 value=0 flags=modify-layout
color_effects_cbcr 0x0098092a (int) : min=0 max=65535 step=1 default=32896 value=32896
Codec Controls
video_bitrate_mode 0x009909ce (menu) : min=0 max=1 default=0 value=0 flags=update
video_bitrate 0x009909cf (int) : min=25000 max=25000000 step=25000 default=10000000 value=25000000
repeat_sequence_header 0x009909e2 (bool) : default=0 value=0
h264_i_frame_period 0x00990a66 (int) : min=0 max=2147483647 step=1 default=60 value=60
h264_level 0x00990a67 (menu) : min=0 max=11 default=11 value=11
h264_profile 0x00990a6b (menu) : min=0 max=4 default=4 value=4
Camera Controls
auto_exposure 0x009a0901 (menu) : min=0 max=3 default=0 value=0
exposure_time_absolute 0x009a0902 (int) : min=1 max=10000 step=1 default=1000 value=1000
exposure_dynamic_framerate 0x009a0903 (bool) : default=0 value=0
auto_exposure_bias 0x009a0913 (intmenu): min=0 max=24 default=12 value=15
white_balance_auto_preset 0x009a0914 (menu) : min=0 max=10 default=1 value=1
image_stabilization 0x009a0916 (bool) : default=0 value=0
iso_sensitivity 0x009a0917 (intmenu): min=0 max=4 default=0 value=0
iso_sensitivity_auto 0x009a0918 (menu) : min=0 max=1 default=1 value=1
exposure_metering_mode 0x009a0919 (menu) : min=0 max=2 default=0 value=0
scene_mode 0x009a091a (menu) : min=0 max=13 default=0 value=0
JPEG Compression Controls
compression_quality 0x009d0903 (int) : min=1 max=100 step=1 default=30 value=30
# v4l2-ctl -c brightness=55
# v4l2-ctl -l
User Controls
brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=55 flags=slider
contrast 0x00980901 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
saturation 0x00980902 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
red_balance 0x0098090e (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider
blue_balance 0x0098090f (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider
horizontal_flip 0x00980914 (bool) : default=0 value=0
vertical_flip 0x00980915 (bool) : default=0 value=0
power_line_frequency 0x00980918 (menu) : min=0 max=3 default=1 value=1
sharpness 0x0098091b (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
color_effects 0x0098091f (menu) : min=0 max=15 default=0 value=0
rotate 0x00980922 (int) : min=0 max=360 step=90 default=0 value=0 flags=modify-layout
color_effects_cbcr 0x0098092a (int) : min=0 max=65535 step=1 default=32896 value=32896
Codec Controls
video_bitrate_mode 0x009909ce (menu) : min=0 max=1 default=0 value=0 flags=update
video_bitrate 0x009909cf (int) : min=25000 max=25000000 step=25000 default=10000000 value=25000000
repeat_sequence_header 0x009909e2 (bool) : default=0 value=0
h264_i_frame_period 0x00990a66 (int) : min=0 max=2147483647 step=1 default=60 value=60
h264_level 0x00990a67 (menu) : min=0 max=11 default=11 value=11
h264_profile 0x00990a6b (menu) : min=0 max=4 default=4 value=4
Camera Controls
auto_exposure 0x009a0901 (menu) : min=0 max=3 default=0 value=0
exposure_time_absolute 0x009a0902 (int) : min=1 max=10000 step=1 default=1000 value=1000
exposure_dynamic_framerate 0x009a0903 (bool) : default=0 value=0
auto_exposure_bias 0x009a0913 (intmenu): min=0 max=24 default=12 value=15
white_balance_auto_preset 0x009a0914 (menu) : min=0 max=10 default=1 value=1
image_stabilization 0x009a0916 (bool) : default=0 value=0
iso_sensitivity 0x009a0917 (intmenu): min=0 max=4 default=0 value=0
iso_sensitivity_auto 0x009a0918 (menu) : min=0 max=1 default=1 value=1
exposure_metering_mode 0x009a0919 (menu) : min=0 max=2 default=0 value=0
scene_mode 0x009a091a (menu) : min=0 max=13 default=0 value=0
JPEG Compression Controls
compression_quality 0x009d0903 (int) : min=1 max=100 step=1 default=30 value=30
#
from showmewebcam.
Could you try setting a value like 90 to see if is applied by uvc-gadget? Seems like it at least, based on the output:
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Brightness (V4L2_CID_BRIGHTNESS = UVC_PU_BRIGHTNESS_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 0, max: 100, step: 1, default: 50, value: 55
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 100, step: 1, default: 50, value: 55
from showmewebcam.
setting the value for brightness to 90 in the camera.txt file
has no effect, but I do see the different output from journalctl
:
Feb 07 15:50:59 piwebcam kernel: dwc2 20980000.usb: bound driver configfs-gadget
Feb 07 15:50:59 piwebcam piwebcam[170]: Found camera.txt, applying settings
Feb 07 15:50:59 piwebcam piwebcam[182]: Setting brightness -> 90
Feb 07 15:50:59 piwebcam piwebcam[190]: Setting auto_exposure_bias -> 15
Feb 07 15:50:59 piwebcam kernel: dwc2 20980000.usb: new device is high-speed
Feb 07 15:50:59 piwebcam kernel: dwc2 20980000.usb: new address 49
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: high-speed config #2: c
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(0, 0)
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: reset UVC Control
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:50:59 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: Initial path: /sys/kernel/config/usb_gadget
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 10, resolution: 1600x1200, bitrate: [153600000, 307200000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 9, resolution: 1600x900, bitrate: [115200000, 230400000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 8, resolution: 1536x864, bitrate: [106168320, 212336640]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 7, resolution: 1920x1080, bitrate: [165888000, 331776000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 6, resolution: 1280x960, bitrate: [98304000, 196608000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 5, resolution: 1280x720, bitrate: [73728000, 147456000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 4, resolution: 1024x768, bitrate: [62914560, 125829120]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 3, resolution: 800x600, bitrate: [38400000, 76800000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 2, resolution: 640x480, bitrate: [24576000, 49152000]
Feb 07 15:50:59 piwebcam piwebcam[192]: CONFIGFS: UVC: format: 1, frame: 1, resolution: 640x360, bitrate: [18432000, 36864000]
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: Number of buffers requested: 2
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: Video format: V4L2_PIX_FMT_MJPEG
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: Show FPS: DISABLED
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: IO method requested: USER_PTR
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: UVC device name: /dev/video1
Feb 07 15:50:59 piwebcam piwebcam[192]: SETTINGS: V4L2 device name: /dev/video0
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_UVC: Opening /dev/video1 device
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_UVC: Device is 20980000.usb on bus gadget
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_V4L2: Opening /dev/video0 device
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_V4L2: Device is mmal service 16.1 on bus platform:bcm2835-v4l2
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_V4L2: Getting highest frame size: YUYV 4056x3040
Feb 07 15:50:59 piwebcam piwebcam[192]: DEVICE_V4L2: Getting highest frame size: MJPG 4056x3040
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Brightness (V4L2_CID_BRIGHTNESS = UVC_PU_BRIGHTNESS_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 0, max: 100, step: 1, default: 50, value: 90
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 100, step: 1, default: 50, value: 90
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Contrast (V4L2_CID_CONTRAST = UVC_PU_CONTRAST_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: -100, max: 100, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 200, step: 1, default: 100, value: 100
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Saturation (V4L2_CID_SATURATION = UVC_PU_SATURATION_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: -100, max: 100, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 200, step: 1, default: 100, value: 100
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Red Balance (V4L2_CID_RED_BALANCE + V4L2_CID_BLUE_BALANCE = UVC_PU_WHITE_BALANCE_COMPONENT_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 1, max: 7999, step: 1, default: 1000, value: 1000
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 7998, step: 1, default: 999, value: 999
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Power Line Frequency (V4L2_CID_POWER_LINE_FREQUENCY = UVC_PU_POWER_LINE_FREQUENCY_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 0, max: 3, step: 1, default: 1, value: 1
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 3, step: 1, default: 1, value: 1
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Sharpness (V4L2_CID_SHARPNESS = UVC_PU_SHARPNESS_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: -100, max: 100, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 200, step: 1, default: 100, value: 100
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Auto Exposure (V4L2_CID_EXPOSURE_AUTO = UVC_CT_AE_MODE_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 0, max: 3, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 3, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Exposure Time, Absolute (V4L2_CID_EXPOSURE_ABSOLUTE = UVC_CT_EXPOSURE_TIME_ABSOLUTE_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 1, max: 10000, step: 1, default: 1000, value: 1000
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 9999, step: 1, default: 999, value: 999
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: Supported control Exposure, Dynamic Framerate (V4L2_CID_EXPOSURE_AUTO_PRIORITY = UVC_CT_AE_PRIORITY_CONTROL)
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: V4L2: min: 0, max: 1, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: V4L2: UVC: min: 0, max: 1, step: 1, default: 0, value: 0
Feb 07 15:50:59 piwebcam piwebcam[192]: request uvc_fill_streaming_control: 0, 0
Feb 07 15:50:59 piwebcam piwebcam[192]: response: 1, 1
Feb 07 15:50:59 piwebcam piwebcam[192]: FRAME FORMAT: format: 1, frame: 1, resolution: 640x360, bitrate: [18432000, 36864000]
Feb 07 15:50:59 piwebcam piwebcam[192]: request uvc_fill_streaming_control: 0, 0
Feb 07 15:50:59 piwebcam piwebcam[192]: response: 1, 1
Feb 07 15:50:59 piwebcam piwebcam[192]: FRAME FORMAT: format: 1, frame: 1, resolution: 640x360, bitrate: [18432000, 36864000]
Feb 07 15:50:59 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:50:59 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_MIN - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:50:59 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_MAX - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:50:59 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_RES - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:00 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:51:00 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 1)
Feb 07 15:51:00 piwebcam kernel: configfs-gadget gadget: uvc: reset UVC
Feb 07 15:51:00 piwebcam kernel: random: crng init done
Feb 07 15:51:00 piwebcam kernel: random: 7 urandom warning(s) missed due to ratelimiting
Feb 07 15:51:01 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:51:02 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:51:02 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 1)
Feb 07 15:51:02 piwebcam kernel: configfs-gadget gadget: uvc: reset UVC
Feb 07 15:51:03 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:51:04 piwebcam login[132]: root login on 'ttyGS0'
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_DEF - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - SET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: control CONTROL_UNDEFINED, length: 2
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: V4L2_CID_BRIGHTNESS changed value (V4L2: 50, UVC: 50)
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: INPUT_TERMINAL - GET_INFO - UVC_CT_AE_MODE_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: INPUT_TERMINAL - GET_MIN - UVC_CT_AE_MODE_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: INPUT_TERMINAL - GET_MAX - UVC_CT_AE_MODE_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: INPUT_TERMINAL - GET_RES - UVC_CT_AE_MODE_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: INPUT_TERMINAL - GET_DEF - UVC_CT_AE_MODE_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: INPUT_TERMINAL - GET_CUR - UVC_CT_AE_MODE_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_INFO - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: streaming request CS: PROBE, REQ: SET_CUR
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: control PROBE, length: 26
Feb 07 15:51:04 piwebcam piwebcam[192]: request uvc_events_process_data_control: 1, 7
Feb 07 15:51:04 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 0)
Feb 07 15:51:04 piwebcam kernel: configfs-gadget gadget: uvc: uvc_function_set_alt(1, 1)
Feb 07 15:51:04 piwebcam kernel: configfs-gadget gadget: uvc: reset UVC
Feb 07 15:51:04 piwebcam piwebcam[192]: format: min: 1, max: 1
Feb 07 15:51:04 piwebcam piwebcam[192]: frame: min: 1, max: 10
Feb 07 15:51:04 piwebcam piwebcam[192]: response: 1, 7
Feb 07 15:51:04 piwebcam piwebcam[192]: FRAME FORMAT: format: 1, frame: 7, resolution: 1920x1080, bitrate: [165888000, 331776000]
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: streaming request CS: PROBE, REQ: GET_CUR
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: streaming request CS: COMMIT, REQ: SET_CUR
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: control COMMIT, length: 26
Feb 07 15:51:04 piwebcam piwebcam[192]: request uvc_events_process_data_control: 1, 7
Feb 07 15:51:04 piwebcam piwebcam[192]: format: min: 1, max: 1
Feb 07 15:51:04 piwebcam piwebcam[192]: frame: min: 1, max: 10
Feb 07 15:51:04 piwebcam piwebcam[192]: response: 1, 7
Feb 07 15:51:04 piwebcam piwebcam[192]: FRAME FORMAT: format: 1, frame: 7, resolution: 1920x1080, bitrate: [165888000, 331776000]
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Getting current format: JPEG 1024x768
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Setting format to: MJPG 1920x1080
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Getting current format: MJPG 1920x1080
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Buffer 0 mapped at address 0xb6ba5000, length 2088960.
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Buffer 1 mapped at address 0xb69a7000, length 2088960.
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: 2 buffers allocated.
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_UVC: 2 buffers allocated.
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: STREAM ON success
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_UVC: STREAM ON success
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: STREAM OFF success
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_UVC: STREAM OFF success
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: streaming request CS: PROBE, REQ: SET_CUR
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: control PROBE, length: 26
Feb 07 15:51:04 piwebcam piwebcam[192]: request uvc_events_process_data_control: 1, 7
Feb 07 15:51:04 piwebcam piwebcam[192]: format: min: 1, max: 1
Feb 07 15:51:04 piwebcam piwebcam[192]: frame: min: 1, max: 10
Feb 07 15:51:04 piwebcam piwebcam[192]: response: 1, 7
Feb 07 15:51:04 piwebcam piwebcam[192]: FRAME FORMAT: format: 1, frame: 7, resolution: 1920x1080, bitrate: [165888000, 331776000]
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: streaming request CS: PROBE, REQ: GET_CUR
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: streaming request CS: COMMIT, REQ: SET_CUR
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: control COMMIT, length: 26
Feb 07 15:51:04 piwebcam piwebcam[192]: request uvc_events_process_data_control: 1, 7
Feb 07 15:51:04 piwebcam piwebcam[192]: format: min: 1, max: 1
Feb 07 15:51:04 piwebcam piwebcam[192]: frame: min: 1, max: 10
Feb 07 15:51:04 piwebcam piwebcam[192]: response: 1, 7
Feb 07 15:51:04 piwebcam piwebcam[192]: FRAME FORMAT: format: 1, frame: 7, resolution: 1920x1080, bitrate: [165888000, 331776000]
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Getting current format: MJPG 1920x1080
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Setting format to: MJPG 1920x1080
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Getting current format: MJPG 1920x1080
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Buffer 0 mapped at address 0xb6ba5000, length 2088960.
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: Buffer 1 mapped at address 0xb69a7000, length 2088960.
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: 2 buffers allocated.
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_UVC: 2 buffers allocated.
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: STREAM ON success
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_UVC: STREAM ON success
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: STREAM OFF success
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_UVC: STREAM OFF success
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: streaming request CS: PROBE, REQ: SET_CUR
from showmewebcam.
Interesting side note, the vales seems to be reset:
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_DEF - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - SET_CUR - UVC_PU_BRIGHTNESS_CONTROL
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: control CONTROL_UNDEFINED, length: 2
Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: V4L2_CID_BRIGHTNESS changed value (V4L2: 50, UVC: 50)
from showmewebcam.
Ok, this might seem to be related to https://github.com/peterbay/uvc-gadget
Would you mind reporting this bug there as well?
from showmewebcam.
Interesting side note, the vales seems to be reset:
Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_DEF - UVC_PU_BRIGHTNESS_CONTROL Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - GET_CUR - UVC_PU_BRIGHTNESS_CONTROL Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: PROCESSING_UNIT - SET_CUR - UVC_PU_BRIGHTNESS_CONTROL Feb 07 15:51:04 piwebcam piwebcam[192]: UVC: control CONTROL_UNDEFINED, length: 2 Feb 07 15:51:04 piwebcam piwebcam[192]: DEVICE_V4L2: V4L2_CID_BRIGHTNESS changed value (V4L2: 50, UVC: 50)
I doubt that your webcam application on the host side tried to change brightness value.
You can verify it by doing:
- wait til webcam boot.
- don't open any webcam application such as BBS, Zoom, Skype, etc on the host side (your computer).
- connect serial to Pi.
- verify brightness value:
v4l2-ctl -L | grep brightness
from showmewebcam.
answer is here - peterbay/uvc-gadget#11 (comment)
from showmewebcam.
if you see a message "DEVICE_V4L2: V4L2_CID_BRIGHTNESS changed value (V4L2: 50, UVC: 50)" in your log, then the host computer sent a request for brightness change
from showmewebcam.
I'm encountering the same problem. Other settings in the camera.txt are being honored, but the 'brightness' value is ignored. I have to set it manually using the serial interface each time I connect the webcam.
Host computer is running macOS Catalina.
from showmewebcam.
Wouldn't it be better to patch V4L/ucv to expose all settings to the host computer? Guess not everybody wants to log in to the serial interface
from showmewebcam.
Having the brightness setting persistent would really be amazing. I just want to say thank you to all the work you all have done to make this project as simple and plug-and-play as it is. It really does work reliably, boots quickly, and gets out of your way. While I was able to figure out how to use the serial interface to set this value, having to do it each time I connect my laptop to the webcam seems a bit of a chore. It's really cool to be able to adjust settings on the fly with over the serial interface, but I'd sacrifice that ability for a webcam that keeps my settings each time I connect it.
from showmewebcam.
having to do it each time I connect my laptop to the webcam seems a bit of a chore
Just put a camera.txt
file with your settings in /boot
:)
from showmewebcam.
Just put a
camera.txt
file with your settings in/boot
:)
That's the entire problem. I have added brightness=55
to the camera.txt
file on /boot
but it gets ignored. Other settings are correctly applied but the brightness
property doesn't work. I have to set it manually using the serial interface each time.
from showmewebcam.
I am not saying that we shouldn't fix this bug. But you can use auto_exposure_bias=20
as a workaround.
from showmewebcam.
Here's the difference I'm experiencing between using auto_exposure_bias=20
and brightness=55
I see a very slight bump in brightness when I set auto_exposure_bias=20
but setting brightness=55
really makes a difference.
from showmewebcam.
Just put a
camera.txt
file with your settings in/boot
:)That's the entire problem. I have added
brightness=55
to thecamera.txt
file on/boot
but it gets ignored. Other settings are correctly applied but thebrightness
property doesn't work. I have to set it manually using the serial interface each time.
Can't you change the brightness in your host-program? As i see, e.g. the Windows Camera App always initialize the cam with the last brightness i configured. So in the Camera App i change it to 55, in the boot/camera.txt it is 65 defined. If i open the app, the app changes the setting to 55. For a webcam i would want that the webcam does what the host commands and not what the webcam thinks it should do.
from showmewebcam.
@rossiniscarface I'm using macOS. I don't know of any OS-level way of adjusting a webcam's brightness setting and I haven't seen an app to control this setting. The OS very well might be sending a "set brightness to 50%" command, I just can't change it anywhere.
from showmewebcam.
hmmm osx it seems to doesn't have any control oob. I found some payed apps for camera-control but thats it. Very nice Apple.
So from this standpoint it would be very good to have an option to set things in the camera and don't listen to the host-os.
As a workaround you could write a little bash script which sends the brightness command to the showmewebcam.
from showmewebcam.
I use the Webcam Settings app on OSX - http://mactaris.blogspot.com. This lets you set the brightness to the Piwebcam. Unfortunately, it doesn't look like any of the other settings are exposed (contrast, saturation, etc) like they are for my Logitech c920.
from showmewebcam.
@jfurcean
Commit to enable more control setting #65 was merged. You will see it in the next release.
Or you can test a temporary image now : https://github.com/showmewebcam/showmewebcam/runs/1555578113 (click onartifacts
near the top-right corner)
Awesome!
from showmewebcam.
A possible solution for this problem is adding a switch for disabling controls from the host computer.
I will add this switch to the uvc-gadget.
Hey ! stumbling upon the same issue were I want to disable the host machine from setting values, could you point me to where I could disable controls from the host computer ? thanks !
from showmewebcam.
Hey ! stumbling upon the same issue were I want to disable the host machine from setting values, could you point me to where I could disable controls from the host computer ? thanks !
That should be possible now: https://github.com/showmewebcam/showmewebcam#overriding-the-controls-available-to-the-host-computer
from showmewebcam.
Related Issues (20)
- RPI Zero 2W? HOT 1
- Appreciation & Inquiry Regarding Update HOT 2
- Unable to use RPi zero v1.3 with arducam IMX219 module in ubuntu HOT 5
- Pi0 not recognized as camera anymore HOT 1
- Camera freezes when setting 1080p in OBS. also, is there 60 fps support?
- Rpi Zero W Creating 'Failed to query (GET_INFO) UVC control' Error on Rpi 3 Buster 3 and Rpi 4 Bullseye 64 bit HOT 2
- Support other raspberry pi HOT 2
- Remove unused kernel modules and subsystems HOT 1
- Not showing up on M1 pro Mac HOT 3
- Support for Pi Camera 3 HOT 12
- Low light environment. Maximum value of exposure_time_absolute >10000 HOT 1
- Installation instructions down HOT 1
- Project dead?! HOT 10
- [Quesition] Streaming app (preferable cli) HOT 1
- How to grab an uncompressed image from the UVC camera, e.g. with ffmpeg?
- start.elf: is not compatible HOT 9
- not detected on Android
- How to specify firmware version? HOT 2
- Not working with Raspi 4 + camera module 2 on Win10 HOT 2
- Camera module 3 support ? HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from showmewebcam.