#Pi Camera imx219@10 does not want to work with my Rpi3b+

230 messages · Page 1 of 1 (latest)

obtuse copper
#

In the past i used it with octoprint with marlin, but switched to Klipper with Mainsail. I cannot figure out by myself what is going on, with the following command libcamera-vid --list-cameras the camera appears with all the resolutions but i cannot figure it out. I read all the threads with webcams related to my problem but didn´t help 😦 note: i am using klipperscreen 5inch dsi display. if I activate the function 'dtoverlay=vc4-kms-v3d' after reboot it will not boot back to my klipperscreen, stays on terminal image ...

tight sandal
#

Send a crowsnest.log with log_level: debug

obtuse copper
#

where can i find that? is that from the mainsail-machine-logs?

#

wait a minute here ....

#

some extraterestrial thing is going on here

#

my cam is working

#

but my display not

#

i was just editing something

tight sandal
obtuse copper
#

i have a new issue

tight sandal
obtuse copper
#

but i also edited here

#

sudo bash -c "echo needs_root_rights=yes>>/etc/X11/Xwrapper.config"

#

and now i dont have klipperscreen active

#

it is just dark, no image

#

but touch seems to respond

tight sandal
#

Then you might want to delete needs_root_rights=yes from your /etc/X11/Xwrapper.config again

obtuse copper
#

i jos home axes blind :))

obtuse copper
#

and after that the problem occurs

#

resolved pi camera issue, but run into another

obtuse copper
#

It Shows this now

tight sandal
#

We don't give klipperscreen support sry. The reason is written in the last message in #klipper-screen

obtuse copper
#

you are reffering to this?

#

1.sudo raspi-config
2.Boot Options
3.Console Autologin Text console, automatically logged in as 'pi' user

tight sandal
obtuse copper
#

We don't give klipperscreen support sry. The reason is written in the last message in ⁠klipper-screen

#

i am new to all this, but happy to learn

tight sandal
#

The last message is this:

since we don't get any feedback from klipperscreen maintainers and can't support everything from klipperscreen ourselves, we have to close this channel.

If you need support/help, pls use the issue tracker on GitHub: https://github.com/jordanruthe/KlipperScreen/issues

obtuse copper
#

ok, thank you very much

tawny brook
obtuse copper
#

i can curently choose either klipperscreen or webcam

tawny brook
#

I have opened a new thread my problem seems to be diffrent. Camera stream is not starting at all in the log file

obtuse copper
#

but i want to use both, and RaspiOS 64 bit maybe the soluton, curently on 32bit

obtuse copper
#

can be hardware *

obtuse copper
tight sandal
#

Is your setup right now like that? If yes, send a log

obtuse copper
#

and after that my camera was not fount

#

vcgencmd get_camera after this command i was prompted with no camera message

#

but i found the issue

#

i cannot use dtoverlay=vc4-kms-v3d because my screen will not respond, but the camera with work with, and vice versa

#

if i out comment that command the screen is working but no camera

#

i found on forum that i should try that with a RaspiOS 64bit, curently on 32bit

#

I will be posting here if that works for me

tight sandal
tight sandal
tight sandal
obtuse copper
#

but still doesn´t work

#

here is the log

#

The steps are corect, the config.conf is also th right one

#

i tried camera-streamer and ustreamer

#

i cannot get image 😦

#

device is video0

#

not video14 i was just editing that out

#

and rebooted

#

and still no image

#

😦

tight sandal
#

Then set /dev/video0 and log_level: debug and send a new log

obtuse copper
tight sandal
#

You didn't set log_level: debug

obtuse copper
#

ssh?

tight sandal
#

Inside your crowsnest.conf....

#

Just like /dev/video0

obtuse copper
#

ok

tight sandal
#

Furthermore you might want to tune down the resolution a bit. 1640x1232 or 1920x1080 are a lot better if you want more than 2fps

obtuse copper
#

i set that debug level in crowsnest above, or it should be on the [cam1] ?

obtuse copper
#

ok

tight sandal
#

I have to check something real quick

obtuse copper
#

ok

tight sandal
#

Please send your /boot/config.txt

obtuse copper
#

tell me plese how to do that

tight sandal
#

There are multiple ways. You can download it with winscp, you could output it to your terminal with cat /boot/config.txt and then copy paste it, or you can run cat /boot/config.txt > ~/printer_data/config/boot_config.txt and download boot_config.txt inside Mainsail on the machine apge

obtuse copper
#

i have print screen it :))

#

For more options and information see

http://rptl.io/configtxt

Some settings may impact device functionality. See link above for details

Uncomment some or all of these to enable the optional hardware interfaces

#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

