익명 08:20

Camera not working - ubuntu 26

Camera not working - ubuntu 26

I have a Lenovo ThinkPad X9-15 Gen 1 with Ubuntu 26.04 (Resolute Raccoon, kernel 7.0.0-22-generic) and the built-in camera is not working in any application (Firefox, GNOME Camera, etc.). I tried to replicate solutions, given for ubuntu 24, but with no avail.

Some troubleshooting

Ubuntu version: 26.04

Ubuntu sees the camera:

$ v4l2-ctl --list-devices
Intel MIPI Camera (platform:v4l2loopback-000):
    /dev/video0

What I've already tried:

  • Installed oem-sutton-dana-meta, libcamhal0, linux-modules-ipu7-generic, v4l2loopback-dkms

  • v4l2-ctl --list-devices shows the camera via v4l2loopback

  • ipu7x.so is present in /usr/lib/libcamhal/plugins/

  • pw-cli list-objects shows the camera in PipeWire

v4l2-relayd -d fails with:

CamHAL[ERR] load_camera_hal_library, failed to open PCI device
gst_parse_launch_full: assertion 'pipeline_description != NULL' failed

libcamhal-ipu7x cannot be installed due to broken dependencies:

Depends: libjsoncpp25 but it is not installable (Ubuntu 26.04 has libjsoncpp26)
Depends: libia-cca-ipu7x0
Depends: libia-log-ipu7x0
Depends: libcamhal-ipu7x-common


Top Answer/Comment:

First option:

 wget http://kernel.org
 sudo dpkg -i libjsoncpp25_1.9.5-6_amd64.deb
 sudo apt --fix-broken install
 sudo apt install libcamhal-ipu7x

Second option:

  apt download libcamhal-ipu7x
  dpkg-deb -x libcamhal-ipu7x_*.deb ipu7-mod
  dpkg-deb --control libcamhal-ipu7x_*.deb ipu7-mod/DEBIAN

Modify the dependency declaration:Open ipu7-mod/DEBIAN/control in a text editor (e.g., nano ipu7-mod/DEBIAN/control), locate the Depends: line, and change libjsoncpp25 to libjsoncpp26. Save and exit.

  dpkg-deb -b ipu7-mod libcamhal-ipu7x-fixed.deb
  sudo dpkg -i libcamhal-ipu7x-fixed.deb

  sudo systemctl daemon-reload
  sudo systemctl restart v4l2-relayd
상단 광고의 [X] 버튼을 누르면 내용이 보입니다