01-30-2021, 11:14 PM
(12-14-2020, 12:20 AM)maxwire Wrote: I just purchased and installed Open Auto Pro on my Raspberry Pi 4 2gb, everything seems to work except the Rear View Camera. I only get a black screen when the camera is activated by using the rear view camera tile in Open Auto Pro or by triggering it in Android Auto using a GPIO.
The camera is an official Raspberry Pi v2 and has been registered in Raspbian.
I have tested the camera in Terminal using "raspivid -f -t 10000" and the camera works fine.
Help would be appreciated
For those who are having this issue, after hours of searching through the forum and testing all kind of solutions, finally solved the issue!
Hardware:
- Raspberry Pi 4 4gb
- Pi Camera V2 (Official)
When you run raspivid outside OAP it almost always works because those 76M are enough with out the OAP interface in foregound, but when you access through the Rear Camera button in OAP it just shows black screen (because v4l2 server has not enough memory to start).
I suppose that this problem is Pi4 only since other devices already have a right value in /boot/config.txt and specially related with camera v2 because of its higher resolution (more memory needed).
Steps to solve:
- sudo nano /boot/config.txt
- Go to the end of the file and add gpu_mem=256 under the [pi4]
- Save the file and sudo reboot
- Everything should word now
All the best