You are not logged in.

#51 2022-10-07 07:44:32

Mads
Member
Registered: 2022-07-16
Posts: 23

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

I'm having issues with kernel 6.0 and ipu6-drivers, it cannot find the sensor anymore. Created an issue here: https://github.com/intel/ipu6-drivers/issues/49

If anyone gets it working on kernel 6.0 please do tell!

Offline

#52 2022-10-09 17:58:26

potuz
Member
Registered: 2009-10-23
Posts: 89

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

I compiled 6.0-rc7 without issues. Only thing that doesn't work for me are headphones

Offline

#53 2022-10-11 12:14:37

Mads
Member
Registered: 2022-07-16
Posts: 23

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

They've merged ivsc-driver and ipu6-drivers, so if you do that when you're building it yourself it works.

Offline

#54 2022-10-15 13:33:16

Mads
Member
Registered: 2022-07-16
Posts: 23

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

I've resorted to only loading the modules within the script that starts the gst-launch script that transcodes the webcam stream, and unloads them afterwards. I don't think it's a good idea to have them modprobe'd when you're not using it, not before they are upstream.

My script looks like this now (I installed the gst plugins to /usr/local, that's why I have those GST_PLUGIN_SYSTEM_PATH environment variables):

#!/bin/bash
# sudo modprobe v4l2loopback video_nr=3 card_label=v4l2 exclusive_caps=1 max_buffers=2
sudo modprobe intel_vsc
sudo modprobe mei_csi
sudo modprobe mei_ace

sudo modprobe intel_ipu6
sudo modprobe intel_ipu6_isys
sudo modprobe intel_ipu6_psys

sudo modprobe ov01a10

sleep 1
GST_PLUGIN_SYSTEM_PATH="/usr/lib64/gstreamer-1.0:/usr/local/lib/gstreamer-1.0" sudo -E gst-launch-1.0 icamerasrc buffer-count=7 device-name=ov01a10-uf ! video/x-raw,format=YUY2,width=1280,height=720 ! v4l2sink device=/dev/video1

sleep 1
echo rmmod
sudo rmmod intel_ipu6_isys
sudo rmmod intel_ipu6_psys
sudo rmmod ov01a10
sudo rmmod intel_ipu6

sudo rmmod mei_ace
sudo rmmod mei_csi
sudo rmmod intel_vsc

Offline

#55 2022-10-15 20:12:41

Delorien123
Member
Registered: 2022-09-01
Posts: 2

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Hello I was able to successfully enable camera on my XPS 13 plus laptop using v4l2-relayd used by Ubuntu system. Here are the steps:

1) Properly build intel-ipu6-dkms-git module. According to readme in repo for successful build it is needed to clone ivsc-driver repository. Here is my updated PKGBUILD

pkgname=intel-ipu6-dkms-git
_pkgname=ipu6-drivers
pkgver=r60.4ef83f208
pkgrel=1
pkgdesc="Intel IPU6 camera drivers (DKMS)"
arch=('any')
url="https://github.com/intel/ipu6-drivers"
license=('unknown')
depends=('dkms')
makedepends=('git')
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd $_pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$srcdir/$_pkgname"
    git clone https://github.com/intel/ivsc-driver.git
    cp -r ivsc-driver/backport-include ivsc-driver/drivers ivsc-driver/include .
    rm -rf ivsc-driver
    sed -i "s/^PACKAGE_VERSION=\".*\"$/PACKAGE_VERSION=\"$pkgver\"/g" ./dkms.conf
}

package() {
    cd "$srcdir"
    install -dm755 "$pkgdir/usr/src"
    cp -rT "$_pkgname" "$pkgdir/usr/src/$_pkgname-$pkgver"
}

2) Fix intel-ipu6ep-camera-hal package, that install udev rules that broke system after reboot as it creates not working symbolic link. Here is updated PKGBUILD. Note that the file is original one but without installing udev ruiles

