webcam not working on XPS 9320 with Ubuntu 22.04.3

Bug #2046198 reported by Davide Scarso
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
Incomplete
Critical
jeremyszu
oem-somerville-tentacool-meta (Ubuntu)
Invalid
Critical
Unassigned
Jammy
Triaged
Critical
Unassigned
Noble
Invalid
Critical
Unassigned
ubiquity (Ubuntu)
Confirmed
Low
Unassigned
Jammy
Confirmed
Low
Unassigned
Noble
Confirmed
Low
Unassigned

Bug Description

Hi,

I installed Ubuntu 22.04.3 on XPS 9320 (came with Windows pre-installed). Both "HAL library for MIPI Camera through Intel IPU6 by libcamhal0" and "hardware support for Dell XPS 13 9320 by oem-somerville-tentacool-meta" were automatically activated after install. Webcam however was not detected

I saw bugs #2039471 and #2039746, and followed what's suggested there but to no avail. Camera is detected now but gives a black image (0 FPS).

$ uname -a

Linux Banana3000 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

$ apt-cache policy oem-somerville-tentacool-meta

oem-somerville-tentacool-meta:
Instalado: 22.04ubuntu6
Candidato: 22.04ubuntu6
Tabela de Versão:
*** 22.04ubuntu6 500
500 http://dell.archive.canonical.com jammy/somerville-tentacool amd64 Packages
500 http://dell.archive.canonical.com jammy/somerville-tentacool i386 Packages
100 /var/lib/dpkg/status
22.04~ubuntu1 500
500 http://pt.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
500 http://pt.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages

libcamhal-ipu6ep0, linux-modules-ipu6-generic-hwe-22.04, linux-modules-ivsc-generic-hwe-22.04 and linux-modules-ivsc-6.2.0-37-generic are installed.

Tags: oem-priority

Related branches

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

Could you upload apport log by $ sudo -E oem-getlogs

Thanks,

Revision history for this message
Davide Scarso (ds451) wrote :

Here's the logs, your help is much appreciated.

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

Hello,

I find your ljca driver for the usb bridge is not probed [1]. Could you check if you have the latest firmware installed [2], Intel 2D Imaging/MCU/Visual Sensing Controller Driver for Camera?

[1] https://github.com/intel/ipu6-drivers/issues/19#issuecomment-1143328994
[2] https://www.dell.com/support/home/en-us/product-support/product/xps-13-9320-laptop/drivers

Thanks,

Revision history for this message
Davide Scarso (ds451) wrote :
Download full text (5.5 KiB)

Hi,

Here's my HW info through inxi (I'm quite new to Linux so I may be missing something, sorry):

$ sudo inxi -Frmxx

System:
  Host: Banana3000 Kernel: 6.2.0-37-generic x86_64 bits: 64 compiler: N/A
    Desktop: GNOME 42.9 tk: GTK 3.24.33 wm: gnome-shell dm: GDM3
    Distro: Ubuntu 22.04.3 LTS (Jammy Jellyfish)
Machine:
  Type: Laptop System: Dell product: XPS 9320 v: N/A serial: 7C13WV3 Chassis:
    type: 10 serial: 7C13WV3
  Mobo: Dell model: 0V0059 v: A00 serial: /7C13WV3/CNCMK0031V02C6/
    UEFI: Dell v: 2.7.0 date: 09/18/2023
Battery:
  ID-1: BAT0 charge: 54.4 Wh (100.0%) condition: 54.4/54.4 Wh (100.0%)
    volts: 13.3 min: 11.6 model: BYD DELL NXRKW29 serial: 14878 status: Full
Memory:
  RAM: total: 15.23 GiB used: 4.05 GiB (26.6%)
  Array-1: capacity: 16 GiB slots: 8 EC: None max-module-size: 2 GiB
    note: est.
  Device-1: Motherboard size: 2 GiB speed: spec: 6400 MT/s
    actual: 5200 MT/s type: LPDDR5 manufacturer: N/A part-no: N/A
  Device-2: Motherboard size: 2 GiB speed: spec: 6400 MT/s
    actual: 5200 MT/s type: LPDDR5 manufacturer: N/A part-no: N/A
  Device-3: Motherboard size: 2 GiB speed: spec: 6400 MT/s
    actual: 5200 MT/s type: LPDDR5 manufacturer: N/A part-no: N/A
  Device-4: Motherboard size: 2 GiB speed: spec: 6400 MT/s
    actual: 5200 MT/s type: LPDDR5 manufacturer: N/A part-no: N/A
  Device-5: Motherboard size: 2 GiB speed: spec: 6400 MT/s
    actual: 5200 MT/s type: LPDDR5 manufacturer: N/A part-no: N/A
  Device-6: Motherboard size: 2 GiB speed: spec: 6400 MT/s
    actual: 5200 MT/s type: LPDDR5 manufacturer: N/A part-no: N/A
  Device-7: Motherboard size: 2 GiB speed: spec: 6400 MT/s
    actual: 5200 MT/s type: LPDDR5 manufacturer: N/A part-no: N/A
  Device-8: Motherboard size: 2 GiB speed: spec: 6400 MT/s
    actual: 5200 MT/s type: LPDDR5 manufacturer: N/A part-no: N/A
