stefanpartheym / archlinux-ipu6-webcam

Easy installation for patched Intel IPU6 camera drivers
148 stars 18 forks source link

Webcam not working on LTS kernel #90

Closed alba4k closed 2 weeks ago

alba4k commented 3 months ago

immagine

test.sh output ``` Enter Password or Place finger on fingerprint reader: Setting pipeline to PAUSED ... [08-12 13:11:31.66] CamHAL[INF] aiqb file name ov01a10.aiqb [08-12 13:11:31.67] CamHAL[INF] aiqb file name ov01a10.aiqb [08-12 13:11:31.68] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0. [08-12 13:11:31.68] CamHAL[ERR] GetControl: Device node /dev/v4l-subdev16 IOCTL VIDIOC_G_EXT_CTRLS error: Invalid argument Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock ^Chandling interrupt. Interrupt: Stopping pipeline ... Execution ended after 0:00:08.512265603 Setting pipeline to NULL ... Caught SIGSEGV #0 0x00007081ee50ec70 in ?? () from /usr/lib/libc.so.6 #1 0x00007081ee515b68 in pthread_mutex_lock () from /usr/lib/libc.so.6 #2 0x00007081ee8d8bf6 in gst_pad_stop_task () from /usr/lib/libgstreamer-1.0.so.0 #3 0x00007081ee048e91 in ?? () from /usr/lib/gstreamer-1.0/libgsticamerasrc.so #4 0x00007081ee04f671 in ?? () from /usr/lib/gstreamer-1.0/libgsticamerasrc.so #5 0x00007081ee8c9c1c in ?? () from /usr/lib/libgstreamer-1.0.so.0 #6 0x00007081ee8ca919 in gst_pad_set_active () from /usr/lib/libgstreamer-1.0.so.0 #7 0x00007081ee8aec9d in ?? () from /usr/lib/libgstreamer-1.0.so.0 #8 0x00007081ee8bb3fd in gst_iterator_fold () from /usr/lib/libgstreamer-1.0.so.0 #9 0x00007081ee934bbf in ?? () from /usr/lib/libgstreamer-1.0.so.0 #10 0x00007081ee8aed69 in ?? () from /usr/lib/libgstreamer-1.0.so.0 #11 0x00007081ee8af03e in ?? () from /usr/lib/libgstreamer-1.0.so.0 #12 0x00007081ee04cb4d in ?? () from /usr/lib/gstreamer-1.0/libgsticamerasrc.so #13 0x00007081ee03699c in ?? () from /usr/lib/gstreamer-1.0/libgsticamerasrc.so #14 0x00007081ee8ae026 in gst_element_change_state () from /usr/lib/libgstreamer-1.0.so.0 #15 0x00007081ee8ae932 in ?? () from /usr/lib/libgstreamer-1.0.so.0 #16 0x00007081ee88468e in ?? () from /usr/lib/libgstreamer-1.0.so.0 #17 0x00007081ee8ae026 in gst_element_change_state () from /usr/lib/libgstreamer-1.0.so.0 #18 0x00007081ee8ae0b9 in gst_element_change_state () from /usr/lib/libgstreamer-1.0.so.0 #19 0x00007081ee8ae932 in ?? () from /usr/lib/libgstreamer-1.0.so.0 #20 0x0000577b3a39aad3 in ?? () #21 0x00007081ee4a3e08 in ?? () from /usr/lib/libc.so.6 #22 0x00007081ee4a3ecc in __libc_start_main () from /usr/lib/libc.so.6 #23 0x0000577b3a398055 in ?? () Spinning. Please run 'gdb gst-launch-1.0 18129' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core. ^C⏎ ```
systemctl status v4l2-relayd ``` ● v4l2-relayd.service - v4l2-relay daemon service Loaded: loaded (/usr/lib/systemd/system/v4l2-relayd.service; enabled; preset: disabled) Active: active (running) since Mon 2024-08-12 13:08:43 CEST; 5min ago Invocation: 1489ff05b19b409689846b696981338d Process: 1047 ExecCondition=/usr/bin/test -n ${VIDEOSRC} (code=exited, status=0/SUCCESS) Process: 1111 ExecCondition=/usr/bin/test -n $FORMAT (code=exited, status=0/SUCCESS) Process: 1137 ExecCondition=/usr/bin/test -n $WIDTH (code=exited, status=0/SUCCESS) Process: 1155 ExecCondition=/usr/bin/test -n $HEIGHT (code=exited, status=0/SUCCESS) Process: 1172 ExecCondition=/usr/bin/test -n $FRAMERATE (code=exited, status=0/SUCCESS) Process: 1182 ExecCondition=/usr/bin/test -n ${CARD_LABEL} (code=exited, status=0/SUCCESS) Main PID: 1190 (v4l2-relayd) Tasks: 5 (limit: 18691) Memory: 42.3M (peak: 45.8M swap: 672K swap peak: 2.5M zswap: 102.8K) CPU: 439ms CGroup: /system.slice/v4l2-relayd.service └─1190 /usr/bin/v4l2-relayd -i icamerasrc -o "appsrc name=appsrc caps=video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! videoconvert ! v4l2sink name=v4l2sink device=> ago 12 13:08:43 dell-xps systemd[1]: Starting v4l2-relay daemon service... ago 12 13:08:43 dell-xps systemd[1]: Started v4l2-relay daemon service. ago 12 13:08:43 dell-xps (sh)[1190]: v4l2-relayd.service: Referenced but unset environment variable evaluates to an empty string: SPLASHSRC ```

