Vinuel
Posts: 10
Joined: Tue Jun 16, 2020 2:43 pm

Camera won't work when display is connected

Tue Jun 16, 2020 3:09 pm

Hello everyone,

I recently got the new raspi camera module and it works totally fine. But whenever i also connect my 4.3 inch Display with the pi I get the following response:
mmal: mmal_vc_component_enable: failed to enable component: ENOSPC
mmal: camera component couldn't be enabled
mmal: main: Failed to create camera component
mmal: Failed to run camera app. Please check for firmware updates

Also, the WiFi really works horribly when the display is connected, but whenever I disconnect the display all works perfectly. My first guess is, that the display simply needs too much power, so my raspi 3b+ isn't able to properly use anything else.

I use the raspi 3b+ with the newest raspbian and the official power supply with 5.1V/2.5A.

If it really is the power supply, is it possible to use an additional power source? (The display is only connected via the onboard display port and doesn't have its own power supply possibility, here's a link to the display: https://www.waveshare.com/4.3inch-dsi-lcd.htm )
Another option would be to get the new Raspi 4b, but i read, that it already needs a bit more power to run, so I'm not sure if it would be any better.

Thanks in advance for any help!

aBUGSworstnightmare
Posts: 1886
Joined: Tue Jun 30, 2015 1:35 pm

Re: Camera won't work when display is connected

Tue Jun 16, 2020 4:05 pm

What does waveshare say? The DSI and CSI share the same I2C interface on the standard PI --> maybe waveshare did not consider this when designing the display

Vinuel
Posts: 10
Joined: Tue Jun 16, 2020 2:43 pm

Re: Camera won't work when display is connected

Tue Jun 16, 2020 4:09 pm

Oh, so it may be, that the display simply "blocks" the camera, since it always needs the interface? Is there a simple way to solve this, or do i need another display?

And: 1 time(!) i was able to use the cam and the display at the same time, but it was after a reboot-orgy and i didn't really change anything!

Vinuel
Posts: 10
Joined: Tue Jun 16, 2020 2:43 pm

Re: Camera won't work when display is connected

Wed Jun 17, 2020 8:52 am

just to add any more information: the raspi at least knows, that the cam is connected. Running "vcgencmd get_camera" gives me "supported=1 detected=1". It still bothers me, that the WiFi doesnt really work (it needs to be damn close to the router and the speed/ping is horrible).

Update: when using a python-script taking a picture works perfectly fine, so i guess theres a problem with raspistill/raspivid + the display? Still, wifi annoys me tho

Update 2: it was a one-timer :( after rebooting and starting the pythong-script again, i get the following response:
picamera.exc.PiCameraMMALError: Failed to enable connection: Out of resources
. Sounds like my pi is simply too weak for both display + cam?

gordon77
Posts: 4992
Joined: Sun Aug 05, 2012 3:12 pm

Re: Camera won't work when display is connected

Wed Jun 17, 2020 9:28 am

" Sounds like my pi is simply too weak for both display + cam?"

Maybe an issue with that display. I use a Pi2 with the official 7" Pi display and a pi camera with no issues.

Vinuel
Posts: 10
Joined: Tue Jun 16, 2020 2:43 pm

Re: Camera won't work when display is connected

Wed Jun 17, 2020 9:47 am

Is there a way to see if any other process is using the camera right now?

PiGraham
Posts: 3929
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: Camera won't work when display is connected

Wed Jun 17, 2020 10:00 am

Based on the error message I got this from Google
viewtopic.php?t=198665#p1240002

Could be something else is using the camera

Vinuel
Posts: 10
Joined: Tue Jun 16, 2020 2:43 pm

Re: Camera won't work when display is connected

Wed Jun 17, 2020 11:34 am

Yeah, already thought of that too. Problem is, that even after a clean install the problem occurs. But since it was mentioned, that the cam and the display use the same interface, maybe that's exactly the problem. Question is how to solve that problem. I mean i already got it running 2 times (1 time with raspistill, 1 time with a python script), but it's pretty random if it works or not.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Camera won't work when display is connected

Wed Jun 17, 2020 11:41 am

Sounds like a terrible display - bad wireless means it's electrically very noisy, and it sounds like the driver isn't right either if it's interfering with the camera.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Vinuel
Posts: 10
Joined: Tue Jun 16, 2020 2:43 pm

Re: Camera won't work when display is connected

Wed Jun 17, 2020 11:54 am

Never had to install a driver, it's plug and play.

But not having wifi would be completly fine for me, it's just that i wonder if theres a context between the bad wifi and the problems with the cam

stubright
Posts: 117
Joined: Sat Dec 24, 2011 11:12 pm

Re: Camera won't work when display is connected

Wed Jun 17, 2020 12:05 pm

Vinuel wrote:
Wed Jun 17, 2020 11:34 am
I mean i already got it running 2 times (1 time with raspistill, 1 time with a python script), but it's pretty random if it works or not.
Are you sure it is not a power issue? The website states you should use a 3A power supply when using the screen.
It works with just the screen, it works with just the camera but when both are connected you state "I got it running 2 times (1 time with raspistill, 1 time with a python script), but it's pretty random if it works"

You're using a 2.5A supply with a screen AND camera and as quoted above you have had it working a couple of times, albeit randomly. I don't know how much power the camera uses, or the screen for that matter, but for them to recommend a beefier power supply just for the sceen must mean something.

Vinuel
Posts: 10
Joined: Tue Jun 16, 2020 2:43 pm

Re: Camera won't work when display is connected

Wed Jun 17, 2020 12:06 pm

Can the raspi 3b handle a "better" power supply? I think i read that the one i use right now is the maximum, but not sure..

fruitoftheloom
Posts: 23132
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Camera won't work when display is connected

Wed Jun 17, 2020 12:18 pm

Vinuel wrote:
Wed Jun 17, 2020 12:06 pm
Can the raspi 3b handle a "better" power supply? I think i read that the one i use right now is the maximum, but not sure..

According to the specifications an Official Power Supply should be "adequate"

https://www.waveshare.com/wiki/4.3inch_DSI_LCD

https://www.raspberrypi.org/documentati ... /#pi-power
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

Vinuel
Posts: 10
Joined: Tue Jun 16, 2020 2:43 pm

Re: Camera won't work when display is connected

Wed Jun 17, 2020 12:51 pm

It should be, but on rebooting i just saw the sign that the power supply is too weak (at least i guess that's what the lightning in the top right corner means). But i don't know if that's normal on reboots or not

Vinuel
Posts: 10
Joined: Tue Jun 16, 2020 2:43 pm

Re: Camera won't work when display is connected

Thu Jun 18, 2020 7:53 am

Okay I'm trying to return it today, any suggestions for a display perfectly working with the pi camera? If possible < than 5 inches

Return to “Troubleshooting”