`device.disabled` not working for libcamera device
Using a rule like
libcamera_rule = {
matches = {
{
{ "device.name", "matches", "libcamera_device.*" },
},
},
apply_properties = {
["device.disabled"] = true,
},
}
table.insert(libcamera_monitor.rules, libcamera_rule)
does not disable libcamera devices. A similar rule for v4l2 works.
This seems to miss the check for "device.disabled"
.
https://gitlab.freedesktop.org/pipewire/wireplumber/-/blob/e7c394d6c2028c8de46d601f4ffe833d03fd95e5/src/scripts/monitors/libcamera.lua#L151
Here's the corresponding line in the v4l2 monitor. https://gitlab.freedesktop.org/pipewire/wireplumber/-/blob/master/src/scripts/monitors/v4l2.lua#L144
I'm trying to keep pipewire and wireplumber from touching my uvcvideo camera, because it keeps the camera and corresponding USB hub from runtime suspending.