Closed firepainting closed 1 year ago
If you terminate the app, that uses your real webcam, it should work.
@fangfufu Thanks and sorry for this late reply.
Do you mean quitting the app (e.g., Zoom), then running python3 fake.py -c .config-fake-cam.ini
? That does not work.
I'm trying to install Akvcam but it won't install the driver.
/$ ls /lib/modules/$(uname -r)/extra/akvcam.ko*
ls: cannot access '/lib/modules/5.15.0-87-generic/extra/akvcam.ko*': No such file or directory
firepainting@firepainting:~$ cd akvcam/src
firepainting@firepainting:~/akvcam/src$ make
make -C /usr/lib/modules/5.15.0-87-generic/build M=/home/firepainting/akvcam/src modules
make[1]: Entering directory '/usr/src/linux-headers-5.15.0-87-generic'
CC [M] /home/firepainting/akvcam/src/module.o
CC [M] /home/firepainting/akvcam/src/attributes.o
CC [M] /home/firepainting/akvcam/src/buffers.o
CC [M] /home/firepainting/akvcam/src/controls.o
CC [M] /home/firepainting/akvcam/src/device.o
CC [M] /home/firepainting/akvcam/src/driver.o
CC [M] /home/firepainting/akvcam/src/file_read.o
CC [M] /home/firepainting/akvcam/src/format.o
CC [M] /home/firepainting/akvcam/src/frame.o
CC [M] /home/firepainting/akvcam/src/frame_filter.o
CC [M] /home/firepainting/akvcam/src/ioctl.o
CC [M] /home/firepainting/akvcam/src/list.o
CC [M] /home/firepainting/akvcam/src/log.o
CC [M] /home/firepainting/akvcam/src/map.o
CC [M] /home/firepainting/akvcam/src/rbuffer.o
CC [M] /home/firepainting/akvcam/src/settings.o
CC [M] /home/firepainting/akvcam/src/utils.o
LD [M] /home/firepainting/akvcam/src/akvcam.o
MODPOST /home/firepainting/akvcam/src/Module.symvers
CC [M] /home/firepainting/akvcam/src/akvcam.mod.o
LD [M] /home/firepainting/akvcam/src/akvcam.ko
BTF [M] /home/firepainting/akvcam/src/akvcam.ko
Skipping BTF generation for /home/firepainting/akvcam/src/akvcam.ko due to unavailability of vmlinux
make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-87-generic'
firepainting@firepainting:~/akvcam/src$ sudo make dkms_install
[sudo] password for firepainting:
dkms remove akvcam/1.2.4 --all
Error! The module/version combo: akvcam-1.2.4 is not located in the DKMS tree.
make: [Makefile:63: dkms_uninstall] Error 3 (ignored)
rm -rvf /usr/src/akvcam-1.2.4
rm -rvf /usr/src/akvcam-1.2.4
mkdir -p /usr/src/akvcam-1.2.4
cp -f Makefile /usr/src/akvcam-1.2.4
cp -f dkms.conf /usr/src/akvcam-1.2.4
cp -f *.h /usr/src/akvcam-1.2.4
cp -f *.c /usr/src/akvcam-1.2.4
dkms install akvcam/1.2.4
Creating symlink /var/lib/dkms/akvcam/1.2.4/source -> /usr/src/akvcam-1.2.4
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.15.0-87-generic KERNEL_DIR=/lib/modules/5.15.0-87-generic/build all....
Signing module:
- /var/lib/dkms/akvcam/1.2.4/5.15.0-87-generic/x86_64/module/akvcam.ko
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
cleaning build area...
akvcam.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.15.0-87-generic/updates/dkms/
depmod.....
Well, I'm not sure if I missed something on the instructions and if this is the case for everyone else, but a workaround I found is by unloading the v4l2loopback module and re-laoding it back:
sudo modprobe -r v4l2loopback && sudo modprobe v4l2loopback
That frees me from the need to reboot after an "Errno 22", but is it normal/okay to unload and re-load it like that?
I'm using the v4l2loopback from the github repository.
The error message came from not being able to start the fake webcam. I am not sure what caused that problem.
Thanks. At least I get it to work now without rebooting my laptop. Can get by with restarting apps and reloading the module. That's good enough for me!
Hi. First of all fake-cam is awesome! Thanks to everyone that made this possible! Second, please be patient, I'm not that proficient in Linux things even though I got this to work somehow. Thanks!
Okay, so just to be clear, fake-cam works on my end and it works very well IMO. But I have to run it first (
python3 fake.py -c .config-fake-cam.ini
) before opening any video-call app. Otherwise, if I mistakenly open the app or browser before running fake.py, I get the error below.How do I resolve this without having to restart my laptop?
This is true for/reproducible with:
I only did the v4l2loopback route (did not need to try Akvcam).
Many thanks in advance!
My .config-fake-cam.ini: