Virtual camera doesn't work; says v4l2loopback not installed even though it is

Sanyanov

New Member
Distibution: Manjaro
Kernel: 6.6.19-1
Installation source: official repository (extra)

OBS doesn't have virtual camera option - no button to start or stop it.
--verbose output says the following:

debug: Loading module: linux-v4l2.so
warning: v4l2loopback not installed, virtual camera disabled

There is, in fact, v4l2loopback-dkms installed on my system. Both it and OBS are installed from official repository, no flatpaks or any sandbox environment.
Is there anything I can do to resolve it?
 

Tuna

Member
Check the output when you install v4l2loopback-dkms. Does it succeed or do you perhaps miss the kernel header files? If the module does not compile you will not have the virtual camera.
 

Sanyanov

New Member
Check the output when you install v4l2loopback-dkms. Does it succeed or do you perhaps miss the kernel header files? If the module does not compile you will not have the virtual camera.
Indeed, it was an issue with headers. Problem solved, thank you!
 

ubuntourist

New Member
I'm stuck. It was working this morning, but after a kernel update, it appears to be gone. The current state of affairs:

$ uname -a Linux rama 6.8.0-76060800daily20240311-generic #202403110203~1710198088~22.04~1a3dbc7 SMP PREEMPT_DYNAMIC Mon M x86_64 x86_64 x86_64 GNU/Linux $ dpkg --get-selections | egrep "^(v4l|linux-)" | egrep -v "(latency|libc)" | tr -s "\t " " " | cut -d " " -f 1 linux-base linux-firmware linux-generic linux-headers-6.8.0-76060800daily20240311 linux-headers-6.8.0-76060800daily20240311-generic linux-headers-generic linux-image-6.8.0-76060800daily20240311-generic linux-image-generic linux-modules-6.8.0-76060800daily20240311-generic linux-sound-base linux-system76 v4l-utils v4l2loopback-dkms v4l2loopback-utils
 
Top