Snapshot doesn't work until camera is unplugged and plugged back in or pipewire or wireplumber is restarted

Bug #2061687 reported by Jeremy Bícha
120
This bug affects 31 people
Affects Status Importance Assigned to Milestone
OEM Priority Project
New
Undecided
Unassigned
PipeWire
Fix Released
Unknown
gnome-snapshot (Ubuntu)
Invalid
High
Unassigned
pipewire (Ubuntu)
Fix Released
High
Unassigned
Noble
Fix Released
High
Nathan Teodosio

Bug Description

Impact
------

Snapshot fails to show the camera feed when a USB camera is present in addition to the embedded one since boot.

Test plan
---------

*Power a computer with an integrated webcam off.
*Plug an USB camera in.
*Power the computer.
*Start Snapshot.

Expected: Snapshot starts showing the live feed of one of the cameras.

Regression potential
--------------------

Detection and use of devices relying on the V4L2 on systems using Pipewire.

Original description
--------------------

Ubuntu 24.04 LTS Beta

On multiple computers, it appears like Snapshot doesn't work until I either:
- unplug the external USB webcam and plug it back in
- use the Fn key to disable the internal webcam and re-enable it

I have reported this issue upstream

Jeremy Bícha (jbicha)
Changed in pipewire (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in pipewire:
status: Unknown → New
Jeremy Bícha (jbicha)
description: updated
Changed in wireplumber (Ubuntu):
importance: Undecided → High
status: New → Triaged
description: updated
Revision history for this message
Tim Richardson (tim-richardson) wrote :

For me the fix included the new version of pipewire (now released in 24.04) AND adding my user to the video group

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/2061687

tags: added: iso-testing
Changed in pipewire:
status: New → Fix Released
Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

I still have same problem on Ubuntu 24.04 with gnome-snapshot: Installed: 46.2-1ubuntu2
and also on Ubuntu 24.10 with gnome-snapshot: Installed: 46.2-1ubuntu3
on Ubuntu 24.10 I have pipewire: Installed: 1.2.2-1

Rex Tsai (chihchun)
tags: added: oem-priority
Revision history for this message
Tim Richardson (tim-richardson) wrote : Re: [Bug 2061687] Re: Snapshot doesn't work until camera is unplugged and plugged back in

For me, the problem in 24.04 is reproducible, but not after I add my user
to the video group.

On Mon, 12 Aug 2024 at 06:55, Rex Tsai <email address hidden> wrote:

> ** Tags added: oem-priority
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (2065288).
> https://bugs.launchpad.net/bugs/2061687
>
> Title:
> Snapshot doesn't work until camera is unplugged and plugged back in
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/oem-priority/+bug/2061687/+subscriptions
>
>

--
Tim Richardson

Jeremy Bícha (jbicha)
summary: - Snapshot doesn't work until camera is unplugged and plugged back in
+ Snapshot doesn't work until camera is unplugged and plugged back in or
+ pipewire or wireplumber is restarted
Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

I have this problem since I installed Ubuntu 24.04 LTS and it persistis on Ubuntu 24.04.1 LTS. I didn't happen on Ubuntu 23.10.

Revision history for this message
corrado venturini (corradoventu) wrote :

after 'systemctl --user restart wireplumber.service' snapshot shows 'camera not responding'

Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

@corraduventu tray this command: systemctl --user restart pipewire

Changed in pipewire:
status: Fix Released → Unknown
Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

after 'systemctl --user restart pipewire' snapshot starts but I see a heavily pixeled image

Starting from terminal:
corrado@corrado-n13-oo-0901:~$ snapshot
2024-09-02T15:27:23.681647Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2024-09-02T15:27:23.681664Z INFO snapshot::application::imp: Version: 46.2
2024-09-02T15:27:23.681667Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers

Changed in pipewire:
status: Unknown → New
Revision history for this message
Hans de Goede (j-w-r-degoede) wrote :

I have submitted a pipewire merge-request upstream which should fix this:

https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2118

Revision history for this message
Sebastien Bacher (seb128) wrote :

I've pushed an Oracular test package with the fix to https://launchpad.net/~ubuntu-desktop/+archive/ubuntu/ppa now, feedback is welcome if anyone having the issue would like to give it a try. (I will also add a Noble version in a bit once I've adapted the patch to apply to the version we have in that serie)

