120 degree spy camera errors out
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jpspoonhower
- Posts: 13
- Joined: Sat Mar 30, 2019 11:34 am
120 degree spy camera errors out
The pi zero runs headless; I connect using VNC.
The red led on the camera cable is lit, so power at least, is available to the camera. However, the camera fails with this error
when I run a command from a terminal:
libcamera-hello -t 0
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:03:19.326408576] [1109] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3424-e68e0f1e
ERROR: *** no cameras available ***
How do I correct this?
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: 120 degree spy camera errors out
Just to confirm did you buy the model that is specifically for Pi Zeros?
https://www.adafruit.com/product/5389
Are you using a Pi Zero or Pi Zero 2?
https://www.adafruit.com/product/5389
Are you using a Pi Zero or Pi Zero 2?
- jpspoonhower
- Posts: 13
- Joined: Sat Mar 30, 2019 11:34 am
Re: 120 degree spy camera errors out
I am using a pi zero W (v1.1).
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: 120 degree spy camera errors out
Assuming you are using adafruit product id# 5389 it should just be a configuration issue on your Pi.
Make sure you enable "Glamor" graphic acceleration. That appears to be the main culprit for this message.
Advanced Options --> enable Glamor graphic acceleration
reboot.
Make sure you enable "Glamor" graphic acceleration. That appears to be the main culprit for this message.
Code: Select all
sudo raspi-config
reboot.
- jpspoonhower
- Posts: 13
- Joined: Sat Mar 30, 2019 11:34 am
Re: 120 degree spy camera errors out
I confirm the product is a p5389.
"Glamor" is enabled using raspi-config.
I get the same error.
"Glamor" is enabled using raspi-config.
I get the same error.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: 120 degree spy camera errors out
Two more things to try:
1) make sure you fully updated.
2) again go back to raspi-config and enable legacy camera. It is located under interface options.
reboot
1) make sure you fully updated.
Code: Select all
sudo apt update
sudo apt full-upgrade
reboot
- jpspoonhower
- Posts: 13
- Joined: Sat Mar 30, 2019 11:34 am
Re: 120 degree spy camera errors out
1) sudo apt update and sudo apt full-upgrade were completed.
2) legacy camera support enabled in raspi-config.
3) reboot.
4) after boot, the red LED on the camera cable is no longer illuminated.
5) the VNC display size is changed (smaller display)
6) same error:
ibcamera-hello -t 0
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:02:12.960370542] [1062] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
2) legacy camera support enabled in raspi-config.
3) reboot.
4) after boot, the red LED on the camera cable is no longer illuminated.
5) the VNC display size is changed (smaller display)
6) same error:
ibcamera-hello -t 0
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:02:12.960370542] [1062] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: 120 degree spy camera errors out
Okay, I see the issue.
There is conflict with using VNC and the camera.
Can you run the command over ssh?
There is conflict with using VNC and the camera.
Can you run the command over ssh?
- jpspoonhower
- Posts: 13
- Joined: Sat Mar 30, 2019 11:34 am
Re: 120 degree spy camera errors out
ssh shows the same result:
libcamera-hello -t 0
Preview window unavailable
[9:23:53.584064503] [1609] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
libcamera-hello -t 0
Preview window unavailable
[9:23:53.584064503] [1609] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: 120 degree spy camera errors out
It no longer gives the original beginning of the error message?
It is now (via ssh) only the:
There are also other camera interfaces. You could try:
If you really want to use libcamera you might need to add a monitor / keyboard / mouse for troubleshooting purposes. I believe you need to have X running with a valid DISPLAY=:0 setting.
Code: Select all
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
Code: Select all
Preview window unavailable
[9:23:53.584064503] [1609] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
Code: Select all
raspistill -o cam.jpeg
Code: Select all
export DISPLAY=:0
- jpspoonhower
- Posts: 13
- Joined: Sat Mar 30, 2019 11:34 am
Re: 120 degree spy camera errors out
Yes, with ssh the initial response is different. Is this a big surprise, given there is no X-window environment? I do not understand your point..
here is what raspistill produces:
pi@pizerocam:~ $ raspistill -o cam.jpeg
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly
seems like the problem persists...
why does the red LED get disabled when legacy camera is enabled in raspi-config? seems bizarre to me.
here is what raspistill produces:
pi@pizerocam:~ $ raspistill -o cam.jpeg
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly
seems like the problem persists...
why does the red LED get disabled when legacy camera is enabled in raspi-config? seems bizarre to me.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: 120 degree spy camera errors out
Thanks for trying raspistill.
Let's get back to your original command:
You have a few options:
1) Do you have a valid display to export to (another X11 machine)?
2) Plugin a keyboard/mouse/monitor to your Pi to confirm the command can run with its preview window on a local X11 environment.
3) Try libcamera-still which can omit the preview window.
Let's get back to your original command:
Code: Select all
libcamera-hello -t 0
It is failing to launch a preview window with no valid X11 display.libcamera-hello A simple "hello world" application which starts a camera preview stream and displays it on the screen.
You have a few options:
1) Do you have a valid display to export to (another X11 machine)?
2) Plugin a keyboard/mouse/monitor to your Pi to confirm the command can run with its preview window on a local X11 environment.
3) Try libcamera-still which can omit the preview window.
Code: Select all
libcamera-still -o test.jpg
https://www.raspberrypi.com/documentati ... amera.htmllibcamera-still A more complex still image capture application which emulates more of the features of raspistill.
- jpspoonhower
- Posts: 13
- Joined: Sat Mar 30, 2019 11:34 am
Re: 120 degree spy camera errors out
I chose method #2.
from a terminal window on the desktop , here's the response.
pi@pizerocam:~ $ libcamera-hello -t 0
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:03:17.334778766] [1098] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
pi@pizerocam:~ $ libcamera-still
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:12:31.393368946] [1126] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
pi@pizerocam:~ $ raspistill -o cam.jpg
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly
pi@pizerocam:~ $
It all looks like the same problem to me regardless of the working environment.
How do I return this camera for a credit?
I have spent way too much time on this....
from a terminal window on the desktop , here's the response.
pi@pizerocam:~ $ libcamera-hello -t 0
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:03:17.334778766] [1098] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
pi@pizerocam:~ $ libcamera-still
libEGL warning: DRI2: failed to authenticate
Made X/EGL preview window
[0:12:31.393368946] [1126] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3544-22656360
ERROR: *** no cameras available ***
pi@pizerocam:~ $ raspistill -o cam.jpg
mmal: Cannot read camera info, keeping the defaults for OV5647
mmal: mmal_vc_component_create: failed to create component 'vc.ril.camera' (1:ENOMEM)
mmal: mmal_component_create_core: could not create component 'vc.ril.camera' (1)
mmal: Failed to create camera component
mmal: main: Failed to create camera component
mmal: Camera is not detected. Please check carefully the camera module is installed correctly
pi@pizerocam:~ $
It all looks like the same problem to me regardless of the working environment.
How do I return this camera for a credit?
I have spent way too much time on this....
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: 120 degree spy camera errors out
Please contact [email protected] requesting a refund. Include your invoice# and a link to this forum thread.
Please be positive and constructive with your questions and comments.