Enable audio (loads snd_bcm2835)

dtparam=audio=on

Additional overlays and parameters are documented

/boot/firmware/overlays/README

Automatically load overlays for detected cameras

camera_auto_detect=0

enable V2 camera (IMX219)

#dtoverlay=imx219

Automatically load overlays for detected DSI displays

display_auto_detect=1
#dtoverlay=vc4-kms-dsi-5inch
start_x=1

Automatically load initramfs files, if found

auto_initramfs=1

Enable DRM VC4 V3D driver

#dtoverlay=vc4-kms-v3d
max_framebuffers=2

Don't have the firmware create an initial video= setting in cmdline.txt.

Use the kernel's default instead.

disable_fw_kms_setup=1

Disable compensation for displays with overscan

disable_overscan=1

Run as fast as firmware / board allows

arm_boost=1

[cm4]

Enable host mode on the 2711 built-in XHCI USB controller.

This line should be removed if the legacy DWC2 controller is required

(e.g. for USB device mode) or if USB support is not required.

otg_mode=1

[all]

The official documentation for Raspberry Pi computers and microcontrollers

#

paste it

tight sandal
#

You want to use ` triple before and after that it get's formatted better

tight sandal
#

If you use that symbol `
You can make code formatting like this:

test
#

Damn it. I forgot one part....
This is bookworm and the legacy stack doesn't work correctly anymore...Sometimes it can work and most times it won't.....

obtuse copper
#
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

# Additional overlays and parameters are documented
# /boot/firmware/overlays/README

# Automatically load overlays for detected cameras
camera_auto_detect=0
# enable V2 camera (IMX219)
#dtoverlay=imx219
# Automatically load overlays for detected DSI displays
display_auto_detect=1
#dtoverlay=vc4-kms-dsi-5inch
start_x=1

# Automatically load initramfs files, if found
auto_initramfs=1

# Enable DRM VC4 V3D driver
#dtoverlay=vc4-kms-v3d
max_framebuffers=2

# Don't have the firmware create an initial video= setting in cmdline.txt.
# Use the kernel's default instead.
disable_fw_kms_setup=1

# Disable compensation for displays with overscan
disable_overscan=1

# Run as fast as firmware / board allows
arm_boost=1

