[libcamera-devel] Advice on how to wait for camera framework to start

Eric Curtin ecurtin at redhat.com
Tue Jun 21 17:32:18 CEST 2022


Hi guys,

I'm looking for a way on boot to wait until the camera framework has
started in a machine and at that point start the camera as quickly as
possible. At present if you start the camera before the camera stack is up
kernel-side at present you get:

"No valid sysfs media device directory"

unless you have compiled with libudev, then you fail in a similar location
in the udev version.

Without being an expert in systemd, udev etc. Are there any useful ways to
detect when the camera is up kernel side and at that point start as quickly
as possible? Without repeatedly checking for existence of the directory?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20220621/cdaf14cb/attachment.htm>


More information about the libcamera-devel mailing list