All I get in obs is a black screen, but I think I saw the led indicator turn on for a split second when the laptop booted. Can't replicate by restarting v4l2-relays tho

nathanael-h commented 2 months ago

Hello, I downgraded to a previous linux-lts kernel and headers that are supported (cf. README) and it works (at least in Chromium and Firefox.

sudo pacman -U https://archive.archlinux.org/packages/l/linux-lts/linux-lts-6.6.31-1-x86_64.pkg.tar.zst https://archive.archlinux.org/packages/l/linux-lts-headers/linux-lts-headers-6.6.31-1-x86_64.pkg.tar.zst

Be careful when downgrading package, here is the doc https://wiki.archlinux.org/title/Arch_Linux_Archive#How_to_downgrade_one_package :wink:

alba4k commented 1 month ago

I mean, sure, but it's weird that they won't work on the latest lts (currently 6.6.52)

stefanpartheym commented 1 month ago

Hi @alba4k,

is this still an issue with current LTS kernel 6.6.56-1-lts? Classic statement: "It works on my machine."

I must admit though, I did not try to reinstall since a few versions. Don't remember when though. But as I said, it works for me. The modules are built successfully for my new LTS kernel whenever I update.

alba4k commented 1 month ago

Let me try.

alba4k commented 1 month ago
==> Making package: ipu6-camera-bin r84.98ca6f2-1 (Fri Oct 11 20:38:22 2024)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating ipu6-camera-bins git repo...
==> Validating source files with sha256sums...
    ipu6-camera-bins ... Skipped
==> Extracting sources...
  -> Creating working copy of ipu6-camera-bins git repo...
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
cp: cannot stat 'ipu6-camera-bins/lib/ipu_adl/pkgconfig': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

while building, not sure why ?

stefanpartheym commented 1 month ago

Hmm, thats weird.

I checked my local repo for any changes:

diff --git a/intel-ipu6ep-camera-bin/PKGBUILD b/intel-ipu6ep-camera-bin/PKGBUILD
index d80ecd4..29f4b54 100644
--- a/intel-ipu6ep-camera-bin/PKGBUILD
+++ b/intel-ipu6ep-camera-bin/PKGBUILD
@@ -4,7 +4,7 @@
 pkgbase=ipu6-camera-bin
 pkgname=intel-ipu6ep-camera-bin-fix
 _pkgname=ipu6-camera-bins
-pkgver=r73.af5ba0c
+pkgver=r79.987b09a
 pkgrel=1
 pkgdesc="Intel IPU6 camera binaries (Alder Lake)"
 arch=('x86_64')

It took a different pkgver for ipu6-camera-bin. I think this happens automatically with yay. Maybe you need the "new" pkgver.

But honestly, I have no idea...

alba4k commented 1 month ago

I honestly don't care enough about the webcam to worry about this now ahahaha

stefanpartheym commented 1 month ago

Hahaha yeah don't worry :smile:

hazimimdnazri commented 1 month ago

@stefanpartheym having similar issue with this on fresh arch installation with kernel 6.6.56-1-lts

emilrueh commented 4 weeks ago

Hi, to chip in a bit, I'm on x1 carbon gen10 and kernel 6.11.4 so I thought to roll back to LTS kernel 6.6.57-1-lts.

When running ./install.sh I get this:

ERROR: Failed to build/install: intel-ipu6ep-camera-bin

struan-robertson commented 3 weeks ago

@stefanpartheym is this still working for you on kernel 6.6.57-1-lts? I have got all the packages building for the latest commits on their repos, but without a working camera. If it is still working for you on the latest lts kernel, we could use the package versions you have installed and it should work for everyone.

stefanpartheym commented 3 weeks ago

@struan-robertson As mentioned in https://github.com/stefanpartheym/archlinux-ipu6-webcam/issues/86#issuecomment-2418748836, I have the exact same issue now. No camera working even on LTS kernel.

No fix so far, as I'm aware. Pretty annoying tbh. I tried to get it working (https://github.com/stefanpartheym/archlinux-ipu6-webcam/issues/86#issuecomment-2424199389) which was not actually successful.

victornoel commented 3 weeks ago

Hi @stefanpartheym, about that error cp: cannot stat 'ipu6-camera-bins/lib/ipu_adl/pkgconfig': No such file or directory, the reason is that they finally fixed that "shit" (cf the comment in the PKGBUILD: https://github.com/stefanpartheym/archlinux-ipu6-webcam/blob/main/intel-ipu6ep-camera-bin/PKGBUILD#L30).

Still, even with fixing this (I just removed the ipu_adl related lines), I'm getting now the following error from the kernel:

➜  ~ sudo dmesg| grep ipu
[   22.180146] intel-ipu6 0000:00:05.0: enabling device (0000 -> 0002)
[   22.180746] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x6)
[   22.180773] intel-ipu6 0000:00:05.0: physical base address 0x6076000000
[   22.180775] intel-ipu6 0000:00:05.0: mapped as: 0x00000000c64ee155
[   22.181294] intel-ipu6 0000:00:05.0: Unable to set secure mode
[   22.181297] intel-ipu6 0000:00:05.0: IPU in non-secure mode
[   22.181299] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0
[   22.181301] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff
[   22.181819] intel-ipu6 0000:00:05.0: Skip ipc reset for non-secure mode
[   22.181822] intel-ipu6 0000:00:05.0: IPC reset done
[   22.181823] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin
[   22.183790] intel-ipu6 0000:00:05.0: Direct firmware load for intel/ipu6ep_fw.bin failed with error -2
[   22.183795] intel-ipu6 0000:00:05.0: Requesting signed firmware failed
[   22.184784] intel-ipu6: probe of 0000:00:05.0 failed with error -2

The firmware is present as expected (from that intel-ipu6ep-camera-bin-fix package) but I noticed that linux-firmware was also providing similar file (but compressed). So I tried not to include the firmware files from intel-ipu6ep-camera-bin-fix package but the error is the same.

I'm not sure what to do more now.

struan-robertson commented 3 weeks ago

I have everything working for me now and have created a pull request #92. Hopefully it works for everyone :)

Mengesh commented 3 weeks ago

I can confirm that it works on Lenovo ThinkPad X1 Carbon Gen 10 kernel 6.6.58-1-lts.

Thank you!!!

stefanpartheym commented 3 weeks ago

Partially works for me: test.sh gives me camera output, but using the webcam in the browser crashes v4l2-relayd service. But with the suggested workaround from @struan-robertson I can also use my webcam in the browser (without v4l2-relayd): sudo gst-launch-1.0 icamerasrc ! video/x-raw,format=NV12,width=1280,height=720 ! videoconvert ! v4l2sink name=v4l2sink device=/dev/video0

I merged PR #92 .

stefanpartheym commented 3 weeks ago

Ok, nevermind. Fixed the v4l2-relayd service file as suggested in #71 with d1c471c. It seems as this was only an issue on Wayland, so I guess @struan-robertson and @Mengesh you guys are on X11 – right?

Anyways, please test the latest commit with your latest LTS kernel and let me know if it works for you.

struan-robertson commented 3 weeks ago

@stefanpartheym strangely no, I'm on Wayland also. I use Sway so maybe it or its underlying library wlroots were not susceptible to the crash.

Anyway, glad it is all working for you! I have tested the latest commit and all works for me as well.

stefanpartheym commented 3 weeks ago

@struan-robertson Ok that's actually weird. But I'm using GNOME, so maybe that is the issue. Anyways, thanks for your PR :)