Changed in pipewire:
status: New → Fix Released
Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

@seb128 is there a way to update just the pipewire to test the new packege you submitted and avoid updating the other packages contained on the PPA?

Revision history for this message
Sebastien Bacher (seb128) wrote :

It's the only package published for Oracular in that ppa

Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

But I'm on noble right now.

Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

After installing your PPA snapshot works fine on my Oracular
corrado@corrado-n17-oo-0908:~$ snapshot
2024-09-13T07:07:48.751379Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2024-09-13T07:07:48.751395Z INFO snapshot::application::imp: Version: 47.beta
2024-09-13T07:07:48.751399Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:763: FINISHME: support YUV colorspace with DRM format modifiers
MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:794: FINISHME: support more multi-planar formats with DRM modifiers
[0:01:09.006565255] [3415] INFO Camera camera_manager.cpp:313 libcamera v0.3.1

Bus 001 Device 002: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000

Note snapshot takes about 10 seconds to show the image
... and please resurrect guvcview

tags: added: udeng-4556
Jeremy Bícha (jbicha)
no longer affects: wireplumber (Ubuntu)
no longer affects: gnome-snapshot (Ubuntu Noble)
Changed in pipewire (Ubuntu):
status: Triaged → Fix Committed
Changed in pipewire (Ubuntu Noble):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pipewire - 1.2.3-1ubuntu1

---------------
pipewire (1.2.3-1ubuntu1) oracular; urgency=medium

  * Cherry pick upstream fixes to resolve issues where sometime a camera
    would not be listed unless the device was reconnected or pipewire
    restarted (lp: #2061687)

 -- Sebastien Bacher <email address hidden> Wed, 11 Sep 2024 13:23:51 +0200

Changed in pipewire (Ubuntu):
status: Fix Committed → Fix Released
Changed in pipewire (Ubuntu Noble):
assignee: nobody → Nathan Teodosio (nteodosio)
status: Triaged → In Progress
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Any noble volunteer to test the rebased patch for 24.04? PPA: https://launchpad.net/~nteodosio/+archive/ubuntu/wirepipe.

Revision history for this message
Alexander Browne (elcste) wrote :

I can try it when I am at home tonight (about 10 hours from now).

I haven't been following the details of this bug. Am I right that after installing this package, the idea is that if I open Snapshot the camera should just work?

Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

I'll do it, @nteodosio. I'll add the PPA and update right now.

Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

After adding the PPA I received this errors when trying to update:

sudo apt update
Obter:1 http://apt.insync.io/ubuntu noble InRelease [5.541 B]
Ign:2 http://linux.dropbox.com/ubuntu noble InRelease
Atingido:3 http://security.ubuntu.com/ubuntu noble-security InRelease
Atingido:4 http://archive.ubuntu.com/ubuntu noble InRelease
Atingido:5 https://packages.microsoft.com/repos/edge stable InRelease
Atingido:6 http://linux.dropbox.com/ubuntu noble Release
Atingido:7 http://dl.google.com/linux/earth/deb stable InRelease
Atingido:8 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Atingido:9 https://dl.google.com/linux/chrome/deb stable InRelease
Atingido:10 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Atingido:12 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Atingido:13 https://ppa.launchpadcontent.net/danielrichter2007/grub-customizer/ubuntu noble InRelease
Atingido:14 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
Err:15 https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu noble InRelease
  403 Forbidden [IP: 185.125.190.80 443]
Atingido:16 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Atingido:17 https://ppa.launchpadcontent.net/obsproject/obs-studio/ubuntu noble InRelease
Atingido:18 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease
A ler as listas de pacotes... Pronto
E: Falhou obter https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu/dists/noble/InRelease 403 Forbidden [IP: 185.125.190.80 443]
E: O repositório 'https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu noble InRelease' não está assinado.
N: Atualizações a partir de tal repositório não podem ser feitas de forma segura e estão, portanto, desativadas por definição.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Revision history for this message
corrado venturini (corradoventu) wrote :

corrado@corrado-n4-noble:~$ sudo add-apt-repository ppa:nteodosio/wirepipe
sudo apt update
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu/
Suites: noble
Components: main
'
More info: https://launchpad.net/~nteodosio/+archive/ubuntu/wirepipe
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:4 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
Hit:5 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Hit:6 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease
Err:8 https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu noble InRelease
  403 Forbidden [IP: 185.125.190.80 443]
Hit:9 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
E: Failed to fetch https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu/dists/noble/InRelease 403 Forbidden [IP: 185.125.190.80 443]
E: The repository 'https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu noble InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Hit:1 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:2 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:3 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Err:4 https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu noble InRelease
  403 Forbidden [IP: 185.125.190.80 443]
Hit:5 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
Hit:6 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Hit:7 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:8 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease
Hit:9 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
E: Failed to fetch https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu/dists/noble/InRelease 403 Forbidden [IP: 185.125.190.80 443]
E: The repository 'https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu noble InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
corrado@corrado-n4-noble:~$

Revision history for this message
Nathan Teodosio (nteodosio) wrote : Re: [Bug 2061687] Re: Snapshot doesn't work until camera is unplugged and plugged back in or pipewire or wireplumber is restarted

Oh I know what's happenning, that error message seems inaccurate. I see
in https://launchpad.net/~nteodosio/+archive/ubuntu/wirepipe/+packages
that although package is built it is not _published_ yet. That is taking longer
than usual.

Please don't try again until at least a few hours have elapsed.

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

There was some problem on Launchpad side, it seems to be now resolved, if you can please try again.

Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):
Download full text (3.7 KiB)

