1

I still cannot fix the problem of MPI camera not being recognized on my Dell XPS13 (9315) despite the upgrade to Ubuntu 24.04.1.

I tried without success the fixes proposed in this thread and also elsewhere.

When I run the command "v4l2-ctl --list-devices" the camera is listed, but neither launching cheese nor guvcview from the terminal with sudo fixes the issue.

I added my username to the video group as suggested (https://itsfoss.com/no-camera-found-ubuntu/), but no results.

The laptop is in dual boot, and under windows the camera works fine, but I cannot consider this as being the solution.

I am not fully confident I can properly apply by myself the patch proposed here, as I need some guidance: https://github.com/intel/ipu6-drivers Did anyone test it?

Any suggestion or help would be appreciated.

Thanks Guido

2 Answers2

1

I manage to fix the camera twice for both 22.04 and 24.04. I don't have a clear answer but I can walk you through my findings and experiences. Always check the date of a posted solution, this issue has threads since 2020 with solutions that don't work anymore!

1 - Apparent reasons and routes

You probably know by now, this is all to do with Dell/intel driver vs. specific system/kernel upgrades.

There are three elements/route that appear repeatedly:

  1. Ubuntu "Additional Drivers" (search among your apps): any attempt (maybe more than one) to install drivers need to toggled on in this menu. Remember to reboot afterwards.
  2. Installing driver: You will find a handful of "solution" that require installing driver and packages. Mind there is always a "catch" regarding versions.
  3. ipu6-drivers / dkms: You will come across options to manually patch and install the proper intel driver.

2 - Solutions

2.1 - Ubuntu jammy 22.04

I've tried so many different solution and packages, in the end only the dkms building is what worked for me. This thread has a very short step-by-step, which I am pasting here:

step 1 - install intel-ipu6 package

sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6
sudo apt update
sudo apt install libcamhal-ipu6ep0

step 2 - install dkms

sudo apt install dkms

step 3 - install the driver with the correct patch

IMPORTANT: this solution is based on the kernel version <= 6.6. You can check your kernel version using neofetch or running uname -r on the terminal. For a different kernel version, check the repo to apply the right patch (mind their explanation is not great for beginners, check more about it on the end of this post in section 2.2 step 1).

git clone https://github.com/intel/ipu6-drivers.git
cd ipu6-drivers
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

sudo dkms add . sudo dkms autoinstall ipu6-drivers/0.0.0

reboot

step 4 - Additional drivers

Search for "Additional drivers" on your system. If there are any options to be enabled, make sure they are and do try changing and rebooting. As I said before, I only understand 50% of the reasoning behind it all.

My system:

            .-/+oossssoo+/-.               xxx@xxx-XPS-9315 
        `:+ssssssssssssssssss+:`           -------------------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 22.04.5 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: XPS 9315 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 6.8.0-51-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 6 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2375 (dpkg), 14 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.1.16 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 2560x1440 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 42.9 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru-prussiangreen [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru-prussiangreen [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: 12th Gen Intel i7-1250U (12) @  
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel Device 46aa 
      -+sssssssssssssssssyyyssss+-         Memory: 3924MiB / 15615MiB 
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.

2.2 - Ubuntu numbat 24.04

After upgrading from 22.04 to 24.04, my camera stopped working again.

IMPORTANT: I tried removing the dkms - ipu6-drivers, applying the correct patches and reinstalling, however that did not work straight away. Because of that, I can not guarantee whether this step is part of the solution or not.

step 1 - install dkms ipu6-drivers

The driver repo has poorly explanation for beginners. I will try my best here:

  1. Check your kernel version

    uname -r

  2. Clone the repo:

    git clone https://github.com/intel/ipu6-drivers.git
    cd ipu6-drivers
    
  3. Apply the right patches using the git command. You can find the required patch based on your kernel version on the [link] above(https://github.com/intel/ipu6-drivers?tab=readme-ov-file#1-build-with-kernel-source-tree).

    git apply --stat <path_to_patch>
    
  4. Install the driver with dkms

    sudo dkms add .
    sudo dkms autoinstall ipu6-drivers/0.0.0
    

step 2 - Install basic packages

Then I installed basic driver solutions with apt based on this proposed solution:

sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6
sudo apt install linux-modules-ipu6-generic-hwe-22.04 linux-modules-ivsc-generic-hwe-22.04
sudo apt install libcamhal-ipu6ep0
sudo reboot

step 3 - check the "Additional Drivers"

Then, make sure to select the right option on the "Additional Drivers". To me, it worked selecting: Using Dynamic loading plugin for IPU6 camera (ipu6ep) from libcamhal-ipu6ep (open source).

I confess this step was a bit of trial and error with reboots between each change.

My system post update:

            .-/+oossssoo+/-.               xxx@xxx-XPS-9315 
        `:+ssssssssssssssssss+:`           -------------------------- 
      -+ssssssssssssssssssyyssss+-         OS: Ubuntu 24.04.1 LTS x86_64 
    .ossssssssssssssssssdMMMNysssso.       Host: XPS 9315 
   /ssssssssssshdmmNNmmyNMMMMhssssss/      Kernel: 6.8.0-51-generic 
  +ssssssssshmydMMMMMMMNddddyssssssss+     Uptime: 1 hour, 4 mins 
 /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/    Packages: 2352 (dpkg), 16 (snap) 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Shell: bash 5.2.21 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   Resolution: 2560x1440 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   DE: GNOME 46.0 
ossyNMMMNyMMhsssssssssssssshmmmhssssssso   WM: Mutter 
+sssshhhyNMMNyssssssssssssyNMMMysssssss+   WM Theme: Adwaita 
.ssssssssdMMMNhsssssssssshNMMMdssssssss.   Theme: Yaru-prussiangreen [GTK2/3] 
 /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/    Icons: Yaru-prussiangreen [GTK2/3] 
  +sssssssssdmydMMMMMMMMddddyssssssss+     Terminal: gnome-terminal 
   /ssssssssssshdmNNNNmyNMMMMhssssss/      CPU: 12th Gen Intel i7-1250U (12) @  
    .ossssssssssssssssssdMMMNysssso.       GPU: Intel Alder Lake-UP4 GT2 [Iris  
      -+sssssssssssssssssyyyssss+-         Memory: 4428MiB / 15615MiB 
        `:+ssssssssssssssssss+:`
            .-/+oossssoo+/-.

1

Blacknellore's solution worked for me. The only difference was the version of the packages installed:

sudo apt install linux-modules-ipu6-generic-hwe-24.04 linux-modules-ivsc-generic-hwe-24.04

For some unknown reason, the webcam works in the browser but not in Cheese. I don't care about it, so I am good, but make sure to test in the browser.