Will close this issue, once enough feedback is available. @alba4k Let me know if it works for you – thanks!

alba4k commented 3 weeks ago

Sure, I wasn't home this week so I couldn't check this out

will let you know this evening or tomorrow

Mengesh commented 3 weeks ago

@stefanpartheym I'm also on wayland+sway. I did a fresh installation using ./install.sh -s with the latest commit. The camera works in both firefox and chromium. But it does not work after suspend.

alba4k commented 3 weeks ago

Also, since I haven't used this in a while, are the flags for hibernation workaround and format conversion still needed? or does hibernation work fine now

victornoel commented 3 weeks ago

I just tested latest main branch on a XPS 13 (9315) and it works well

(edit: I did not test hibernation though, I don't use it)

alba4k commented 3 weeks ago

with no install flags?

victornoel commented 3 weeks ago

with no install flags?

If the question is for me, then no, just ./install.sh after removing any already built package to start fresh

ferpizza commented 3 weeks ago

I'm getting some partial success on an ThinkPad X1 Gen 11th

Installed with ./install.sh -as Then rebooted twice, and still not working

So, getting inspiration on other issues, I started cycling the ov2740 kernel module, running this command as root

modprobe -r ov2740 && modprobe ov2740

I had to run this command a number of times (between 5 and 10, maybe more) until I get

# modprobe -r ov2740 && modprobe ov2740
modprobe: FATAL: Module ov2740 is in use.

At this time, I have to restart the V4L Relay service with

# systemctl restart v4l2-relayd.service

And then, it works as expected

This survived rebooting, but it didn't survive a full poweroff ... so I have to run this on each new boot.

Not ideal, but much better than the non-working cammera situation I was on.

Any ideas on how to make this easier are appreciated :)

EDIT:

FYI, I'm using an EndeavorOS distro, with Wayland and KDE Plasma

alba4k commented 3 weeks ago

mind checking wether -a and/or -s are still needed?

ferpizza commented 3 weeks ago