corrado@corrado-n4-noble:~$ sudo add-apt-repository ppa:nteodosio/wirepipe
[sudo] password for corrado:
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu/
Suites: noble
Components: main
'
More info: https://launchpad.net/~nteodosio/+archive/ubuntu/wirepipe
Adding repository.
Press [ENTER] to continue or Ctrl-c to cancel.
Found existing deb entry in /etc/apt/sources.list.d/nteodosio-ubuntu-wirepipe-noble.sources
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu noble InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Get:5 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7,532 B]
Get:6 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7,468 B]
Get:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7,462 B]
Hit:8 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Get:9 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7,461 B]
Fetched 29.9 kB in 2s (16.9 kB/s)
Reading package lists... Done
corrado@corrado-n4-noble:~$ sudo apt update
Hit:1 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:2 https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu noble InRelease
Hit:3 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:4 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:6 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Hit:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease
Hit:8 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:9 http://security.ubuntu.com/ubuntu noble-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
39 packages can be upgraded. Run 'apt list --upgradable' to see them.
corrado@corrado-n4-noble:~$
corrado@corrado-n4-noble:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
  file-roller fonts-opensymbol libreoffice-base-core libreoffice-calc
  libreoffice-common libreoffice-core libreoffice-draw libreoffice-gnome
  libreoffice-gtk3 libreoffice-help-common libreoffice-help-en-gb
  libreoffice-help-en-us libreoffice-help-it libreoffice-impress
  libreoffice-l10n-en-gb libreoffice-l10n-en-za libreoffice-l10n-it
  libreoffice-math libreoffice-style-colibre libreoffice-style-elementary
  libreoffice-style-yaru libreoffice-uiconfig-calc libreoffice-uiconfig-common
  libreoffice-uiconfig-draw libreoffice-uiconfig-impress
  libreoffice-uiconfig-math libreoffice-uiconfig-writer libreoffice-writer
  libuno-cppu3t64 libuno-cppuhelpergcc3-3t64 libuno-purpenvhelpergcc3-3t64
  libuno-sal3t64 libuno-salhelpergcc3-3t64 python3-distupgrade python3-uno
  ubuntu-release-upgrader-core ubuntu-release-upgrader-gtk uno-libs-private
  ure