_ipu_ver=ipu6ep
pkgname=intel-ipu6ep-camera-hal-git
_pkgname=ipu6-camera-hal
pkgver=r40.5bc81d1
pkgrel=1
pkgdesc="Intel IPU6 camera HAL (Alder Lake)"
arch=('x86_64')
url="https://github.com/intel/ipu6-camera-hal"
license=('unknown')
depends=('intel-ipu6-dkms-git' 'intel-ipu6ep-camera-bin')
makedepends=('git')
provides=(ipu6-camera-hal)
conflicts=(intel-ipu6-camera-hal-git)
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() {
    cd $_pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cmake -B build -S "$_pkgname"       \
        -DCMAKE_BUILD_TYPE=Release      \
        -DIPU_VER=$_ipu_ver             \
        -DENABLE_VIRTUAL_IPU_PIPE=OFF   \
        -DUSE_PG_LITE_PIPE=ON           \
        -DUSE_STATIC_GRAPH=OFF          \
        -DCMAKE_INSTALL_PREFIX="/usr"
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
}

3) Install patched version of v4l2-looback kernel module and userspace tools. Note that v4l2-looback package in AUR repository does not contains necessary patch. Here is PKGBUILD file.

_pkgbase=v4l2loopback
pkgname=${_pkgbase}-dkms-git
pkgver=r10.b37d72d
pkgrel=1
pkgdesc="v4l2-loopback device"
url="https://github.com/umlaeute/v4l2loopback"
arch=('any')
license=('GPL2')
depends=('dkms')
makedepends=('git' 'help2man')
conflicts=("${_pkgbase}-dkms")
provides=("${_pkgbase}-dkms")
source=("git://git.launchpad.net/ubuntu/+source/v4l2loopback#branch=ubuntu/devel")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/${_pkgbase}"
    (
        set -o pipefail
        printf "r%s.%s" "10" "$(git rev-parse --short HEAD)"
    )
}