CPU:
  Info: 12-core (4-mt/8-st) model: 12th Gen Intel Core i7-1260P bits: 64
    type: MST AMCP arch: Alder Lake rev: 3 cache: L1: 1.1 MiB L2: 9 MiB
    L3: 18 MiB
  Speed (MHz): avg: 575 high: 2501 min/max: 400/2501 boost: enabled cores:
    1: 400 2: 400 3: 400 4: 800 5: 2501 6: 400 7: 400 8: 400 9: 400 10: 700
    11: 400 12: 400 13: 400 14: 400 15: 400 16: 400 bogomips: 79872
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics vendor: Dell driver: i915
    v: kernel ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4
    bus-ID: 0000:00:02.0 chip-ID: 8086:46a6
  Display: server: X.Org v: 1.22.1.1 compositor: gnome-shell driver:
    gpu: i915 note: X driver n/a display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1200 s-dpi: 96
  Monitor-1: XWAYLAND0 mapped: eDP-1 model: LG res: 1920x1200 dpi: 168
    diag: 340mm (13.4")
  OpenGL: renderer: Mesa Intel Graphics (ADL GT2)
    v: 4.6 Mesa 23.0.4-0ubuntu1~22.04.1 direct render: Yes
Audio:
  Device-1: Intel vendor: Dell driver: intel-ipu6 bus-ID: 0000:00:05.0
    chip-ID: 8086:465d
  Device-2: Intel Alder Lake PCH-P High Definition Audio vendor: Dell
    driver: sof-audio-pci-intel-tgl bus-ID: 0000:00:1f.3 chip-ID: 8086:51c8
  Sound Server-1: ALSA v: k6.2.0-37-generic running: yes
  Sound Server-2: PulseAudio v: 15.9...

Read more...

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

It won't provide USB bridge firmware info. Please boot into Windows to check or consult dell support for it. If you can remove Windows, you can consult Dell to get Ubuntu preload image to have a try.

Revision history for this message
Davide Scarso (ds451) wrote :

Ok, I will do that and maybe report back. Thanks for your support.

Revision history for this message
Davide Scarso (ds451) wrote (last edit ):

I upgraded the webcam firmware in Windows as you suggested and did a fresh install of Ubuntu 22.04.3. Again, both "HAL library for MIPI Camera through Intel IPU6 by libcamhal0" and "hardware support for Dell XPS 13 9320 by oem-somerville-tentacool-meta" were automatically activated after install. Webcam however did not work.

libcamhal-ipu6ep0 was already installed, but linux-modules-ipu6-generic-hwe-22.04 and linux-modules-ivsc-generic-hwe-22.04 were not.

Then I manually installed linux-modules-ipu6-generic-hwe-22.04 and linux-modules-ivsc-generic-hwe-22.04 and the webcam is now working.

I confirm that Cheese also work if launched with sudo cheese -d "Intel MIPI Camera".

Thank you again for your help!

Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

I was surprised the modules aren't installed with libcamhal-ipu6ep0, since they are recommened with libcamhal-ipu6ep0 [1]. Can you have linux-modules-{ipu6,ivsc}-gwneric-hwe-22.04 installed through
$ sudo apt update
$ sudo apt dist-upgrade
after fresh install?

[1] http://dell.archive.canonical.com/dists/jammy-somerville-tentacool/public/binary-amd64/Packages

Revision history for this message
Davide Scarso (ds451) wrote (last edit ):

I did the whole process once again, to confirm:

1) A fresh installation of Ubuntu 22.04.3. "HAL library for MIPI Camera through Intel IPU6 by libcamhal0" and "hardware support for Dell XPS 13 9320 by oem-somerville-tentacool-meta" are automatically activated during install. Webcam does not work.

2) The system however immediately suggests several updates, through the Update GUI. Did the update and rebooted.

3) After reboot, sudo apt update; sudo apt dist-upgrade says everything is already updated. sudo apt install libcamhal-ipu6ep0 says the most recent version is already installed. linux-modules-ipu6-generic-hwe-22.04 and linux-modules-ivsc-generic-hwe-22.04 are not installed (see first logs file in attached zip archive). Webcam does not work.

4) sudo apt install linux-modules-ipu6-generic-hwe-22.04 and linux-modules-ivsc-generic-hwe-22.04. After reboot webcam works as expected (see second logs file).

Revision history for this message
Davide Scarso (ds451) wrote (last edit ):

(btw, I noticed a typo in the Description of libcamhal-ipu6ep0:

"Tansitional package for libcamhal0 This is a transitional package for libcamhal0, and can be safely removed after the installation is complete."

The first "transitional" is missing the "r" after the "T").

Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :
Revision history for this message
Cyrus Lien (cyruslien) wrote :

I confirmed the issue by steps 1~3 in #9. Users have to manually install ipu6 and ivsc drivers to make the webcam work.

SKU: 202112-29761

Revision history for this message
Cyrus Lien (cyruslien) wrote :

$apt show oem-somerville-tentacool-meta

Package: oem-somerville-tentacool-meta
Version: 22.04ubuntu6
Priority: optional
Section: misc
Maintainer: Commercial Engineering <email address hidden>
Installed-Size: 18.4 kB
Depends: ubuntu-oem-keyring, linux-generic-hwe-22.04, oem-somerville-meta
Recommends: libcamhal-ipu6ep0, linux-modules-ipu6-generic-hwe-22.04, linux-modules-ivsc-generic-hwe-22.04
Modaliases: meta(pci:*sv00001028sd00000AF3bc0Csc05*)
Ubuntu-Oem-Kernel-Flavour: default
Download-Size: 2,682 B
APT-Manual-Installed: yes
APT-Sources: http://dell.archive.canonical.com jammy/somerville-tentacool amd64 Packages
Description: hardware support for Dell XPS 13 9320

Revision history for this message
Cyrus Lien (cyruslien) wrote :

$ apt-config dump | grep -i recommends
APT::Install-Recommends "1";

Revision history for this message
jeremyszu (os369510) wrote (last edit ):

Updates v2 from team:
---

Update some findings from the machine in #12:
---
Start-Date: 2023-12-14 02:33:03
Requested-By: ubuntu (999)
Install: ubuntu-oem-keyring:amd64 (2021.03.26, automatic), oem-somerville-tentacool-meta:amd64 (22.04~ubuntu1)
End-Date: 2023-12-14 02:33:03

Start-Date: 2023-12-14 02:33:15
Requested-By: ubuntu (999)
Install:
...libcamhal0:amd64 (0~git202310160955.cb2befc~ubuntu22.04.6, automatic)...
Upgrade: oem-somerville-tentacool-meta:amd64 (22.04~ubuntu1, 22.04ubuntu6)
End-Date: 2023-12-14 02:33:29
---

Which is an online install and ubiquity was try to upgrade it as:
def install_extras()
...cache.update(sources_list=target_sources_list)

jeremyszu (os369510)
Changed in oem-priority:
assignee: nobody → jeremyszu (os369510)
importance: Undecided → Critical
status: New → In Progress
Changed in oem-somerville-tentacool-meta (Ubuntu):
importance: Undecided → Critical
Revision history for this message
jeremyszu (os369510) wrote :

So here are total three topics in the installer/images:

1. linux-modules-ipu6/ivsc (and future usbio) are not in image (CDROM) and def install_extras() only install packages from CDROM even if users perform online installation.

2. installer needs an extra `ubunut-drivers list` to detect if any packages (With modaliase) from oem archive are required for this platform. A potential fix: https://git.launchpad.net/~os369510/ubiquity/commit/?id=ff333f4013ecbc6fe662bca4ff8d7f2657497473, which could solve the potential bug report (i.e. my wireless doesn't work, because it needs backport-iwlwifi-helper from oem-archve) in the future.

3. apt install ${oem-meta} (when upgrading it from def install_extras()) will fail if "XB-Ubuntu-OEM-Kernel-Flavour" points to "oem" because only linux-oem-22.04 in the CDROM (iso) but the real oem meta packages require linux-oem-22.04{d,+} but linux-oem-22.04 points to "linux-oem-22.04c".
I'm wondering if we can get updates from ubuntu-archive in def install_extras().

---

Canonical OEM internal ticket: PCSWE-1453

tags: added: oem-priority
jeremyszu (os369510)
Changed in oem-somerville-tentacool-meta (Ubuntu):
status: New → Triaged
jeremyszu (os369510)
Changed in oem-priority:
status: In Progress → Incomplete
Changed in oem-somerville-tentacool-meta (Ubuntu Jammy):
status: New → Triaged
importance: Undecided → Critical
Changed in oem-somerville-tentacool-meta (Ubuntu Noble):
status: Triaged → Invalid
Changed in ubiquity (Ubuntu Jammy):
importance: Undecided → Low
Changed in ubiquity (Ubuntu Noble):
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu Jammy):
status: New → Confirmed
Changed in ubiquity (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.