Skip to content

HP Spectre x360 Laptop Camera problem with V4L2 and libcamera. #159

@azizkhon96

Description

@azizkhon96

OS: Arch linux
Kernel: Linux 6.16.6-arch1-1
Laptop model: HP Spectre x360 2-in-1 Laptop 14t-eu000
Camera Sensor: ov08x40
IPU version: Intel IPU6

Description:

  • Camera works with qcam, but with flickering , but with other apps like cheese it showes dark screen and system hangs, CPU is overloaded. OBS show long list of cameras , when I choose one of them, only dark screen.

Installed packets:

  • installed fresh arch linux

  • ipu firmware manual installed
    git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
    cd linux-firmware
    sudo cp intel/ipu/ipu6epmtl* /lib/firmware/intel/ipu/
    sudo mkinitcpio -P

  • Installed required packages:
    sudo pacman -S libcamera qt6-base qt6-tools pipewire pipewire-pulse wireplumber v4l-utils
    libcamera-tools pipewire-libcamera
    linux-headers \

  • Rebooted many times, only qcam is working , but with flickering when room is brighter. when i run qcam --verbose, flickering is decreasing.

  • Logs when run:

"cam -l"

[aziz@archusb ~]$ cam -l
INFO Camera camera_manager.cpp:330 libcamera v0.5.2
ERROR V4L2 v4l2_subdevice.cpp:1198 'ov08x40 18-0036': Unable to get rectangle 2 on pad 0/0: Inappropriate ioctl for device
WARN CameraSensor camera_sensor_legacy.cpp:401 'ov08x40 18-0036': The PixelArraySize property has been defaulted to 3856x2416
WARN CameraSensor camera_sensor_legacy.cpp:420 'ov08x40 18-0036': Failed to retrieve the sensor crop rectangle
WARN CameraSensor camera_sensor_legacy.cpp:426 'ov08x40 18-0036': The sensor kernel driver needs to be fixed
WARN CameraSensor camera_sensor_legacy.cpp:880 'ov08x40 18-0036': The analogue crop rectangle has been defaulted to the active area size
Available cameras:
1: Internal front camera (\_SB_.PC00.LNK0)

lsmod | grep ipu6

intel_ipu6_psys       114688  1
intel_ipu6_isys       143360  0
videobuf2_dma_sg       24576  1 intel_ipu6_isys
videobuf2_v4l2         40960  1 intel_ipu6_isys
videobuf2_common       94208  4 videobuf2_v4l2,intel_ipu6_isys,videobuf2_dma_sg,videobuf2_memops
v4l2_fwnode            36864  3 intel_ipu6_isys,ov08x40
v4l2_async             32768  3 v4l2_fwnode,intel_ipu6_isys,ov08x40
intel_ipu6             86016  2 intel_ipu6_isys,intel_ipu6_psys
videodev              397312  6 v4l2_async,v4l2_fwnode,videobuf2_v4l2,v4l2loopback,intel_ipu6_isys,ov08x40
ipu_bridge             24576  2 intel_ipu6,intel_ipu6_isys
mc                     90112  6 v4l2_async,videodev,videobuf2_v4l2,intel_ipu6_isys,videobuf2_common,ov08x40

v4l2-ctl --list-formats-ext -d /dev/video0

ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

[0]: 'BG12' (12-bit Bayer BGBG/GRGR)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[1]: 'GB12' (12-bit Bayer GBGB/RGRG)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[2]: 'BA12' (12-bit Bayer GRGR/BGBG)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[3]: 'RG12' (12-bit Bayer RGRG/GBGB)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[4]: 'BG10' (10-bit Bayer BGBG/GRGR)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[5]: 'GB10' (10-bit Bayer GBGB/RGRG)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[6]: 'BA10' (10-bit Bayer GRGR/BGBG)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[7]: 'RG10' (10-bit Bayer RGRG/GBGB)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[8]: 'BA81' (8-bit Bayer BGBG/GRGR)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[9]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[10]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[11]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[12]: 'pBCC' (12-bit Bayer BGBG/GRGR Packed)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[13]: 'pGCC' (12-bit Bayer GBGB/RGRG Packed)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[14]: 'pgCC' (12-bit Bayer GRGR/BGBG Packed)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[15]: 'pRCC' (12-bit Bayer RGRG/GBGB Packed)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[16]: 'pBAA' (10-bit Bayer BGBG/GRGR Packed)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[17]: 'pGAA' (10-bit Bayer GBGB/RGRG Packed)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[18]: 'pgAA' (10-bit Bayer GRGR/BGBG Packed)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[19]: 'pRAA' (10-bit Bayer RGRG/GBGB Packed)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[20]: 'UYVY' (UYVY 4:2:2)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[21]: 'YUYV' (YUYV 4:2:2)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[22]: 'RGBP' (16-bit RGB 5-6-5)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2
[23]: 'BGR3' (24-bit BGR 8-8-8)
	Size: Stepwise 2x2 - 4672x3416 with step 2/2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions