How can I recover my camera without unplugging it?

Last updated: November 16, 2026

Note: the following tips are not valid for the ZED (first generation) camera model. Rebooting a ZED Mini requires ZED SDK 5.6 or later and is only supported on ZED Mini cameras acquired after September 2026, with firmware v520 or later.

USB 3 cameras: ZED 2, ZED 2i and ZED Mini

If your ZED 2, ZED 2i or ZED Mini camera is stuck in a not valid status and you cannot open it anymore, you can recover it without unplugging and re-plugging it by calling the ZED SDK function sl::Camera::reboot (C++ / Python / C# / C).

  • reboot(serial_number) resets the camera with the given serial number. Use 0 to reset the first camera detected.

  • The optional fullReboot parameter (default true) resets both the sensors and the video module. Set it to false to reset only the video module.

  • To reset every USB camera connected to the host at once, call sl::Camera::reboot(sl::INPUT_TYPE::USB) in C++ or sl.Camera.reboot_from_input(sl.INPUT_TYPE.USB) in Python.

C++:

sl::ERROR_CODE err = sl::Camera::reboot(serial_number);           // one camera
sl::ERROR_CODE err_all = sl::Camera::reboot(sl::INPUT_TYPE::USB); // all USB cameras

Python:

err = sl.Camera.reboot(serial_number)
err_all = sl.Camera.reboot_from_input(sl.INPUT_TYPE.USB)

The camera may take up to 10 seconds to be available again. If the camera firmware does not support the reset, the function returns ERROR_CODE::INVALID_FIRMWARE.

You can also use the --reboot launch option of the ZED Explorer tool.

Linux:

ZED_Explorer --reboot

Windows:

"ZED Explorer.exe" --reboot

If multiple cameras are connected to the host device, the --reboot option without arguments reboots only the first available camera. To reboot a specific camera, add its serial number:

ZED_Explorer --reboot <SERIAL_NUMBER>

GMSL2 cameras: ZED X, ZED X Mini, ZED X Nano, and ZED X One

If a GMSL2 camera (ZED X, ZED X Mini, ZED X Nano, ZED X One GS, ZED X One S, or ZED X One 4K) is stuck in a not valid status, you can recover it without rebooting the NVIDIA® Jetson™ host device.

From your application, with the ZED SDK

GMSL2 cameras are reset with the reboot function that takes an input type, not with a serial number:

  • Stereo cameras (ZED X, ZED X Mini, ZED X Nano), with sl::Camera (C++ / Python):

    // C++
    sl::ERROR_CODE err = sl::Camera::reboot(sl::INPUT_TYPE::GMSL);
    # Python
    err = sl.Camera.reboot_from_input(sl.INPUT_TYPE.GMSL)
  • Monocular cameras (ZED X One GS, ZED X One S, ZED X One 4K), with sl::CameraOne (C++ / Python):

    // C++
    sl::ERROR_CODE err = sl::CameraOne::reboot();
    # Python
    err = sl.CameraOne.reboot_from_input(sl.INPUT_TYPE.GMSL)

Things to know before calling it:

  • The reset applies to all the GMSL2 cameras connected to the host, stereo and monocular alike, including those used by other applications. It is not possible to reset a single GMSL2 camera by serial number.

  • Close every camera (close()) in your application before calling the reboot function, then open them again once it returns. If cameras are still open, they are not fully reset and the SDK logs a warning asking you to close them and call the function again.

  • Any sl::Camera or sl::CameraOne object that was open before the reboot is no longer valid: open it again. Allow a few seconds for the cameras to be available.

  • The GMSL2 reboot is only available on NVIDIA Jetson host devices. On other platforms the function returns ERROR_CODE::CAMERA_NOT_DETECTED.

  • The C and C# APIs only expose the USB camera reboot (by serial number). From those languages, use the command line method below.

From the command line

You can obtain the same result by restarting the ZED X daemon:

sudo systemctl restart zed_x_daemon

Close every application that uses the cameras before restarting the daemon.

Note: GMSL2 cameras are not hot-pluggable. Unplugging and re-plugging a GMSL2 camera while the system is powered is not a valid method to reset and recover it. If the reboot function or the daemon restart does not solve the problem, power off the host device, check the GMSL2 cables and connectors, and power it on again.

If the problem persists, see How can I generate the ZED Diagnostic file? and send the generated file to support@stereolabs.com.