After a bit of a fight, I've managed to get the MIPI camera working on
my Lenovo ThinkPad X1 Carbon Gen 10. Here's what I've got:

- I'm using Ubuntu 22.04.3 LTS.
- I'm using Kernel 6.2.0-34-generic (with 6.2.0-35-generic for example it 
doesn't work for me)

With the above, I followed these steps: https://wiki.ubuntu.com/Lenovo

And I have added these configurations (replacing what is there, if any):

- In the file /etc/modprobe.d/v4l2loopback.conf:

options v4l2loopback card_label="Intel MIPI Camera" exclusive_caps=1
video_nr=0

- In the /etc/modprobe.d/v4l2-relayd.conf file:

options v4l2loopback exclusive_caps=1 card_label="Intel MIPI Camera"

- In the /etc/default/v4l2-relayd file:

# GStreamer source element name:
VIDEOSRC="icamerasrc"
#SPLASHSRC="filesrc location=/.../splash.png ! pngdec ! imagefreeze 
num-buffers=4 ! videoscale ! videoconvert"
# Output format, width, height, and frame rate:
FORMAT=NV12
WIDTH=1280
HEIGHT=720
FRAMERATE=30/1
# Virtual video device name:
CARD_LABEL="Intel MIPI Camera"
# Extra options to pass to v4l2-relayd:
#EXTRA_OPTS=-d

With this, after rebooting the system, the camera usually works in both
chrome and firefox (meet, zoom, webcam test, etc...).

- In Cheese, I can also get it to work by launching it this way:

sudo cheese -d "Intel MIPI Camera".

- Sometimes when a black screen appears, just restart the v4l2-relayd
service:

sudo systemctl restart v4l2-relayd.service

I hope this helps someone

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to cheese in Ubuntu.
https://bugs.launchpad.net/bugs/1978757

Title:
  Cheese can't playback the preview on Intel IPU6 camera platform

Status in OEM Priority Project:
  Confirmed
Status in cheese package in Ubuntu:
  Confirmed
Status in pipewire package in Ubuntu:
  Confirmed
Status in v4l2loopback package in Ubuntu:
  Confirmed

Bug description:
  Cheese can't playback preview on Intel IPU6 camera platform.

  (cheese:6772): cheese-WARNING **: 10:26:06.389: Internal data stream error.: 
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): 
/GstCameraBin:camerabin/GstWrapperCameraBinSrc:camera_source/GstBin:bin18/GstPipeWireSrc:pipewiresrc1:
  streaming stopped, reason not-negotiated (-4)

  Unsupported modifier, resource creation failed.
  XXX: resource creation failed
  Unsupported modifier, resource creation failed.
  XXX: resource creation failed
  Unsupported modifier, resource creation failed.
  XXX: resource creation failed

  On focal the gst-launch line is v4l2src, but it is changed to pipewiresrc on 
jammy.
  I tried command $ gst-launch-1.0 v4l2src ! glimagesink
  It can have camera image in the opened window.
  And https://webcamtests.com/ can work successfully.
  ---
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  DistributionChannelDescriptor:
   # This is the distribution channel descriptor for the OEM CDs
   # For more information see 
http://wiki.ubuntu.com/DistributionChannelDescriptor
   canonical-oem-somerville-jammy-amd64-20220425-25+jellyfish-tentacool+X18
  DistroRelease: Ubuntu 22.04
  InstallationDate: Installed on 2022-06-14 (0 days ago)
  InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - 
somerville-jammy-amd64-20220425-25
  MachineType: Dell Inc. XPS 9320
  Package: cheese 41.1-1build1 [origin: unknown]
  PackageArchitecture: amd64
  ProcVersionSignature: Ubuntu 5.15.0-36.37-generic 5.15.35
  RelatedPackageVersions:
   cheese        41.1-1build1
   cheese-common 41.1-1build1
  Tags: jammy third-party-packages wayland-session gstreamer-error
  Uname: Linux 5.15.0-36-generic x86_64
  UnreportableReason: This does not seem to be an official Ubuntu package. 
Please retry after updating the indexes of available packages, if that does not 
work then remove related third party packages and try again.
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  _MarkForUpload: True
  dmi.bios.date: 06/06/2022
  dmi.bios.release: 89.4
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 89.4.1
  dmi.board.vendor: Dell Inc.
  dmi.chassis.type: 10
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: 
dmi:bvnDellInc.:bvr89.4.1:bd06/06/2022:br89.4:svnDellInc.:pnXPS9320:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct10:cvr:sku0AF3:
  dmi.product.family: XPS
  dmi.product.name: XPS 9320
  dmi.product.sku: 0AF3
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/1978757/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to