...

Read more...

Revision history for this message
corrado venturini (corradoventu) wrote :

nothing changed

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Thanks for testing, Corrado. Did you reboot after installing the update or did
you restart the Pipewire service?

Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

Rebooted, tested twice on my Dell laptop with internal webcam and on my desktop with Bus 001 Device 002: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000.

corrado@corrado-n4-noble:~$ apt policy pipewire
pipewire:
  Installed: 1.0.5-1ubuntu3
  Candidate: 1.0.5-1ubuntu3
  Version table:
 *** 1.0.5-1ubuntu3 500
        500 https://ppa.launchpadcontent.net/nteodosio/wirepipe/ubuntu noble/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.5-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     1.0.5-1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
corrado@corrado-n4-noble:~$

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Thank you for your testing, Corrado, it is really helpful. I'll then
investigate further on actual hardware on Monday.

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Testing in 24.04 installation I reproduce the issue with the PPA too. It logs

Oct 07 14:12:25 q1-s systemd[1397]: Started pipewire.service - PipeWire Multimedia Service.
Oct 07 14:12:25 q1-s pipewire[1412]: mod.jackdbus-detect: Failed to receive jackdbus reply: org.freedesktop.DBus.Error.ServiceUnknown: The name org.jackaudio.service was not provided by any .service files
Oct 07 14:12:26 q1-s pipewire[1412]: [0:00:11.266145334] [1412] WARN IPAManager ipa_manager.cpp:154 No IPA found in '/usr/lib/x86_64-linux-gnu/libcamera'
Oct 07 14:12:26 q1-s pipewire[1412]: [0:00:11.266199494] [1412] INFO Camera camera_manager.cpp:284 libcamera v0.2.0
Oct 07 14:12:26 q1-s pipewire[1412]: spa.v4l2: '/dev/video0' VIDIOC_QUERYCTRL: Input/output error
Oct 07 14:12:26 q1-s pipewire[1412]: spa.v4l2: '/dev/video0' VIDIOC_QUERYCTRL: Input/output error
Oct 07 14:13:48 q1-s pipewire[1412]: pw.core: 0x6514c13cdaf0: error -32 for resource 26: target not found

description: updated
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Built pipewire/1.0.5-1ubuntu4 in ppa:nteodosio/wirepipe.

I tested on my end and it seems to work now, can you please confirm it?

It's already published this time (:: https://launchpad.net/~nteodosio/+archive/ubuntu/wirepipe/+sourcepub/16522616/+listing-archive-extra.

Revision history for this message
corrado venturini (corradoventu) wrote :

After installing the NEW PPA snapshot FINALLY works on Ubuntu 24.04!
Thanks
corrado@corrado-n9-noble:~$ inxi -SGx
System:
  Host: corrado-n9-noble Kernel: 6.8.0-45-generic arch: x86_64 bits: 64
    compiler: gcc v: 13.2.0
  Desktop: GNOME v: 46.0 Distro: Ubuntu 24.04.1 LTS (Noble Numbat)
Graphics:
  Device-1: Intel RocketLake-S GT1 [UHD Graphics 730] vendor: Gigabyte
    driver: i915 v: kernel arch: Gen-12.1 bus-ID: 00:02.0
  Device-2: Logitech HD Webcam C615 driver: snd-usb-audio,uvcvideo type: USB
    bus-ID: 1-5:4
  Display: wayland server: X.Org v: 23.2.6 with: Xwayland v: 23.2.6
    compositor: gnome-shell driver: dri: iris gpu: i915
    resolution: 1920x1080~60Hz
  API: EGL v: 1.5 drivers: iris,swrast platforms:
    active: wayland,x11,surfaceless,device inactive: gbm
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.0.9-0ubuntu0.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel Graphics (RKL GT1)
corrado@corrado-n9-noble:~$

