Black Camera X1 Carbon 11th Gen

Bug #2065424 reported by Riccardo Angelino
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
New
Undecided
Unassigned

Bug Description

Hello,

there is a problem with camera with the pc Lenovo X1 Carbon 11th Gen, the image of the camera is black not is visible nothing (the webcam privacy shutter is open).

Infact with this command: sudo gst-launch-1.0 icamerasrc ! autovideosink

I see this errror:
[05-10 09:40:37.548] CamHAL[ERR] load_camera_hal_library, failed to open PCI device. error: (null)
[05-10 09:40:37.548] CamHAL[ERR] get_number_of_cameras, function call is nullptr
[05-10 09:40:37.548] CamHAL[ERR] get_number_of_cameras, function call is nullptr
[05-10 09:40:37.548] CamHAL[ERR] get_number_of_cameras, function call is nullptr

(gst-launch-1.0:10190): GLib-GObject-CRITICAL **: 09:40:37.548: g_param_spec_enum: assertion 'g_enum_get_value (enum_class, default_value) != NULL' failed

(gst-launch-1.0:10190): GLib-GObject-CRITICAL **: 09:40:37.548: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed

(gst-launch-1.0:10190): GLib-GObject-CRITICAL **: 09:40:37.548: g_param_spec_ref_sink: assertion 'G_IS_PARAM_SPEC (pspec)' failed

(gst-launch-1.0:10190): GLib-GObject-CRITICAL **: 09:40:37.548: g_param_spec_unref: assertion 'G_IS_PARAM_SPEC (pspec)' failed
[05-10 09:40:37.549] CamHAL[ERR] get_number_of_cameras, function call is nullptr
[05-10 09:40:37.549] CamHAL[ERR] get_number_of_cameras, function call is nullptr
WARNING: erroneous pipeline: could not link camerasrc0 to autovideosink0

The driver is ok:

Intel MIPI Camera (platform:v4l2loopback-000):
 /dev/video0

Driver Info:
 Driver name : v4l2 loopback
 Card type : Intel MIPI Camera
 Bus info : platform:v4l2loopback-000
 Driver version : 6.5.13
 Capabilities : 0x85200001
  Video Capture
  Read/Write
  Streaming
  Extended Pix Format
  Device Capabilities
 Device Caps : 0x05200001
  Video Capture
  Read/Write
  Streaming
  Extended Pix Format

root@L-PA-PF4Z0KDX:/home/primalocaladmin# gst-launch-1.0 v4l2src ! glimagesink
Setting pipeline to PAUSED ...
error: XDG_RUNTIME_DIR not set in the environment.
Pipeline is live and does not need PREROLL ...
Got context from element 'sink': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
0:00:00.0 / 99:99:99.

I have followed this this guide:
https://wiki.ubuntu.com/Lenovo
https://wiki.ubuntu.com/IntelMIPICamera

And all module and package are installed:

linux-modules-ipu6-6.5.0-1020-oem/jammy-updates,jammy-security,now 6.5.0-1020.21 amd64 [installed,automatic]
linux-modules-ivsc-6.5.0-1020-oem/jammy-updates,jammy-security,now 6.5.0-1020.21 amd64 [installed,automatic]
linux-modules-ivsc-6.5.0-1022-oem/jammy-updates,jammy-security,now 6.5.0-1022.23 amd64 [installed,automatic]
linux-modules-ivsc-6.5.0-28-generic/jammy-updates,jammy-security,now 6.5.0-28.29~22.04.1 amd64 [installed,automatic]
linux-modules-ivsc-generic-hwe-22.04/jammy-updates,jammy-security,now 6.5.0.28.29~22.04.1 amd64 [installed]
linux-modules-ivsc-oem-22.04c/jammy-updates,jammy-security,now 6.5.0.1022.24 amd64 [installed]
linux-modules-ivsc-oem-22.04d/jammy-updates,jammy-security,now 6.5.0.1022.24 amd64 [installed,automatic]
linux-firmware/jammy-updates,jammy-updates,now 20220329.git681281e4-0ubuntu3.30 all [installed,automatic]
v4l2-relayd/jammy,now 0.1.2-0ubuntu1 amd64 [installed]

lsmod:
v4l2_fwnode 40960 1 ov2740
v4l2_async 28672 2 v4l2_fwnode,ov2740
v4l2loopback 49152 2
videodev 364544 6 v4l2_async,v4l2_fwnode,v4l2loopback,ov2740
mc 86016 3 v4l2_async,videodev,ov2740

Info PC:

{
  "Version": "22.04",
  "OEM": {
    "Vendor": "LENOVO",
    "Product": "21HNSG6J00",
    "Family": "ThinkPad X1 Carbon Gen 11"
  },
  "BIOS": {
    "Vendor": "LENOVO",
    "Version": "N3XET50W (1.25 )"
  },
  "Arch": "amd64",
  "HwCap": "x86-64-v3",
  "GPU": [
    {
      "Vendor": "8086",
      "Model": "a7a1"
    }
  ],
  "RAM": 32.4,
  "Partitions": [
    486.9,
    1.7,
    0.5
  ],
  "Screens": [
    {
      "Size": "301mmx188mm",
      "Resolution": "1920x1200",
      "Frequency": "60.00"
    }
  ],
  "Autologin": false,
  "LivePatch": false,
  "Session": {
    "DE": "ubuntu:GNOME",
    "Name": "",
    "Type": ""
  },
  "Language": "en_US",
  "Timezone": "Europe/London",
  "Install": {
    "Media": "Ubuntu 22.04.2 2023.04.06 LTS \"Jammy Jellyfish\" (20230406)",
    "Type": "GTK",
    "OEM": false,
    "PartitionMethod": "use_crypto",
    "DownloadUpdates": true,
    "Language": "en",
    "Minimal": true,
    "RestrictedAddons": true,
    "Stages": {
      "0": "language",
      "22": "console_setup",
      "26": "prepare",
      "687": "partman",
      "708": "partman",
      "755": "start_install",
      "807": "timezone",
      "810": "usersetup",
      "833": "user_done",
      "1079": "done"
    }
  }
}

Uname:
Linux L-PA-PF4Z0KDX 6.5.0-1022-oem #23-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 25 13:29:45 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Tags: oem-priority
Revision history for this message
Riccardo Angelino (rangelino) wrote :
Rex Tsai (chihchun)
tags: added: oem-priority
Revision history for this message
Riccardo Angelino (rangelino) wrote :

Add attachment of dmesg and journalctl

Revision history for this message
Riccardo Angelino (rangelino) wrote :
information type: Proprietary → Public
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.