-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel 4.19.65: set AWB greyworld mode via v4l2-ctl command #1225
Comments
The V4L2 spec doesn't have an enum for greyworld. Either we have to deviate from the spec, or it would be easy to combine it into the night scene mode option. Merging it into the scene mode will have the downside that exposure mode and metering mode will also be dictated by the scene mode rather than user selection. Picamera is an independent project - issues related to it should remain there. |
Hi @6by9, thanks for your feedback. Made this work with a patches for EDIT: to be fair, you can also pipe from raspivid to |
Hi @6by9, I've been trying to add the
It compiles well under buildroot and
I am doing something fundamentally wrong? Or is really not as easy to add this mode to v4l2 in linux? To my understanding the additions are counted fine and new enum should be picked by mmal as any other. |
Without seeing the changes you've actually made it's nearly impossible to say what you've missed ir where it is failing. |
Yes, I realized that my question was impossible to answer without making clear the changes, apologies @6by9. This is what I did:
I also realized that buildroot is pulling the compiled kernel from the firmware branch, albeit before the modules are copied from linux. I will keep trying and report back here if I have any success. |
Only very brief testing, but the two patches on https://github.com/6by9/linux/tree/rpi-4.19.y-1 seem to do what is needed. |
Hi again @6by9. I gave your branch a go and works as intended. Compiled in buildroot (thingos/motioneyeos) and can now set
I can confirm this works on a rpi zero w and 3B so I can finally use my 6 NoIRs with |
Hint: 0x400 is (1 << 10). |
Following up on #1167 the new AWB
greyworld
mode cannot be set viav4l2-ctl
command. In MotionEyeOS, this is the way AWB modes are set. Hopefully there is something obvious I am missing. To my understandingv4l2-ctl
is just an interface for accessing the driver.Here is the output of the
v4l2-ctl
slightly stripped of irrelevant bits:Actual behaviour
Note the
white_balance_auto_preset 0x009a0914 (menu) : min=0 max=9 default=1 value=1
line. There is no setting10
achievable via thev4l2-ctl
command.Use with picamera
Perhaps related, following the changes in the PR on the python-picamera library waveform80/picamera#576, result in the following error when passing the
greyworld
mode to python-picamera:System
cat /etc/rpi-issue
)? using MotioneyeOS custom buildvcgencmd version
)?uname -a
)?Help
Need help with a patch for the
mmal.py file
inpython-picamera
and help with parsing greyworld mode viav4l2-ctl
command. Or a nudge to the right direction.Thanks! Cheers!
The text was updated successfully, but these errors were encountered: