Tiny Core Base > Raspberry Pi
picam, firefox, picore 15: js error. camera not found
Rich:
Hi segfault
--- Quote from: segfault on September 03, 2024, 06:08:09 AM --- ... but when I added: sudo chown tc:staff /dev/video* ...
--- End quote ---
That takes care of /dev/video0 and /dev/video1. It also takes care
of /dev/video/ but not its contents. Try it like this:
--- Code: ---sudo chown -Rv tc:staff /dev/video*
--- End code ---
That also should recurse into the directory and change its contents
as well as report what it is doing.
segfault:
Thanks Rich. :)
I did as you said, but the error persists. I also did "dmesg | grep video" and I can see that bcm2835-isp and bcm2835-codec is registered on multiple /dev/video<number> (which makes sense because the camera does work when snapping photos using CLI) then I checked which PID firefox has using "ps" and "fuser /dev/video<number>" and firefox does show up as a being connected to these video files.
I'm starting to doubt that it's a permission thing... but what else could it be?
I'm using:
sudo chown tc:staff /dev/media*
sudo chown tc:staff /dev/dma_heap/*
sudo chown -Rv tc:staff /dev/video*
And when firefox asks me which camera to pick it shows unicam (along with bcm2835-isp, etc) which is the same device picked when running "libcamera-jpeg -o ~/camera.jpg --width 640 --height 320 --nopreview".
EDIT: it's not related to firefox extensions either I think, because I've not installed any ;) and also tried running in -save-mode
curaga:
FF usually has an about: page with more detailed errors. Try finding if there's one for the camera.
Navigation
[0] Message Index
[*] Previous page
Go to full version