prepare() {
    cd "${srcdir}/${_pkgbase}"
    for patch in debian/patches/*.patch; do
        patch -p1 -i "$patch"
    done;
}

package() {
    cd "${srcdir}/${_pkgbase}"
    mkdir -p "${pkgdir}/usr/share/licenses/${_pkgbase}"
    cp -vf COPYING "${pkgdir}/usr/share/licenses/${_pkgbase}"
    make DESTDIR="${pkgdir}" PREFIX="/usr" install-utils install-man
    mkdir -p "${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
    cp -ar * "${pkgdir}/usr/src/${_pkgbase}-${pkgver}"
}

4) Install v4l2-relayd application

_pkgname=v4l2-relayd
_host=git.launchpad.net
pkgname=$_pkgname
pkgver=r42.6fd6b6a
pkgrel=1
pkgdesc="V4L2-relayd (Alder Lake)"
arch=('x86_64')
url="https://${_host}/${_pkgname}"
license=('unknown')
makedepends=('git')
source=("git://${_host}/${_pkgname}#tag=upstream/0.1.3")
sha256sums=('SKIP')

pkgver() {
    cd $_pkgname
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$_pkgname"
	./autogen.sh --prefix=/usr
	make
}


package() {
	cd "$_pkgname"
	make DESTDIR="$pkgdir/" install
	mv "$pkgdir/usr/etc" "$pkgdir/etc"
	sed -i 's/FORMAT=YUY2/FORMAT=NV12/g' "$pkgdir/etc/default/v4l2-relayd"
	sed -i 's/VIDEOSRC="videotestsrc"/VIDEOSRC="icamerasrc"/g' "$pkgdir/etc/default/v4l2-relayd"
	sed -i 's/DeviceAllow=char-video4linux//g' "$pkgdir/usr/lib/systemd/system/v4l2-relayd.service"
}

5) Enable v4l2-relayd service: "systemctl enable v4l2-relayd"

6) Reboot and enjoy.

Camera start automatically when some application make a request and stop when not used. Tested in Chrome and in MS Teams (electron version).

Last edited by Delorien123 (2022-10-15 20:19:18)

Offline

#56 2022-10-24 15:07:18

stefanpartheym
Member
Registered: 2022-10-24
Posts: 4

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Delorien123 wrote:

Hello I was able to successfully enable camera on my XPS 13 plus laptop using v4l2-relayd used by Ubuntu system. Here are the steps:
...

Hey Delorien123, thank you so much! Your PKGBUILDs work for me, even on kernel 6.0.2-arch1-1.

For anyone interested in a non-headache installation of the necessary drivers using the PKGBUILDs from above, I made this git repo (https://github.com/stefanpartheym/archlinux-ipu6-webcam) with an installation script. It also contains a README with further information about installing, uninstalling, testing and how to make the camera work in browsers as well as electron-based apps. Hope this is helpful.

Best regards
Stefan

Last edited by stefanpartheym (2022-10-24 15:12:38)

Offline

#57 2022-10-24 22:41:18

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

stefanpartheym wrote:
Delorien123 wrote:

Hello I was able to successfully enable camera on my XPS 13 plus laptop using v4l2-relayd used by Ubuntu system. Here are the steps:
...

Hey Delorien123, thank you so much! Your PKGBUILDs work for me, even on kernel 6.0.2-arch1-1.

For anyone interested in a non-headache installation of the necessary drivers using the PKGBUILDs from above, I made this git repo (https://github.com/stefanpartheym/archlinux-ipu6-webcam) with an installation script. It also contains a README with further information about installing, uninstalling, testing and how to make the camera work in browsers as well as electron-based apps. Hope this is helpful.

Best regards
Stefan

Thanks @Delorien123 for the PKGBUILDs and @stefanpartheym for wrapping them in a script - this is so helpful!

I ran your install.sh script and it installed everything successfully, but the camera stills doesn't work and I get "Failed to start Load Kernel Modules" when booting the computer, with those new lines in "journalctl -xb -p3" (I removed errors that were there before running the installation script):

Oct 25 01:28:49 itay kernel: BPF: [112356] ENUM perf_event_task_context 
Oct 25 01:28:49 itay kernel: BPF: size=4 vlen=4
Oct 25 01:28:49 itay kernel: BPF:  
Oct 25 01:28:49 itay kernel: BPF: Invalid btf_info kind_flag
Oct 25 01:28:49 itay kernel: BPF: 
Oct 25 01:28:49 itay systemd-modules-load[666]: Failed to insert module 'v4l2loopback': Invalid argument
Oct 25 01:28:49 itay systemd[1]: Failed to start Load Kernel Modules.
░░ Subject: A start job for unit systemd-modules-load.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit systemd-modules-load.service has finished with a failure.
░░ 
░░ The job identifier is 149 and the job result is failed.
Oct 25 01:28:50 itay kernel: BPF: [112082] ENUM perf_event_task_context 
Oct 25 01:28:50 itay kernel: BPF: size=4 vlen=4
Oct 25 01:28:50 itay kernel: BPF:  
Oct 25 01:28:50 itay kernel: BPF: Invalid btf_info kind_flag
Oct 25 01:28:50 itay kernel: BPF: 
Oct 25 01:28:50 itay systemd-udevd[739]: could not read from '/sys/module/pcc_cpufreq/initstate': No such device
Oct 25 01:28:50 itay kernel: BPF: [112297] Invalid kind:19
Oct 25 01:28:50 itay kernel: BPF: [112161] ENUM perf_event_task_context 
Oct 25 01:28:50 itay kernel: BPF: size=4 vlen=4
Oct 25 01:28:50 itay kernel: BPF:  
Oct 25 01:28:50 itay kernel: BPF: Invalid btf_info kind_flag
Oct 25 01:28:50 itay kernel: BPF: 
Oct 25 01:28:51 itay kernel: BPF: [112161] ENUM perf_event_task_context 
Oct 25 01:28:51 itay kernel: BPF: size=4 vlen=4
Oct 25 01:28:51 itay kernel: BPF:  
Oct 25 01:28:51 itay kernel: BPF: Invalid btf_info kind_flag
Oct 25 01:28:51 itay kernel: BPF: 
Oct 25 01:28:51 itay kernel: BPF: [112161] ENUM perf_event_task_context 
Oct 25 01:28:51 itay kernel: BPF: size=4 vlen=4
Oct 25 01:28:51 itay kernel: BPF:  
Oct 25 01:28:51 itay kernel: BPF: Invalid btf_info kind_flag
Oct 25 01:28:51 itay kernel: BPF: 
Oct 25 01:28:52 itay kernel: BPF: [112430] ENUM perf_event_task_context 
Oct 25 01:28:52 itay kernel: BPF: size=4 vlen=4
Oct 25 01:28:52 itay kernel: BPF:  
Oct 25 01:28:52 itay kernel: BPF: Invalid btf_info kind_flag
Oct 25 01:28:52 itay kernel: BPF: 

I'm using kernel 5.19.13 (I downgraded back from 6 after speakers and mic didn't work after the update).

Any ideas what could be the issue? Shall I try it with 6..?

thanks! :-)

Offline

#58 2022-10-25 08:34:56

stefanpartheym
Member
Registered: 2022-10-24
Posts: 4

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

itayf wrote:

I ran your install.sh script and it installed everything successfully, but the camera stills doesn't work and I get "Failed to start Load Kernel Modules" when booting the computer, with those new lines in "journalctl -xb -p3" (I removed errors that were there before running the installation script):

...
Oct 25 01:28:49 itay systemd[1]: Failed to start Load Kernel Modules.
...

I'm using kernel 5.19.13 (I downgraded back from 6 after speakers and mic didn't work after the update).

Any ideas what could be the issue? Shall I try it with 6..?

thanks! :-)

Hey @itayf,

I experienced the exact same issue when I temporarily downgraded back to kernel 5.19.13. That's why I moved back to kernel 6.0.2 and actually got my camera working.

Sorry for the off-topic, but you mentioned that you had issues with your speakers and mic after upgrading to kernel 6.0.2. What exactly was the issue? I also have issues with my internal speaker and mic, where sometimes after booting, the audio driver is not loaded properly. In this case i reload my audio driver and everything works properly:

sudo modprobe -r snd_sof_pci_intel_tgl && \
sudo modprobe snd_sof_pci_intel_tgl

Best regards
Stefan

Offline

#59 2022-10-26 12:05:44

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Thanks @stefanpartheym!

Okay, I've upgraded again to 6.0.2 and:

Regarding camera - the errors disappeared! But still no camera is detected by web browser, and when running "sudo -E LANG=C gst-launch-1.0 icamerasrc" the camera starts from a second (I can see its light indicator turns on) but the command ends almost immediately:

Setting pipeline to PAUSED ...
[10-26 14:57:23.848] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-26 14:57:23.848] CamHAL[INF] aiqb file name ov01a10.aiqb
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

(gst-launch-1.0:5209): GStreamer-CRITICAL **: 14:57:23.893: Registering meta implementation 'GstCamerasrcMeta' without init function
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-linked (-1)
Execution ended after 0:00:00.617138010
Setting pipeline to NULL ...
[10-26 14:57:24.567] CamHAL[WAR] ipu6_bb_video_bayer: wait executors timeout
Enter ia_aiq_get_aiqd_data()
Out-aiqd data size: 41480
[10-26 14:57:24.647] CamHAL[WAR] Failed to open file /run/camera/ov01a10-uf_VIDEO.aiqd, error No such file or directory
Freeing pipeline ...

(Running the full command "sudo -E LANG=C gst-launch-1.0 icamerasrc ! autovideoconvert ! waylandsink" from "test.sh" returned "WARNING: erroneous pipeline: no element "autovideoconvert"" so I removed the " ! autovideoconvert ! waylandsink" part)

Regarding sound - Thanks! reloading the driver did help to restore the sound big_smile But - the microphone, even though is now detected doesn't capture any sound (I of course made sure it's not muted). And do you just reload it every time you boot now?

Any thoughts on how to proceed?

Offline

#60 2022-10-26 12:27:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 18,209

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

The sound module loading issues should have patches in the 6.0.3-arch3 kernel in testing, maybe give those a spin.

Offline

#61 2022-10-26 13:39:35

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Thanks @V1del, I've just gave it a try and it's same the as 6.0.2 (No sound and mic on boot, and reloading the driver restores the sound only). The errors btw:

Oct 26 16:32:27 archlinux kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: can't connect DAI HDA0.OUT stream iDis>
Oct 26 16:32:27 archlinux kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to add widget id 0 type 27 name>
Oct 26 16:32:27 archlinux kernel: sof_sdw sof_sdw: ASoC: failed to load widget HDA0.OUT
Oct 26 16:32:27 archlinux kernel: sof_sdw sof_sdw: ASoC: topology: could not load header: -22
Oct 26 16:32:27 archlinux kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: tplg component load failed -22
Oct 26 16:32:27 archlinux kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: error: failed to load DSP topology -22
Oct 26 16:32:27 archlinux kernel: sof-audio-pci-intel-tgl 0000:00:1f.3: ASoC: error at snd_soc_component_probe on 000>
Oct 26 16:32:27 archlinux kernel: sof_sdw sof_sdw: ASoC: failed to instantiate card -22
Oct 26 16:32:27 archlinux kernel: sof_sdw sof_sdw: snd_soc_register_card failed -22

@stefanpartheym, actually I do have a warning when checking the service logs:

[itay@itay ~]$ journalctl -b -u v4l2-relayd
Oct 26 17:09:24 itay systemd[1]: Starting v4l2-relay daemon service...
Oct 26 17:09:24 itay systemd[1]: Started v4l2-relay daemon service.
Oct 26 17:09:24 itay v4l2-relayd[631]: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed

Last edited by itayf (2022-10-26 14:52:06)

Offline

#62 2022-10-26 20:12:13

acegallagher
Member
Registered: 2016-07-29
Posts: 10

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

@itayf from trying to work out issue with my IPU6 Alder Lake camera in a Nano X1 Gen2 , I've found some debug steps helpful.. running the gstreamer plugging with the GST_DEBUG env var set you can get much more information. Try a few settings but start here:

 sudo -E GST_DEBUG=3 gst-launch-1.0 icamerasrc ! autovideoconvert ! waylandsink 

Offline

#63 2022-10-26 22:24:23

bjesus
Member
Registered: 2007-04-06
Posts: 49

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

I'm trying to get this working on an X1 Yoga Gen 7. Following the setup script that @stefanpartheym made, I get this error when running test.sh (or gst-launch-1.0 icamerasrc directly). Did anyone else see this, or did anyone else manage to get this working on an X1 Yoga Gen 7?

archlinux-ipu6-webcam on  main ❯ ./test.sh
[sudo] password for user:
Setting pipeline to PAUSED ...
[10-27 00:19:13.718] CamHAL[INF] aiqb file name ov13b10.aiqb
[10-27 00:19:13.718] CamHAL[ERR] there is no aiqb file:ov13b10
[10-27 00:19:13.718] CamHAL[INF] aiqb file name ov13b10.aiqb
[10-27 00:19:13.718] CamHAL[ERR] there is no aiqb file:ov13b10
[10-27 00:19:13.718] CamHAL[INF] aiqb file name ov8856.aiqb
[10-27 00:19:13.718] CamHAL[ERR] there is no aiqb file:ov8856
[10-27 00:19:13.718] CamHAL[INF] aiqb file name ov8856.aiqb
[10-27 00:19:13.718] CamHAL[ERR] there is no aiqb file:ov8856
[10-27 00:19:13.718] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[10-27 00:19:13.718] CamHAL[INF] aiqb file name hi556.aiqb
[10-27 00:19:13.719] CamHAL[INF] aiqb file name hi556.aiqb
[10-27 00:19:13.719] CamHAL[INF] aiqb file name ov01a1s.aiqb
[10-27 00:19:13.719] CamHAL[INF] aiqb file name ov01a1s.aiqb
[10-27 00:19:13.719] CamHAL[ERR] Failed to find DevName for cameraId: 0, get video node: ov13b10 , devname: /dev/v4l-subdev1
[10-27 00:19:13.721] CamHAL[ERR] MediaControl init failed
Failed to set pipeline to PAUSED.
Setting pipeline to NULL ...
Freeing pipeline ...

I'm on 6.0.2-arch1-1. Wondering if the error means that my camera is using a different sensor (ov13b10) that is just not supported?

Last edited by bjesus (2022-10-26 22:43:41)

Offline

#64 2022-10-26 23:19:30

acegallagher
Member
Registered: 2016-07-29
Posts: 10

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

*deleted for organization*

Last edited by acegallagher (2022-10-26 23:21:02)

Offline

#65 2022-10-27 09:40:59

stefanpartheym
Member
Registered: 2022-10-24
Posts: 4

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

itayf wrote:

Thanks @stefanpartheym!

Okay, I've upgraded again to 6.0.2 and:

Regarding camera - the errors disappeared! But still no camera is detected by web browser, and when running "sudo -E LANG=C gst-launch-1.0 icamerasrc" the camera starts from a second (I can see its light indicator turns on) but the command ends almost immediately:

Setting pipeline to PAUSED ...
[10-26 14:57:23.848] CamHAL[INF] aiqb file name ov01a10.aiqb
[10-26 14:57:23.848] CamHAL[INF] aiqb file name ov01a10.aiqb
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

(gst-launch-1.0:5209): GStreamer-CRITICAL **: 14:57:23.893: Registering meta implementation 'GstCamerasrcMeta' without init function
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-linked (-1)
Execution ended after 0:00:00.617138010
Setting pipeline to NULL ...
[10-26 14:57:24.567] CamHAL[WAR] ipu6_bb_video_bayer: wait executors timeout
Enter ia_aiq_get_aiqd_data()
Out-aiqd data size: 41480
[10-26 14:57:24.647] CamHAL[WAR] Failed to open file /run/camera/ov01a10-uf_VIDEO.aiqd, error No such file or directory
Freeing pipeline ...

(Running the full command "sudo -E LANG=C gst-launch-1.0 icamerasrc ! autovideoconvert ! waylandsink" from "test.sh" returned "WARNING: erroneous pipeline: no element "autovideoconvert"" so I removed the " ! autovideoconvert ! waylandsink" part)
...

Hi @itayf,
I only got video input from my camera when using this exact command line: "sudo -E LANG=C gst-launch-1.0 icamerasrc ! autovideoconvert ! waylandsink". If I omit  "! autovideoconvert ! waylandsink" I get similar errors like you. But obviously im on Wayland not X.
Also, you might want to try it in your browser: https://webrtc.github.io/samples/src/co … ut-output/
But before you try that make sure you reload your v4l2loopback module with the option exclusive_caps=1:

sudo modprobe -r v4l2loopback
sudo modprobe v4l2loopback exclusive_caps=1

Also as a side note: I'm using pipewire. Not sure if this has an effect on this, but it certainly does have an effect on the speaker/mic issue you mentioned wink

Best regards
Stefan

Last edited by stefanpartheym (2022-10-27 09:47:59)

Offline

#66 2022-10-27 22:10:28

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

stefanpartheym wrote:

I only got video input from my camera when using this exact command line: "sudo -E LANG=C gst-launch-1.0 icamerasrc ! autovideoconvert ! waylandsink". If I omit  "! autovideoconvert ! waylandsink" I get similar errors like you. But obviously im on Wayland not X.

Thanks so much for sharing that @stefanpartheym as it gives some hope and redirects the problem to another place.

stefanpartheym wrote:

Also, you might want to try it in your browser: https://webrtc.github.io/samples/src/co … ut-output/
But before you try that make sure you reload your v4l2loopback module with the option exclusive_caps=1:

sudo modprobe -r v4l2loopback
sudo modprobe v4l2loopback exclusive_caps=1

Since the service was using the module, I had to run:

systemctl stop v4l2-relayd
sudo modprobe -r v4l2loopback
sudo modprobe v4l2loopback exclusive_caps=1
systemctl start v4l2-relayd

But still the camera is not working. Somehow now (even before running those, so I'm not sure what else I've changed) both https://webrtc.github.io/samples/src/co … ut-output/ and other sites (such as Google Meet) detect a camera but it's not working (Google Meet calls it "Virtual Camera"), which is a progress?

It seems this name (and the exclusive_caps parameter) are defined in v4l2-relayd.conf:

$ cat /etc/modprobe.d/v4l2-relayd.conf 
options v4l2loopback exclusive_caps=1 card_label="Virtual Camera"
stefanpartheym wrote:

Also as a side note: I'm using pipewire. Not sure if this has an effect on this, but it certainly does have an effect on the speaker/mic issue you mentioned wink

Thanks, and I honestly don't know what I've done here too (Kept using pulseaudio), but the mic is now working too after reloading the driver:

sudo modprobe -r snd_sof_pci_intel_tgl && \
sudo modprobe snd_sof_pci_intel_tgl

I just hope I wouldn't need to reload it every boot forever...

And another weird thing, I'm interested to know whether you encounter too: About 10-20 seconds after the system boots (even if I do not log in and stay in the display manager login screen) the camera starts and stops for 1 second. I mean I see the camera light on for 1 second and then off. Does it happen to other people here? (I checked the v4l2-relayd service logs and this flash happens 14 seconds after it started, so I guess it's not the direct cause)

Thanks :-)

Last edited by itayf (2022-10-27 22:41:39)

Offline

#67 2022-10-28 13:27:28

crapthal
Member
Registered: 2022-10-28
Posts: 4

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

My camera is working in Chromium but not in Firefox. Anyone had this problem?

Offline

#68 2022-10-28 16:34:42

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

crapthal wrote:

My camera is working in Chromium but not in Firefox. Anyone had this problem?

@crapthal - Wow! Thank you so much for posting that question as it made me understand that my camera works!! (@stefanpartheym, @acegallagher, @V1del, @Delorien123 big_smile - Thanks again!)

All the time I've tested it only on Firefox, but now I see it does work on Zoom and on Chrome when I'm testing it on Google Meet / webcammictest.com, but weirdly not on https://webrtc.github.io/samples/src/co … ut-output/ (why..?)

So I'm updating that I'm focusing currently on those 2 things to be solved:

1. Making it work on Firefox.
2. Disable the creepy turning-on-for-a-second of the camera about 12 seconds after the system boots. Please share if you have it too or don't have it.

Offline

#69 2022-10-28 19:39:31

crapthal
Member
Registered: 2022-10-28
Posts: 4

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

@itayf For your second point, I think it's normal behavior because it was also doing that when my laptop was on Ubuntu out of the box. It started doing that on Arch on the same reboot I got my webcam to work.

Offline

#70 2022-10-29 17:39:15

stefanpartheym
Member
Registered: 2022-10-24
Posts: 4

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Hey @itayf, great to hear webcam works for you now, at least partially.
I can confirm, my webcam light (if thats an actual word) flashes after booting. For me it happens when the login screen of GDM shows up.
Also, as a side note on the audio issues we had:  Updating to kernel version 6.0.5 did the trick. At least i thunk so, as these issues appeared sporadically in the past. But since the update i did not have any issues. Give it a try wink

Offline

#71 2022-10-30 00:51:06

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Thank you both @crapthal and @stefanpartheym for updating on the camera flashing on boot! Good to know I'm not the only one, and that it's even in their official out-of-the-box Ubuntu. Would be interesting some time to check which driver code does that (and whether it's the proprietary driver..) and whether there's something to do about it.

stefanpartheym wrote:

Also, as a side note on the audio issues we had:  Updating to kernel version 6.0.5 did the trick. At least i thunk so, as these issues appeared sporadically in the past. But since the update i did not have any issues. Give it a try wink

Thanks :-) Gave it a try and nope, I still have to reload the driver (sudo modprobe -r snd_sof_pci_intel_tgl && sudo modprobe snd_sof_pci_intel_tgl) to get some the sound working (Also on testing/linux-6.0.6...)
Weird thing is that now I've downgraded back to 6.0.2 and 6.0.3 and the microphone again is recognized but no sound is recorded... and I'm not sure what made him work before, as I recall doing nothing special regarding it. Hopefully it will be magically fixed again smile

Offline

#72 2022-10-30 03:37:46

crapthal
Member
Registered: 2022-10-28
Posts: 4

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

@itayf For the mic driver showing up but no sound, try to go in dell bios and make sure you are not on fastboot. My mic was doing the exact same thing and disabling fastboot fixed it.

Offline

#73 2022-10-31 23:09:30

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

crapthal wrote:

@itayf For the mic driver showing up but no sound, try to go in dell bios and make sure you are not on fastboot. My mic was doing the exact same thing and disabling fastboot fixed it.

Thanks @crapthal for that, I was trying to disabled it but found only those options: Minimal, Thorough, Auto (https://ibb.co/GTnPMtB).

I've changed it from Minimal to Thorough but it did not help... What setting did you exactly choose?

Offline

#74 2022-11-01 00:06:34

itayf
Member
Registered: 2006-01-09
Posts: 30

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

Well, the microphone thing is random...

I tried the troubleshooting for the microphone by the wiki, starting with Microphone not detected by PulseAudio (https://wiki.archlinux.org/title/PulseA … PulseAudio) even though it is detected (but records nothing) and it made it work! big_smile

I wanted to make sure, so I commented the new line ("load-module module-alsa-source device=hw:0,4") I've added by the wiki to "/etc/pulse/default.pa", but now it's still working after reboot (and reloading the snd_sof_pci_intel_tgl).

So now I have again a working microphone and no idea why... neutral (And it has been several reboots after the fastboot BOIS change so I can't really link it to that... hmm)

Offline

#75 2022-11-01 14:20:13

crapthal
Member
Registered: 2022-10-28
Posts: 4

Re: Dell XPS 13 Plus 9320: Camera issues (Intel IPU6 MIPI on Alder Lake)

@itayf Yes, it seems random. Mine started working after putting "Thorough" in fastboot setting at the same reboot. I have to say I did so much stuff, it's hard to tell what really fixed it.

Offline

Board footer

Powered by FluxBB