@alba4k , if that question is for me, not sure how I would do that (don't really want to mess this up)

I was just following comments on other closed Issues related to X1, but some time ago I got it working without any flags (but that time didn't stick) ... so not sure they are at all needed, but in my case there was no harm in using them

alba4k commented 3 weeks ago

@stefanpartheym test.sh works, obs and firefox both get a black image

stefanpartheym commented 3 weeks ago

I'm getting some partial success on an ThinkPad X1 Gen 11th

@ferpizza How do you test, whether your camera works or not? I recommend always trying test.sh first, before checking in any browsers and other apps.

stefanpartheym commented 3 weeks ago

@stefanpartheym test.sh works, obs and firefox both get a black image

@alba4k From what I learned, this seems to be an issue with v4l2-relayd. I had the same issue earlier this day. That's why I committed d1c471caf4099e25d392ad23a3410706692a8701 as it was suggested in #71 . Have you checked systemctl status v4l2-relayd or dmesg output?

ferpizza commented 3 weeks ago

@ferpizza How do you test, whether your camera works or not?

After successful ./test.sh I've been using https://webcamtests.com/ from FireFox

stefanpartheym commented 3 weeks ago

Ok, so ./test.sh gives you the expected camera output right? Seems like the same issue that @alba4k has too. As mentioned in my comment above, I had the same issue earlier this day. Please check the output of systemctl status v4l2-relayd.

alba4k commented 3 weeks ago

Nothing unusual appears in that output

systemctl status v4l2-relayd ``` ● v4l2-relayd.service - v4l2-relay daemon service Loaded: loaded (/usr/lib/systemd/system/v4l2-relayd.service; enabled; preset: disabled) Drop-In: /etc/systemd/system/v4l2-relayd.service.d └─override.conf Active: active (running) since Sun 2024-10-27 10:55:00 CET; 5min ago Invocation: 68df1e4b9888403eb119d4ea80f03d66 Process: 930 ExecCondition=/usr/bin/test -n ${VIDEOSRC} (code=exited, status=0/SUCCESS) Process: 965 ExecCondition=/usr/bin/test -n $FORMAT (code=exited, status=0/SUCCESS) Process: 972 ExecCondition=/usr/bin/test -n $WIDTH (code=exited, status=0/SUCCESS) Process: 994 ExecCondition=/usr/bin/test -n $HEIGHT (code=exited, status=0/SUCCESS) Process: 1011 ExecCondition=/usr/bin/test -n $FRAMERATE (code=exited, status=0/SUCCESS) Process: 1022 ExecCondition=/usr/bin/test -n ${CARD_LABEL} (code=exited, status=0/SUCCESS) Main PID: 1035 (v4l2-relayd) Tasks: 5 (limit: 18697) Memory: 66.8M (peak: 81.7M) CPU: 229ms CGroup: /system.slice/v4l2-relayd.service └─1035 /usr/bin/v4l2-relayd -i icamerasrc -o "appsrc name=appsrc caps=video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! videoconvert ! video/x-raw,format=YUY2 ! v4l2> ott 27 10:55:00 dell-xps systemd[1]: Starting v4l2-relay daemon service... ott 27 10:55:00 dell-xps systemd[1]: Started v4l2-relay daemon service. ott 27 10:55:00 dell-xps (sh)[1035]: v4l2-relayd.service: Referenced but unset environment variable evaluates to an empty string: SPLASHSRC ```
struan-robertson commented 3 weeks ago

@alba4k what output do you get if you stop the v4l2-relayd service and then run sudo GST_DEBUG=2 v4l2-relayd -d -i icamerasrc -o "appsrc name=appsrc caps=video/x-ra w,format=NV12,width=1280,height=720,framerate=30/1 is-live=true ! queue ! videoconvert ! v4l2sink name=v4l2sink device=/dev/video0"

alba4k commented 2 weeks ago

the following

``` 0:00:00.094159661 35471 0x603d7c54a380 WARN frei0r gstfrei0r.c:515:register_plugin: Failed to initialize plugin 0:00:00.131205422 35471 0x603d7c54a380 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.236314899 35471 0x603d7c54a380 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.295865131 35471 0x603d7c54a380 WARN frei0r gstfrei0r.c:515:register_plugin: Failed to initialize plugin 0:00:00.296132213 35471 0x603d7c54a380 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.296282363 35471 0x603d7c54a380 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.296464763 35471 0x603d7c54a380 WARN frei0r gstfrei0r.c:515:register_plugin: Failed to initialize plugin 0:00:00.296646363 35471 0x603d7c54a380 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.296770424 35471 0x603d7c54a380 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.371346243 35470 0x5948f34807c0 ERROR GST_PIPELINE subprojects/gstreamer/gst/parse/grammar.y:629:gst_parse_element_make: no element "w" 0:00:00.371366189 35470 0x5948f34807c0 WARN default subprojects/gstreamer/gst/parse/grammar.y:1566:priv_gst_parse_yyerror: Error during parsing: syntax error 0:00:00.371371134 35470 0x5948f34807c0 ERROR GST_PIPELINE subprojects/gstreamer/gst/parse/grammar.y:1490:priv_gst_parse_yyparse: syntax error 0:00:00.371375385 35470 0x5948f34807c0 ERROR GST_PIPELINE subprojects/gstreamer/gst/parse/grammar.y:1490:priv_gst_parse_yyparse: syntax error 0:00:00.371379729 35470 0x5948f34807c0 ERROR GST_PIPELINE subprojects/gstreamer/gst/parse/grammar.y:1490:priv_gst_parse_yyparse: syntax error 0:00:00.371383626 35470 0x5948f34807c0 ERROR GST_PIPELINE subprojects/gstreamer/gst/parse/grammar.y:1490:priv_gst_parse_yyparse: syntax error 0:00:00.371387267 35470 0x5948f34807c0 ERROR GST_PIPELINE subprojects/gstreamer/gst/parse/grammar.y:1490:priv_gst_parse_yyparse: syntax error 0:00:00.419233237 35470 0x7c3098000f50 WARN videodecoder gstvideodecoder.c:2799:gst_video_decoder_chain: Received buffer without a new-segment. Assuming timestamps start from 0. 0:00:00.422006628 35470 0x7c3098001130 WARN imagefreeze gstimagefreeze.c:1166:gst_image_freeze_src_loop: error: Internal data stream error. 0:00:00.422024546 35470 0x7c3098001130 WARN imagefreeze gstimagefreeze.c:1166:gst_image_freeze_src_loop: error: streaming stopped, reason not-linked (-1) 0:00:00.422198448 35470 0x5948f34807c0 ERROR V4L2_RELAYD src/v4l2-relayd.c:146:backend_pipeline_bus_call: Internal data stream error. ```
struan-robertson commented 2 weeks ago

Sorry I accidentally added a space in the command. Try running sudo GST_DEBUG=2 v4l2-relayd -d -i icamerasrc -o "appsrc name=appsrc caps=video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 is-live=true ! queue ! videoconvert ! v4l2sink name=v4l2sink device=/dev/video0"

alba4k commented 2 weeks ago

will do in 10h or so once I'm back home

hazimimdnazri commented 2 weeks ago

I got this when running ./test.sh

Setting pipeline to PAUSED ...
[10-29 03:21:20.960] CamHAL[INF] aiqb file name ov13b10.aiqb
[10-29 03:21:20.960] CamHAL[INF] aiqb file name ov13b10.aiqb
[10-29 03:21:20.961] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.961] CamHAL[INF] aiqb file name ov13b10.aiqb
[10-29 03:21:20.961] CamHAL[INF] aiqb file name ov13b10.aiqb
[10-29 03:21:20.961] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.961] CamHAL[INF] aiqb file name ov8856.aiqb
[10-29 03:21:20.961] CamHAL[INF] aiqb file name ov8856.aiqb
[10-29 03:21:20.961] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.961] CamHAL[INF] aiqb file name ov8856.aiqb
[10-29 03:21:20.961] CamHAL[INF] aiqb file name ov8856.aiqb
[10-29 03:21:20.961] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.961] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-29 03:21:20.961] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-29 03:21:20.962] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.962] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-29 03:21:20.962] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-29 03:21:20.962] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.962] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[10-29 03:21:20.962] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[10-29 03:21:20.963] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_1SG204N3_ADL.aiqb
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_1SG204N3_ADL.aiqb
[10-29 03:21:20.963] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_CIFME14_ADL.aiqb
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_CIFME14_ADL.aiqb
[10-29 03:21:20.963] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[10-29 03:21:20.963] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_1SG204N3_ADL.aiqb
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_1SG204N3_ADL.aiqb
[10-29 03:21:20.963] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_CIFME14_ADL.aiqb
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV02C10_CIFME14_ADL.aiqb
[10-29 03:21:20.963] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
[10-29 03:21:20.963] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
[10-29 03:21:20.963] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.963] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[10-29 03:21:20.963] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[10-29 03:21:20.963] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.963] CamHAL[INF] aiqb file name HM2170_CJFME18_ADL.aiqb
[10-29 03:21:20.964] CamHAL[INF] aiqb file name HM2170_CJFME18_ADL.aiqb
[10-29 03:21:20.964] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.964] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[10-29 03:21:20.964] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[10-29 03:21:20.964] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.964] CamHAL[INF] aiqb file name HM2170_CJFME18_ADL.aiqb
[10-29 03:21:20.964] CamHAL[INF] aiqb file name HM2170_CJFME18_ADL.aiqb
[10-29 03:21:20.964] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.964] CamHAL[INF] aiqb file name HI556_1BG502T3_ADL.aiqb
[10-29 03:21:20.964] CamHAL[INF] aiqb file name HI556_1BG502T3_ADL.aiqb
[10-29 03:21:20.964] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.964] CamHAL[INF] aiqb file name HI556_CJFLE25_ADL.aiqb
[10-29 03:21:20.964] CamHAL[INF] aiqb file name HI556_CJFLE25_ADL.aiqb
[10-29 03:21:20.964] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.964] CamHAL[INF] aiqb file name ov01a1s.aiqb
[10-29 03:21:20.964] CamHAL[INF] aiqb file name ov01a1s.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name OV08A10_YHUT_ADL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name OV08A10_YHUT_ADL.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.965] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.966] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.966] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.966] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.966] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.966] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.966] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.966] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.966] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.966] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[10-29 03:21:20.966] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.966] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.966] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.966] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.966] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.966] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.967] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.967] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.967] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.967] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.967] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.967] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.967] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.967] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.967] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.967] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.967] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.967] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[10-29 03:21:20.967] CamHAL[ERR] invalid media format, default value used.
[10-29 03:21:20.967] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.967] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.967] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.967] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[10-29 03:21:20.967] CamHAL[ERR] Failed to find DevName for cameraId: 0, get video node: ov13b10 , devname: /dev/v4l-subdev1
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[10-29 03:21:20.973] CamHAL[ERR] Get entity fail for calling getEntityById
[10-29 03:21:20.973] CamHAL[ERR] Get entity fail for calling getEntityById
[10-29 03:21:20.973] CamHAL[ERR] setup Link ov13b10  [-1:0] ==> Intel IPU6 CSI-2  [-1x0] enable 1 failed.
[10-29 03:21:20.973] CamHAL[ERR] set MediaCtlConf McLink failed: ret = -1
[10-29 03:21:20.973] CamHAL[ERR] set up mediaCtl failed
[10-29 03:21:20.973] CamHAL[ERR] @configure Device Configure failed
[10-29 03:21:20.973] CamHAL[ERR] failed to config streams.
ERROR: from element /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0: src pad: Internal data flow error.
Additional debug info:
gstcambasesrc.cpp(3143): gst_cam_base_src_loop (): /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.003655492
Setting pipeline to NULL ...
Freeing pipeline ...

Dell XPS 9340, any idea?

struan-robertson commented 2 weeks ago

@hazimimdnazri looks like an issue on the intel side of things. What do you get if you run sudo dmesg | grep ipu6

Mengesh commented 2 weeks ago

I'm sorry to interrupt, but I'm experiencing the exact same issue after waking from suspend. Reminder: the camera works on a fresh boot.

Here's my dmesg output after suspend

sudo dmesg | grep ipu6 ``` shell [ 11.865019] intel-ipu6 0000:00:05.0: enabling device (0000 -> 0002) [ 11.865270] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 11.865290] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 11.865292] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 11.865355] intel-ipu6 0000:00:05.0: IPU in secure mode [ 11.865357] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 11.865358] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 11.880236] intel-ipu6 0000:00:05.0: IPC reset done [ 11.880239] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 11.882232] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 11.886831] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 11.886850] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 11.886851] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 11.886898] intel-ipu6 0000:00:05.0: IPU in secure mode [ 11.886901] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 11.886903] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 11.893637] intel-ipu6 0000:00:05.0: IPC reset done [ 11.893640] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 11.894366] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 11.908857] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 11.908876] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 11.908878] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 11.908937] intel-ipu6 0000:00:05.0: IPU in secure mode [ 11.908940] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 11.908941] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 11.911001] intel-ipu6 0000:00:05.0: IPC reset done [ 11.911005] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 11.911455] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 11.920473] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 11.920489] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 11.920491] intel-ipu6 0000:00:05.0: mapped as: 0x00000000187f8555 [ 11.920638] intel-ipu6 0000:00:05.0: IPU in secure mode [ 11.920640] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 11.920641] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 11.923407] intel-ipu6 0000:00:05.0: IPC reset done [ 11.923409] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 11.923822] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 11.931430] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 11.931441] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 11.931442] intel-ipu6 0000:00:05.0: mapped as: 0x0000000036662084 [ 11.931490] intel-ipu6 0000:00:05.0: IPU in secure mode [ 11.931491] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 11.931492] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 11.933342] intel-ipu6 0000:00:05.0: IPC reset done [ 11.933347] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 11.933727] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 11.942565] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 11.942573] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 11.942574] intel-ipu6 0000:00:05.0: mapped as: 0x0000000074fae30f [ 11.942979] intel-ipu6 0000:00:05.0: IPU in secure mode [ 11.942980] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 11.942981] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 11.944832] intel-ipu6 0000:00:05.0: IPC reset done [ 11.944837] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 11.945136] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 11.964633] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 11.964651] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 11.964653] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 11.964709] intel-ipu6 0000:00:05.0: IPU in secure mode [ 11.964710] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 11.964712] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 11.966553] intel-ipu6 0000:00:05.0: IPC reset done [ 11.966564] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 11.966936] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 11.971403] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 11.971414] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 11.971415] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 11.971443] intel-ipu6 0000:00:05.0: IPU in secure mode [ 11.971444] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 11.971445] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 11.973254] intel-ipu6 0000:00:05.0: IPC reset done [ 11.973255] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 11.973599] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.023874] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.023915] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.023919] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.025819] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.025825] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.025828] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.028628] intel-ipu6 0000:00:05.0: IPC reset done [ 12.028633] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.029471] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.074529] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.074549] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.074550] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.074690] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.074692] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.074693] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.076531] intel-ipu6 0000:00:05.0: IPC reset done [ 12.076538] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.076891] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.104113] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.104134] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.104135] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.104248] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.104251] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.104252] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.106069] intel-ipu6 0000:00:05.0: IPC reset done [ 12.106071] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.106423] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.157228] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.157257] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.157258] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.157399] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.157400] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.157401] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.159688] intel-ipu6 0000:00:05.0: IPC reset done [ 12.159696] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.160080] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.199177] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.199212] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.199213] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.199283] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.199285] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.199286] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.201065] intel-ipu6 0000:00:05.0: IPC reset done [ 12.201068] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.201436] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.240828] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.240856] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.240858] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.240911] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.240913] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.240914] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.243896] intel-ipu6 0000:00:05.0: IPC reset done [ 12.243897] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.244278] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.274253] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.274286] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.274288] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.274325] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.274327] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.274328] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.276142] intel-ipu6 0000:00:05.0: IPC reset done [ 12.276143] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.276498] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.310091] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.310104] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.310105] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.310187] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.310191] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.310192] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.312206] intel-ipu6 0000:00:05.0: IPC reset done [ 12.312208] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.312591] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.324006] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.324017] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.324018] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.324056] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.324057] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.324058] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.325880] intel-ipu6 0000:00:05.0: IPC reset done [ 12.325881] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.326241] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.356464] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.356485] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.356488] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.356546] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.356548] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.356549] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.359239] intel-ipu6 0000:00:05.0: IPC reset done [ 12.359240] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.359570] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.366526] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.366544] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.366545] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.366577] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.366579] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.366580] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.368669] intel-ipu6 0000:00:05.0: IPC reset done [ 12.368671] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.368992] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.370283] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.370293] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.370294] intel-ipu6 0000:00:05.0: mapped as: 0x00000000187f8555 [ 12.370354] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.370355] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.370356] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.372670] intel-ipu6 0000:00:05.0: IPC reset done [ 12.372672] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.372966] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.417975] intel-ipu6 0000:00:05.0: Device 0x465d (rev: 0x2) [ 12.417997] intel-ipu6 0000:00:05.0: physical base address 0x603c000000 [ 12.417999] intel-ipu6 0000:00:05.0: mapped as: 0x000000000c6b453e [ 12.418032] intel-ipu6 0000:00:05.0: IPU in secure mode [ 12.418034] intel-ipu6 0000:00:05.0: IPU secure touch = 0x0 [ 12.418035] intel-ipu6 0000:00:05.0: IPU camera mask = 0xff [ 12.419845] intel-ipu6 0000:00:05.0: IPC reset done [ 12.419845] intel-ipu6 0000:00:05.0: cpd file name: intel/ipu6ep_fw.bin [ 12.420177] intel-ipu6 0000:00:05.0: FW version: 20230102 [ 12.422705] intel-ipu6 0000:00:05.0: Found supported sensor INT3474:01 [ 12.422854] intel-ipu6 0000:00:05.0: Connected 1 cameras [ 12.423771] intel-ipu6 0000:00:05.0: Sending BOOT_LOAD to CSE [ 12.433367] intel-ipu6 0000:00:05.0: Sending AUTHENTICATE_RUN to CSE [ 12.510582] intel-ipu6 0000:00:05.0: CSE authenticate_run done [ 12.510603] intel-ipu6 0000:00:05.0: IPU6-v3 driver version 1.0 [ 12.512442] intel-ipu6-isys intel-ipu6-isys0: bind ov2740 18-0036 nlanes is 2 port is 1 [ 12.516798] intel-ipu6-isys intel-ipu6-isys0: All sensor registration completed. [ 12.517035] intel-ipu6-psys intel-ipu6-psys0: pkg_dir entry count:8 [ 12.517211] intel-ipu6-psys intel-ipu6-psys0: psys probe minor: 0 [ 13.664943] intel-ipu6-isys intel-ipu6-isys0: isys port open ready failed -16 [ 13.664947] intel-ipu6-isys intel-ipu6-isys0: Device close failure: -16 [ 116.302733] intel-ipu6-isys intel-ipu6-isys0: stream on ov2740 18-0036 [ 116.364872] intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Multiple packet header errors detected [ 116.364876] intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Payload checksum (CRC) error [ 116.364877] intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Frame sync error [ 116.364878] intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Inter-frame long packet discarded [ 116.609630] intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Multiple packet header errors detected [ 116.609639] intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Payload checksum (CRC) error [ 116.609642] intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Inter-frame short packet discarded [ 116.609644] intel-ipu6-isys intel-ipu6-isys0: csi2-1 error: Inter-frame long packet discarded [ 178.692850] intel-ipu6-isys intel-ipu6-isys0: stream off ov2740 18-0036 [ 201.490287] intel-ipu6-isys intel-ipu6-isys0: unbind ov2740 18-0036 [ 201.535011] intel-ipu6 0000:00:05.0: IPU in secure mode [ 201.538417] intel-ipu6 0000:00:05.0: Sending BOOT_LOAD to CSE [ 201.547757] intel-ipu6 0000:00:05.0: Sending AUTHENTICATE_RUN to CSE [ 201.617355] intel-ipu6 0000:00:05.0: CSE authenticate_run done ```
struan-robertson commented 2 weeks ago

So for people who are unable to run the test.sh, there a couple things you could try.

@Mengesh I'm unsure why it would stop working after resuming from suspend. I do notice that your dmesg output says IPU in secure mode, whereas mine says IPU in non-secure mode and works after suspending.

alba4k commented 2 weeks ago

@struan-robertson not sure if still relevant but this is what I got

``` 0:00:00.095423029 664228 0x602b94952780 WARN frei0r gstfrei0r.c:515:register_plugin: Failed to initialize plugin 0:00:00.134893389 664228 0x602b94952780 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.221714351 664228 0x602b94952780 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.274610014 664228 0x602b94952780 WARN frei0r gstfrei0r.c:515:register_plugin: Failed to initialize plugin 0:00:00.274931741 664228 0x602b94952780 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.275077104 664228 0x602b94952780 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.275281257 664228 0x602b94952780 WARN frei0r gstfrei0r.c:515:register_plugin: Failed to initialize plugin 0:00:00.275470186 664228 0x602b94952780 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.275588178 664228 0x602b94952780 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.418046483 664227 0x6034fd5ef640 WARN default v4l2-utils.c:189:gst_v4l2_error: error: Device '/dev/video0' is not a output device. 0:00:00.418065253 664227 0x6034fd5ef640 WARN default v4l2-utils.c:192:gst_v4l2_error: error: Capabilities: 0x5200001 0:00:00.418117862 664227 0x6034fd5ef640 ERROR V4L2_RELAYD src/v4l2-relayd.c:392:output_pipeline_bus_call: Device '/dev/video0' is not a output device. (v4l2-relayd:664227): GLib-CRITICAL **: 18:34:59.678: g_source_remove: assertion 'tag > 0' failed (v4l2-relayd:664227): GLib-CRITICAL **: 18:34:59.678: g_source_remove: assertion 'tag > 0' failed (v4l2-relayd:664227): GStreamer-CRITICAL **: 18:34:59.678: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed (v4l2-relayd:664227): GStreamer-CRITICAL **: 18:34:59.678: gst_object_unref: assertion 'object != NULL' failed (v4l2-relayd:664227): GStreamer-CRITICAL **: 18:34:59.678: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed (v4l2-relayd:664227): GStreamer-CRITICAL **: 18:34:59.678: gst_object_unref: assertion 'object != NULL' failed ```
struan-robertson commented 2 weeks ago

@alba4k did you stop the v4l2-relayd service before running the command? I get the same error if I do not.

If you have stopped the service and are still getting the error, it looks like an issue with v4lloopback-dkms. Strange if so, since it is the upstream version packaged on the arch repositories. If you have stopped the service and are still getting the error, what output do you get from sudo GST_DEBUG=2 gst-launch-1.0 icamerasrc ! video/x-raw,format=NV12,width=1280,height=720 ! videoconvert ! v4l2sink name=v4l2sink device=/dev/video0 ?

alba4k commented 2 weeks ago

Right, sorry, my bad forgot about that

``` 0:00:00.065804982 785467 0x5c15b0528650 WARN frei0r gstfrei0r.c:515:register_plugin: Failed to initialize plugin 0:00:00.091794977 785467 0x5c15b0528650 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.164586620 785467 0x5c15b0528650 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.212129136 785467 0x5c15b0528650 WARN frei0r gstfrei0r.c:515:register_plugin: Failed to initialize plugin 0:00:00.212387543 785467 0x5c15b0528650 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.212532788 785467 0x5c15b0528650 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.212710730 785467 0x5c15b0528650 WARN frei0r gstfrei0r.c:515:register_plugin: Failed to initialize plugin 0:00:00.212874388 785467 0x5c15b0528650 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.213009507 785467 0x5c15b0528650 WARN frei0r gstfrei0r.c:485:register_plugin: Failed to load plugin 0:00:00.315580227 785466 0x798aa0000f50 WARN videodecoder gstvideodecoder.c:2799:gst_video_decoder_chain: Received buffer without a new-segment. Assuming timestamps start from 0. 0:00:00.328259195 785466 0x798aa0000b90 WARN v4l2allocator gstv4l2allocator.c:276:gst_v4l2_memory_group_new: Driver pretends buffer 0 is queued even if freshly created, this indicates a bug in the driver. 0:00:00.328292837 785466 0x798aa0000b90 WARN v4l2allocator gstv4l2allocator.c:276:gst_v4l2_memory_group_new: Driver pretends buffer 1 is queued even if freshly created, this indicates a bug in the driver. 0:00:00.328306714 785466 0x798aa0000b90 WARN v4l2bufferpool gstv4l2bufferpool.c:853:gst_v4l2_buffer_pool_start: Uncertain or not enough buffers, enabling copy threshold 0:00:00.333605031 785466 0x57d4de3d1f30 WARN V4L2_RELAYD src/v4l2-relayd.c:376:output_pipeline_bus_call: V4L2_EVENT_PRI_CLIENT_USAGE not supported [...] ```

the [...] is because the process keeps running but with no extra output

struan-robertson commented 2 weeks ago

@alba4k you are not running the patched version of v4l2-relayd. The patch 0001-Fix-V4L2_EVENT_PRI_CLIENT_USAGE-to-use-value-used-up.patch changes the macro defining V4L2_EVENT_PRI_CLIENT_USAGE so that it aligns with upstream v4l2loopback-dkms.

Make sure that you are on the latest commit of this repository, then run clean.sh to delete all built .zst package files. Just to be sure things get replaced, I would also run uninstall.sh to remove all the old packages from your system. Once that has done, reboot, then run install.sh and things should all work :)

alba4k commented 2 weeks ago

uhm yeah webcam works in obs and firefox too now

thanks I guess

Mengesh commented 2 weeks ago

@Mengesh I'm unsure why it would stop working after resuming from suspend. I do notice that your dmesg output says IPU in secure mode, whereas mine says IPU in non-secure mode and works after suspending.

It’s a tough guess, but could this be because my system is encrypted?

I'm suspending to RAM (deep sleep). Could that be a problem?

struan-robertson commented 2 weeks ago

Strange thing is my system is also encrypted, plus signed for secureboot. I tried temporarily disabling secureboot but it had no change. I think the main problem is that the Intel drivers are a buggy mess. Later versions with bug fixes will not be compatible with the 6.6 LTS kernel but also potentially not compatible with the latest kernel, since development seems quite Ubuntu focused. Your best bet is probably to try progressively later commits of all the packages and see if they work or not ,unfortunately. If you do this make sure to try and use commits from around the same time period as the packages need to be compatible with each other.

alba4k commented 2 weeks ago

my system is also signed for sb but not encrypted (which doesnt really make sense, I know, but whatever)