[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1

[all]
obtuse copper
#

I can completely change it to a new linux dependancy

#

i only need my config file, wich is saved and my printer.cfg

#

i dont think i need anything else... or?

tight sandal
#

Try to add following:

dtoverlay=vc4-kms-v3d,cma-256
dtoverlay=vc4-kms-dsi-7inch
dtoverlay=imx219
obtuse copper
tight sandal
#

You can use bullseye, there it should work with the legacy stack

tight sandal
#

Just try it

obtuse copper
obtuse copper
#

my klipperscreen doesnt go to the graphg interface, stopped on terminal one

#

Webcam is the same, No Signal

tight sandal
tight sandal
tight sandal
obtuse copper
#

but not the screen

tight sandal
#

But I cannot guarantee you that touch will work after that ofc

#

What screen is it exactly?

#

I guess the BTT 5inch?

obtuse copper
#

This one

obtuse copper
#

so i cannot get it to work ...

#

what can I do to have it both working, klipperscreen and webcam?

tight sandal
#

Try to install bullseye then.

#

I recommend MainsailOS as this will make the start a lot faster. Overall you only need the printer.cfg, if you don't need any other data, like Mainsail settings or print history

obtuse copper
#

It is like RaspiOS? I install it directly on the mini sd card?

#

you think that with mainsailOS it should work?

tight sandal
obtuse copper
#

ok

#

i will do it just a little later

#

thank you for the help and patience

tight sandal
#

Overall to confirm if it works, you could use a different sdcard first ofc

obtuse copper
#

i installed MainsailOS

#

and i cannot go further from here

#

i cannot do the update

#

i loaded my printer.cfg

#

and run directly on pi the sudo apt update && upgrade -y command

#

and that.s it

#

moonraker seems to not responding

#

it has just startet automatically

#

lol

obtuse copper
#

Hi there

#

I installed and setup the mainsailOS

#

but camera doesn´t want to work 😦

tight sandal
#

KlipperScreen is working and camera, doesn't work with legacy stack?

obtuse copper
#

yes

tight sandal
#

Again a crowsnest.log please. But if that doesn't work, I don't know how it should work

obtuse copper
#

config.txt and crowsnest.log

#

i also tried with camera-streamer

tight sandal
#

Somehow your crowsnest, got broken 🤔

obtuse copper
tight sandal
#

21:21 since then ustreamer cannot be found

#

So run sudo make install to install it again

obtuse copper
#

sudo make install

#

this in terminal ssh?

#

should i first unninstall it or ?

#

cand you please tell me steps 😛

tight sandal
#

First you should go into crowsnest directory and then run it, so cd ~/crowsnest and then sudo make install 🤦‍♂️

#

Sry, doing other stuff right now ^^

obtuse copper
#

trough installation i saw this line ...

#
error: 7835 bytes of body are still expectedMiB | 109.00 KiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
fatal: clone of 'https://github.com/paullouisageneau/libdatachannel.git' into submodule path '/home/pi/crowsnest/bin/camera-streamer/third_party/libdatachannel' failed
Failed to clone 'third_party/libdatachannel'. Retry scheduled
Cloning into '/home/pi/crowsnest/bin/camera-streamer/third_party/libdatachannel'...
tight sandal
#

If it continued after that it should be fine

obtuse copper
#

it continues ...

#

but that particulary library has failed

tight sandal
#

Retry scheduled
Cloning into '/home/pi/crowsnest/bin/camera-streamer/third_party/libdatachannel'...
Let me think that it's retrying

obtuse copper
#

it has crashed

tight sandal
#

Try again

obtuse copper
#

again with the install?

tight sandal
#

Yes

#

But it might fail again. Overall this look like a fail while downloading

#

Weird enough that you ustreamer installation was suddenly gone but then you get a fail like that directly afterwards....

obtuse copper
#

I am a little far from my WLAN but it was working the other days...

#

at least my clock from klipperscreen indicates the right time now

#

haha

#

with the old bookworm was always 1 hour behind

#

now it is on point

#

it fails again with downloading from github ...

#

should i try to install it with KIAUH?

tight sandal
#

Kiauh doesn't make your internet connection better xD

obtuse copper
#
 * branch            90d05bf8980d16e4ac3f16c19b77e296c4bc207b -> FETCH_HEAD
Submodule path 'third_party/libdatachannel/deps/libsrtp': checked out '90d05bf8980d16e4ac3f16c19b77e296c4bc207b'
Submodule path 'third_party/libdatachannel/deps/plog': checked out 'd8461e9d473e59fbcc1f79eee021550dcf81e618'
Submodule path 'third_party/libdatachannel/deps/usrsctp': checked out '7c31bd35c79ba67084ce029511193a19ceb97447'
Submodule path 'third_party/libdatachannel/deps/json': checked out '4f8fba14066156b73f1189a2b8bd568bde5284c5'
Failed to recurse into submodule path 'third_party/libdatachannel'
make: *** [Makefile:19: install] Error 1
pi@mainsail:~/crowsnest $
tight sandal
#

That appears when running the above chain of commands?

obtuse copper
#

curently runing your last command

#

and it was succesfully libdatachannel

#

continuing

#

it donwloads with 1.2 Mb/s so internet should be enough

#

i tink it was something else

tight sandal
#

Might be a corrupted repo. Maybe the same thing happened to your ustreamer 🤷‍♂️

obtuse copper
#
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed
fatal: clone of 'https://github.com/nlohmann/json.git' into submodule path '/home/pi/crowsnest/bin/camera-streamer/third_party/libdatachannel/deps/json' failed
Failed to clone 'deps/json' a second time, aborting
Failed to recurse into submodule path 'third_party/libdatachannel'
make: *** [Makefile:19: install] Error 1
pi@mainsail:~/crowsnest $
#

this one failed now

#

is it important? should i Re-run the process?

tight sandal
#

Ok, I get a similar issue on my end. I recommend to reflash again but don't update anything besides the system packages. There might be issues with github right now

obtuse copper
#

what to reflash?

#

sd card with mainsail?

tight sandal
#

Yes, sdcard with MainsailOS

obtuse copper
tight sandal
#

Let us hope the best 😄

obtuse copper
#

definetly for tomorrow

#

the chances are that i do the same thing and same result

#

i am caling it a day and try again tomorrow

#

will you pe ON?

#

my time is now 22:48, so maybe tomorro 19:00 ? 🙂

#

you are very helpful for me

tight sandal
#

I'm in the same timezone ^^
So yeah, I most likely be online at that time

obtuse copper
tight sandal
#

Me too

obtuse copper
#

but my german is a little weak

#

I am located close to Stuttgart

tight sandal
#

I'm a little bit further north, located in Unterfranken

obtuse copper
#

See you tomorrow buddy

#

take care and again, thank you fot the help and time! much appreciated

obtuse copper
#

Hello my friend

#

i did installed crowsnest again

#

and with ustreamer everything works great

#

i have fully operational klipperscreen with dsi display, and fully operational webcam 1920x1080 15fps

#

with legacy ofcourse