Home Back

Camera on 24.04 after update not working

askubuntu.com 2024/10/4

I have a Lenovo Legion laptop with integrated camera. There is Ubuntu 24.04 installed. After some updates (I am on livepatch) the camera did not show any image. The typical "Camera not found" issue (before it was ok), but I overcame it following some helpfull links, but the camera did not show an image. I tried 2 days long different approaches, driver, applocker, cheese, pipewire, could not solve the problem. Finally installed a fresh Ubuntu 24.04, all my applications etc. Today, after a week of good working, I did another update, rebooted and I had the same error again - no camera image. I hesitate to start again with installing additional software guvcview, cheese etc. to analyse again, instead stay as near as possible to the main stream distribution and keep fingers crossed.

Do you recognize this problem? Thank you for your time.

    cb@C007:~$ uname -a
Linux C007 6.8.0-36-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 10 10:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux



    sudo journalctl -b 2>&1| grep video
[sudo] password for cb: 
Jul 05 11:48:40 C007 kernel: videodev: Linux video capture interface: v2.00
Jul 05 11:48:40 C007 kernel: usbcore: registered new interface driver uvcvideo
Jul 05 11:48:41 C007 kernel: Modules linked in: nvidia_drm(PO+) snd_sof_pci_intel_tgl snd_sof_intel_hda_common soundwire_intel snd_sof_intel_hda_mlink soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp nvidia_modeset(PO) snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi intel_uncore_frequency soundwire_generic_allocation snd_hda_codec_hdmi intel_uncore_frequency_common soundwire_bus intel_tcc_cooling snd_hda_scodec_tas2781_i2c snd_hda_intel x86_pkg_temp_thermal snd_soc_tas2781_fmwlib snd_intel_dspcfg intel_powerclamp snd_soc_tas2781_comlib snd_intel_sdw_acpi coretemp nvidia(PO) snd_soc_core snd_hda_codec snd_compress snd_hda_core i915(+) ac97_bus snd_hwdep snd_pcm_dmaengine snd_pcm uvcvideo iwlmvm btusb snd_seq_midi videobuf2_vmalloc processor_thermal_device_pci snd_seq_midi_event uvc btrtl processor_thermal_device drm_buddy mac80211 videobuf2_memops btintel snd_rawmidi processor_thermal_wt_hint kvm_intel ttm videobuf2_v4l2 btbcm processor_thermal_rfim snd_seq btmtk
Jul 05 11:48:41 C007 kernel:  cmdlinepart intel_rapl_msr processor_thermal_rapl libarc4 kvm spi_nor drm_display_helper snd_seq_device videodev bluetooth intel_rapl_common mtd cec irqbypass iwlwifi snd_timer videobuf2_common ideapad_laptop processor_thermal_wt_req ecdh_generic spi_intel_pci i2c_i801 mei_pxp mei_hdcp rc_core rapl snd intel_pmc_core mc processor_thermal_power_floor ecc sparse_keymap intel_cstate wmi_bmof nvidia_wmi_ec_backlight spi_intel cfg80211 i2c_smbus i2c_algo_bit soundcore intel_vsec processor_thermal_mbox crc8 platform_profile int3403_thermal pmt_telemetry int3400_thermal input_leds mei_me joydev int340x_thermal_zone acpi_tad pmt_class acpi_thermal_rel acpi_pad serio_raw mac_hid mei msr parport_pc ppdev lp parport efi_pstore nfnetlink dmi_sysfs ip_tables x_tables autofs4 dm_crypt usbhid hid_multitouch hid_generic crct10dif_pclmul crc32_pclmul polyval_clmulni polyval_generic nvme ghash_clmulni_intel ucsi_acpi i2c_hid_acpi intel_lpss_pci nvme_core r8169 sha256_ssse3 intel_lpss xhci_pci typec_ucsi i2c_hid thunderbolt
Jul 05 11:48:41 C007 kernel:  video sha1_ssse3 nvme_auth realtek idma64 xhci_pci_renesas typec hid wmi pinctrl_alderlake aesni_intel crypto_simd cryptd
Jul 05 11:48:42 C007 kernel: ACPI: video: [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
Jul 05 11:48:42 C007 kernel: ACPI: video: Video Device [PEGP] (multi-head: yes  rom: no  post: no)
Jul 05 11:48:42 C007 kernel: ACPI: video: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
Jul 05 11:48:46 C007 gsd-media-keys[2815]: Failed to grab accelerator for keybinding settings:rotate-video-lock
Jul 05 11:50:35 C007 gsd-media-keys[6016]: Failed to grab accelerator for keybinding settings:rotate-video-lock
cb@C007:~$ snap connect cameractrls:camera
cb@C007:~$ pw-dump | grep default.video.source
cb@C007:~$ gst-device-monitor-1.0 Video/Source
Probing devices...

[0:34:39.484367534] [12707]  WARN IPAManager ipa_manager.cpp:154 No IPA found in '/usr/lib/x86_64-linux-gnu/libcamera'
[0:34:39.484432189] [12707]  INFO Camera camera_manager.cpp:284 libcamera v0.2.0

Device found:

    name  : \_SB_.PC00.XHCI.RHUB.HS11-11:1.0-04f2:b7b6
    class : Source/Video
    caps  : image/jpeg, width=320, height=180
            image/jpeg, width=320, height=240
            image/jpeg, width=352, height=288
            image/jpeg, width=640, height=360
            image/jpeg, width=640, height=480
            image/jpeg, width=848, height=480
            image/jpeg, width=960, height=540
            image/jpeg, width=1280, height=720
            image/jpeg, width=1920, height=1080
            video/x-raw, format=YUY2, width=320, height=180
            video/x-raw, format=YUY2, width=320, height=240
            video/x-raw, format=YUY2, width=352, height=288
            video/x-raw, format=YUY2, width=640, height=360
            video/x-raw, format=YUY2, width=640, height=480
            video/x-raw, format=YUY2, width=848, height=480
            video/x-raw, format=YUY2, width=960, height=540
            video/x-raw, format=YUY2, width=1280, height=720
            video/x-raw, format=YUY2, width=1920, height=1080
    gst-launch-1.0 libcamerasrc camera-name="\\_SB_.PC00.XHCI.RHUB.HS11-11:1.0-04f2:b7b6" ! ...
and a last:

    gst-launch-1.0 v4l2src ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: A lot of buffers are being dropped.
Additional debug info:
../libs/gst/base/gstbasesink.c(3147): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
There may be a timestamping problem, or this computer is too slow.
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: A lot of buffers are being dropped.
Additional debug info:
../libs/gst/base/gstbasesink.c(3147): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
There may be a timestamping problem, or this computer is too slow.
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage: A lot of buffers are being dropped.
Additional debug info:
../libs/gst/base/gstbasesink.c(3147): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstXvImageSink:autovideosink0-actual-sink-xvimage:
T
People are also reading