Revision history for this message
Nathan Teodosio (nteodosio) wrote : Debdiff for 24.04

Great, thank you confirming!

Attaching the clean debdiff for ubuntu-sponsors.

Changed in pipewire (Ubuntu Noble):
status: In Progress → Triaged
Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

Nathan, when a bug is corrected, as you helped us (thanks for that). What happens to the fix for it to reach us?

Revision history for this message
Nathan Teodosio (nteodosio) wrote : Re: [Bug 2061687] Re: Snapshot doesn't work until camera is unplugged and plugged back in or pipewire or wireplumber is restarted

Raul, for users in a stable release (as is the case for 24.04, Noble), the
process is described at https://wiki.ubuntu.com/StableReleaseUpdates.

The process is already kicked off so if everything goes to plan you can expect
in about one week to have the fix in the proposed pocket, and then maybe two or
three until it reaches the normal updates pocket which the vast majority of
users track.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks Nathan, I've tweaked the change to add the patch to the debian/patches/series and uploaded

Changed in pipewire (Ubuntu Noble):
status: Triaged → Fix Committed
Changed in gnome-snapshot (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Robert Mader (robert.posteo) wrote :

Hi, I just wanted to add that the upstream fixes now also have been backported to the 1.0 branch in https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2145 and should be released in 1.0.9 - that should allow to drop the downstream patches again, which I guess would be nice in the long term.

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Jeremy, or anyone else affected,

Accepted pipewire into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pipewire/1.0.5-1ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-noble
Revision history for this message
corrado venturini (corradoventu) wrote :

I already had pipewire from your PPA so i have 1.0.5-1ubuntu4 and the new one from proposed seems older:
corrado@corrado-n9-noble:~$ apt policy pipewire
pipewire:
  Installed: 1.0.5-1ubuntu4
  Candidate: 1.0.5-1ubuntu4
  Version table:
 *** 1.0.5-1ubuntu4 100
        100 /var/lib/dpkg/status
     1.0.5-1ubuntu2 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/main amd64 Packages
     1.0.5-1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
     1.0.5-1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
corrado@corrado-n9-noble:~$

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Yeah that's a bit annoying, in that case you would have to do either

  apt install pipewire=1.0.5-1ubuntu2

or

  apt install pipewire/noble-proposed

or, using ppa-purge:

  ppa-purge ppa:nteodosio/pipewire

Revision history for this message
corrado venturini (corradoventu) wrote :

doing apt install pipewire/noble-proposed snapshot has been uninstalled and now
corrado@corrado-n9-noble:~$ apt policy gnome-snapshot
gnome-snapshot:
  Installed: (none)
  Candidate: 46.2-1ubuntu2
  Version table:
     46.2-1ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
corrado@corrado-n9-noble:~$ sudo apt install gnome-snapshot
[sudo] password for corrado:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gstreamer1.0-pipewire : Depends: pipewire (= 1.0.5-1ubuntu1) but 1.0.5-1ubuntu2 is to be installed
                         Depends: libpipewire-0.3-0t64 (= 1.0.5-1ubuntu1) but 1.0.5-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.

Revision history for this message
corrado venturini (corradoventu) wrote :

NO problem, I have a spare partition for test, will install a fresh copy of Noble to do the test.

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Hi Corrado, that's pretty annoying, sorry about it.

I think ppa-purge will automatically roll back the binary packages associated with this source package for you, such that you don't need to do this manually for each of them, nor install 24.04 from scratch.

Revision history for this message
corrado venturini (corradoventu) wrote :

On my new installed Noble I activated proposed and try: sudo apt install pipewire/noble-proposed
but I have a huge list of changes, so I refused.
Suggestions? Thanks.

attaching text returned from apt

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

I reckon you'd then need to install at least a number of the other binaries produced by this source package.

Jeremy pointed me to https://jeremy.bicha.net/2022/03/29/how-to-install-a-bunch-of-debs/.

You could alteratively leave the verification to me, I can only test it on Monday though.

Revision history for this message
corrado venturini (corradoventu) wrote :

No problem, in my new Noble installation I refused the change, so I have a working system.
Writing from my Plucky where snapshot works fine.

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

In a 24.04 machine, I installed from noble-proposed:

--->
ii gstreamer1.0-pipewire:amd64 1.0.5-1ubuntu2 amd64 GStreamer 1.0 plugin for the PipeWire multimedia server
ii libpipewire-0.3-0t64:amd64 1.0.5-1ubuntu2 amd64 libraries for the PipeWire multimedia server
ii libpipewire-0.3-common 1.0.5-1ubuntu2 all libraries for the PipeWire multimedia server - common files
ii libpipewire-0.3-modules:amd64 1.0.5-1ubuntu2 amd64 libraries for the PipeWire multimedia server - modules
ii pipewire:amd64 1.0.5-1ubuntu2 amd64 audio and video processing engine multimedia server
ii pipewire-bin 1.0.5-1ubuntu2 amd64 PipeWire multimedia server - programs
ii pipewire-pulse 1.0.5-1ubuntu2 amd64 PipeWire PulseAudio daemon
<---

and then

*Powered off the computer with an integrated webcam.
*Plugged an USB camera in.
*Powered the computer on.
*Started Snapshot.

The integrated camera feed was displayed normally in Snapshot.

tags: added: verification-done-noble
removed: verification-needed-noble
tags: added: verification-done
removed: verification-needed
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for pipewire has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pipewire - 1.0.5-1ubuntu2

---------------
pipewire (1.0.5-1ubuntu2) noble; urgency=medium

  * d/p/snapshot: Fix missing V4L2 sources that manifest in Snapshot failing
    to find a camera (LP: #2061687).

 -- Nathan Pratta Teodosio <email address hidden> Tue, 08 Oct 2024 17:02:49 +0200

Changed in pipewire (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

Thank you all, guys, for fixing that. It's being a pleasure using Ubuntu with fast fixes of these kind of bugs. I'll be waiting for the fix to come through updates! God bless you all!

Revision history for this message
corrado venturini (corradoventu) wrote :

Installed new pipewire but snapshot still says 'No camera..' also after reboot

corrado@corrado-n4-noble:~$ apt policy pipewire
pipewire:
  Installed: 1.0.5-1ubuntu2
  Candidate: 1.0.5-1ubuntu2
  Version table:
 *** 1.0.5-1ubuntu2 500 (phased 10%)
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.5-1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
corrado@corrado-n4-noble:~$ snapshot
2024-11-07T17:50:14.406975Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2024-11-07T17:50:14.406986Z INFO snapshot::application::imp: Version: 46.2
2024-11-07T17:50:14.406988Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Hmmm I need to wonder how can this be if you tested the PPA successfully.

Is it possible that some binary is still behind? Can you please do 'apt update' and paste the output of 'apt list --upgradable' and 'dpkg -l|grep pipewire'?

Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

Nathan, I just received the update of pipewire, after installing it I rebooted the notebook and the problem persists, the Snapshot doesn't recognize the Webcam.

Output of apt policy:

raulgrangeiro@RAUL-PC-2:~$ apt policy pipewire
pipewire:
  Instalado: 1.0.5-1ubuntu2
  Candidato: 1.0.5-1ubuntu2
  Tabela de Versão:
 *** 1.0.5-1ubuntu2 500 (faseado 40%)
        500 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.5-1 500
        500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages

Revision history for this message
Mossroy (mossroy) wrote :

Same for me: I received version 1.0.5-1ubuntu2 if pipewire, but Snapshot still displays "No Camera Found"

Revision history for this message
corrado venturini (corradoventu) wrote :

Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
corrado@corrado-n4-noble:~$ apt list --upgradable
Listing... Done
corrado@corrado-n4-noble:~$ dpkg -l|grep pipewire
ii gstreamer1.0-pipewire:amd64 1.0.5-1ubuntu2 amd64 GStreamer 1.0 plugin for the PipeWire multimedia server
ii libpipewire-0.3-0t64:amd64 1.0.5-1ubuntu2 amd64 libraries for the PipeWire multimedia server
ii libpipewire-0.3-common 1.0.5-1ubuntu2 all libraries for the PipeWire multimedia server - common files
ii libpipewire-0.3-modules:amd64 1.0.5-1ubuntu2 amd64 libraries for the PipeWire multimedia server - modules
ii pipewire:amd64 1.0.5-1ubuntu2 amd64 audio and video processing engine multimedia server
ii pipewire-alsa:amd64 1.0.5-1ubuntu2 amd64 PipeWire ALSA plugin, for ALSA applications to output via PipeWire
ii pipewire-audio 1.0.5-1ubuntu2 all recommended set of PipeWire packages for a standard audio desktop use
ii pipewire-bin 1.0.5-1ubuntu2 amd64 PipeWire multimedia server - programs
ii pipewire-pulse 1.0.5-1ubuntu2 amd64 PipeWire PulseAudio daemon
corrado@corrado-n4-noble:~$

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Can you please file a new bug since this one got closed?

Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

Nathan, what if we do that and not much people sign it too and it doesn't become relevant? Wouldn't be better to change the status to not fixed and fix it in this thread?

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

That's a fair point, but is the bug as written unambiguously accurate? I.e. the original description said

> Snapshot doesn't work until I either:
> - unplug the external USB webcam and plug it back in
> - use the Fn key to disable the internal webcam and re-enable it

If I run the test plan in 24.04, namely

--->
*Power a computer with an integrated webcam off.
*Plug an USB camera in.
*Power the computer.
*Start Snapshot.

Expected: Snapshot starts showing the live feed of one of the cameras.
<---

it passes here. Can you confirm that exactly that is false (and which step fails) for you? Or if that doesn't fail as written, then it's really better to open a new bug with the steps that lead to the issue otherwise this one will become confusing as it will merge reports from two different Pipewire versions.

(On a side note I still don't understand how #30 confirmed the fix from the PPA but #49 does not, as the PPA fix is equal to the fix that thereafter landed in the archive.)

Revision history for this message
corrado venturini (corradoventu) wrote :

Created new bug according your suggestion: https://bugs.launchpad.net/ubuntu/+source/gnome-snapshot/+bug/2087858
Note: your PPA was working but on this system i had a lot of other applications installed.
Following test (unsuccessful) was done in system with few additional applications installed.
the NEW system created for bug 2087858 is a fresh install with just the preinstalled apps.

Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

Nathan, my notebook doesn't have the Fn key to disable and enable the webcam, but it only works when I type this command on terminal: systemctl --user restart pipewire

And this is the exactly problem described on this thread. I know we're bothering you a bit, but would you try to fix it one more time?

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Hi Raul, this is no bother, rather helpful when a problem's context is reported. I have an idea to reproduce it and will try today or tomorrow and let you know.

Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

Good morning, Nathan. Have you had success on the idea to solve the issue with pipewire?

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

I just built an unaltered Pipewire 1.0.9 (the last one in the 1.0 branch),
'pipewire --version' says 1.0.9. Even ditching our downstream patches, Snapshot
still has what seems to be the same trouble.

I'd suggest filing a report upstream[1] (maybe it is already covered by [2] or
[3]). If you do so, they will probably want you on version 1.0.9, which is their
latest. You could build it and install it yourself or install from the PPA[4].

[1]https://gitlab.freedesktop.org/pipewire/pipewire.
[2]https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4369
[3]https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4058
[4]https://launchpad.net/~nteodosio/+archive/ubuntu/wirepipe/+packages

Revision history for this message
corrado venturini (corradoventu) wrote :

Your PPA contains many packages, should I install all amd packages? or just some? thanks.

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Just add the PPA and do 'apt upgrade' so that only the Pipewire packages that
you already have are upgraded.

Am 29/11/2024 um 08:44 schrieb <email address hidden>:
> Your PPA contains many packages, should I install all amd packages? or
> just some? thanks.
>

Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

Installed your PPA but problem remains.
Just updated existing issue: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3960

SORRY, after installing Your PPA and REBOOT snapshot works fine
THANKS

Revision history for this message
Yao Wei (medicalwei) wrote (last edit ):

@nteodosio, I have the same issue with pipewire 1.0.5-1ubuntu2, and the issue is the same and still reproducible.

(GNOME Snapshot did not find any camera / pipewire did not list any camera, unless usb unbind then bind or restart pipewire/wireplumber)

However I can confirm that backporting

https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2145

instead of just

https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/2118

can fix the issue for noble.

The one that's currently uploaded in -updates contains only the latter

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Yao, I split this bug to LP:2087858 because this one was already marked fix released. In hindsight that caused more confusion than it avoided.

Anyway, in that bug I commented that I cherry picked 2145 to the PPA but the problem persisted for me[1]. #66 confirmed that and so until your comment I had no information this could work for anyone. #66 was later amended but Launchpad does not send a notification for amended comments so I never read it.

All in all with two confirmations (yours and Corrado's) I must assume I'm hitting a different problem and we should SRU 2145.

[1]https://bugs.launchpad.net/ubuntu/+source/gnome-snapshot/+bug/2087858/comments/9

Changed in pipewire (Ubuntu Noble):
status: Fix Released → In Progress
Revision history for this message
Sebastien Bacher (seb128) wrote :

I'm reopening this bug since the fix was not enough and uploaded 1.0.5-1ubuntu3 which replaces our incomplete cherry pick by the version of the patch that was officially backported upstream (which Nathan got tested in his ppa and confirmed to be working for people who still had the issue)

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Jeremy, or anyone else affected,

Accepted pipewire into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pipewire/1.0.5-1ubuntu3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in pipewire (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
removed: verification-done verification-done-noble
Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (pipewire/1.0.5-1ubuntu3)

All autopkgtests for the newly accepted pipewire (1.0.5-1ubuntu3) for noble have finished running.
The following regressions have been reported in tests triggered by the package:

mutter/46.2-1ubuntu0.24.04.5 (s390x)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/noble/update_excuses.html#pipewire

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Yao Wei (medicalwei) wrote :

Confirmed gnome-snapshot USB webcam issue is fixed on noble:

Issue is reproducible with pipewire 1.0.5-1ubuntu2
Issue is not reproducible with pipewire 1.0.5-1ubuntu3

tags: added: verification-done verification-done-noble
removed: verification-needed verification-needed-noble
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pipewire - 1.0.5-1ubuntu3

---------------
pipewire (1.0.5-1ubuntu3) noble; urgency=medium

  * debian/patches/git_fix_videoacl.patch:
    - replace our incomplete cherry pick by the version that landed
      upstream as part of merge request #2145 (lp: #2061687)

 -- Nathan Pratta Teodosio <email address hidden> Thu, 13 Feb 2025 21:37:23 +0100

Changed in pipewire (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Raul Grangeiro (raulgrangeiro) wrote :

Guys, I've installed the new package and the issue was solved. Thank you a lot for the fix, Nathan. God bless you!

Revision history for this message
Mossroy (mossroy) wrote :

Camera app now works for me, too.

Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers