Siduction Forum

Siduction Forum => Upgrade Warnings (DE / EN) => Topic started by: dpanter on 2021/10/22, 17:00:05

Title: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: dpanter on 2021/10/22, 17:00:05
DU currently removes pipewire-media-session as it's not yet updated to 0.3.39-1, meaning you no longer have any visible sound devices. Fun side effect, konsole hangs when trying to send a bell. :)

Downgrade all the pipewire packages to 0.3.38-2 to fix it for now.
Code: [Select]
sudo apt install {pipewire-media-session,libpipewire-0.3-0,libpipewire-0.3-common,libpipewire-0.3-modules,pipewire-audio-client-libraries,pipewire-bin,pipewire-pulse,pipewire-tests,pipewire,libspa-0.2-modules,libpipewire-0.3-0:i386,libpipewire-0.3-modules:i386,libspa-0.2-modules:i386,pipewire:i386}=0.3.38-2
Title: Re: DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: Pip on 2021/10/22, 21:32:57
Thanks for trying to fix it. For me, it just says that version 0.3.38-2 of all the packages can't be found.
Title: Re: DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: dpanter on 2021/10/22, 21:54:03
Ah sorry, 0.3.38-2 is available in Testing.
Title: Re: DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: dpanter on 2021/10/23, 14:29:06
After reading the changelog, it seems pipewire-media-session is out and wireplumber is the new hotness. Ran a new DU, installed wireplumber, rebooted, configured sound device settings and sound is now working again. Using external DAC via optical cable and it's running 192 KHz just fine.

Snipped the relevant changelog entries:
Code: [Select]
pipewire (0.3.39-1) unstable; urgency=medium
  * Don't build the pipewire-media-session binary package anymore,
      media-session has moved to a separate module to accelerate its
      deprecation in favour of WirePlumber.
  * Change priority order between pipewire-media-session and wireplumber,
      WirePlumber is now the recommended session manager.

Code: [Select]
$ pactl info | grep "Server Name"
Server Name: PulseAudio (on PipeWire 0.3.39)
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: Pip on 2021/10/23, 22:37:35
Nice. Thanks.
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: samoht on 2021/10/24, 09:18:34
Thanks, @dpanter, for sharing.

For German localized installs:

Auf deutsch:

Code: [Select]
$ pactl info | grep "Name des Servers"
Name des Servers: pulseaudio

Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: hendrikL on 2021/10/24, 11:09:30
Code: [Select]
pactl info | grep '^Name des Servers'
Name des Servers: PulseAudio (on PipeWire 0.3.39)

Code: [Select]
LANG=C  pactl info | grep '^Server Name'
Server Name: PulseAudio (on PipeWire 0.3.39)

As the changelog explained, pipewire-media-session is replaced by wireplumber!
That is not a bug, and do not break pipewire on a full-upgraded sid/unstable.
To install wireplumber you have to purge  pipewire-media-session and install wireplumber.

What I did/ had to do to install wireplumber (I had to remove  /etc/systemd/user/pipewire-session-manager.service before it worked),

Code: [Select]
apt purge  pipewire-media-session
rm /etc/systemd/user/pipewire-session-manager.service
apt install wireplumber

Code: [Select]
LANG=C apt policy pipewire-media-session
pipewire-media-session:
  Installed: (none)
  Candidate: 0.3.38-2
  Version table:
     0.3.38-2 500
        500 http://deb.debian.org/debian testing/main amd64 Packages
        100 /var/lib/dpkg/status


Code: [Select]
LANG=C apt policy wireplumber
wireplumber:
  Installed: 0.4.4-1
  Candidate: 0.4.4-1
  Version table:
 *** 0.4.4-1 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
        100 /var/lib/dpkg/status
     0.4.3-1 500
        500 http://deb.debian.org/debian testing/main amd64 Packages
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: devil on 2021/10/27, 20:53:25
There will be a package  pipewire-media-session again, it is waiting in NEW. What happened is, pipewire-media-session was made a standalone package and will eventually be succeeded by wireplumber, which is the new session-manager for pipewire.
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: finotti on 2021/10/27, 21:24:50
@devil: Sorry for the ignorance, but what does NEW stand for?
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: hendrikL on 2021/10/28, 10:43:32
I think, devil can explain it much better than me.

But for the start

https://ftp-master.debian.org/#new

Mostly you can find it out with "rmadison" (part of 'devscripts') like:

Code: [Select]
:~$ rmadison pipewire-media-session
pipewire-media-session | 0.3.38-2      | testing    | amd64, arm64, armel, armhf, i386, mips64el, mipsel, ppc64el, s390x
pipewire-media-session | 0.4.0-1       | new        | source, amd64

Packages in NEW (entirely new or with significant changes) are on the way, but have to be checked and accepted by the ftp-masters of debian.

If the maintainer has no luck, it could be in the NEW-query for a long, long time!
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: finotti on 2021/10/28, 13:22:56
Thanks hendrikL!  It's hard to search for a term like "new".  (And I thought it was an acronym.)

Part of the reason I asked was because devil had also mentioned that ksysguard was in NEW, but I cannot find it in the list (and it is still not installable).
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: devil on 2021/10/28, 14:13:54
@finotti: The new Systemmonitor (successor of ksysguard) runs fine unter 5.23 in sid. The following packages are installed:
Quote
ft@blue:~$ dpkg -l | grep ksys
rc  ksysguard-data                                4:5.21.5-2                             all          library for monitoring your system - shared library
ii  ksysguardd                                    4:5.21.5-2                             amd64        System Guard Daemon
ii  ksystemlog                                    4:21.08.0-1                            amd64        system log viewer
ii  ksystemstats                                  5.23.0-2                               amd64        plugin based system monitoring daemon
ii  libksysguardformatter1                        4:5.23.0-5                             amd64        library for system monitoring - ksysguardformatter shared library
ii  libksysguardsensorfaces1                      4:5.23.0-5                             amd64        library for system monitoring - ksysguardsensorfaces shared library
ii  libksysguardsensors1                          4:5.23.0-5                             amd64        library for system monitoring - ksysguardsensors shared library
ii  libksysguardsystemstats1                      4:5.23.0-5                             amd64        library for system monitoring - ksysguardsystemstats shared library
ii  qml-module-org-kde-ksysguard                  4:5.23.0-5                             amd64        KSysGuard QtDeclarative QML Support
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: finotti on 2021/10/28, 14:42:12
Ah!  I thought a new version of ksysguard was suppose to come in.  Thanks @devil!  All is working as expected.
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: whistler_mb on 2021/10/28, 16:00:33
Could it be that you mean this version?

Code: [Select]
$ apt policy plasma-systemmonitor
plasma-systemmonitor:
  Installed: 5.23.2-1~np1
  Candidate: 5.23.2-1~np1
  Version table:
 *** 5.23.2-1~np1 500
        500 https://downloadcontent.opensuse.org/repositories/home:/npreining:/debian-kde:/plasma523/Debian_Unstable ./ Packages
        100 /var/lib/dpkg/status
     5.23.0-2 500
        500 http://deb.debian.org/debian unstable/main amd64 Packages
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: dpanter on 2021/10/28, 16:41:32
ksysguard and the new plasma-systemmonitor are different.
It can be noted that ksysguard provides data for some widgets like Thermal Monitor, Resources Monitor, Netspeed Widget etc. Removing ksysguard means these no longer function. Guessing this may be fixed later.

What happened to my topic? :P
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: devil on 2021/10/29, 14:05:10
I guess I was puzzled :)

On topic I can state that pipewire works fine with wireplumber instead of pipewire-media-session.
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: absolut on 2021/10/30, 22:23:19
hi all,

i also ran into the issue on the dist-upgrade. reading through the thread, i got my audio back by running wireplumber manually as user. now, my main question is, how to get it running as daemon automatically on boot?

pipewire-session-manager was removed/purgedcompletely

according to this page:
https://pipewire.pages.freedesktop.org/wireplumber/running-wireplumber-daemon.html

Code: [Select]
absolut@sidbox: ~ $ systemctl --user --now enable wireplumber
Created symlink /home/absolut/.config/systemd/user/pipewire-session-manager.service → /usr/lib/systemd/user/wireplumber.service.
Created symlink /home/absolut/.config/systemd/user/pipewire.service.wants/wireplumber.service → /usr/lib/systemd/user/wireplumber.service.


Code: [Select]
absolut@sidbox: ~ $ dpkg -l | grep wire
ii  crda                                          4.14+git20191112.9856751-1          amd64        wireless Central Regulatory Domain Agent
ii  iw                                            5.9-3                               amd64        tool for configuring Linux wireless devices
ii  knetwalk                                      4:21.08.0-1                         amd64        wire puzzle game
ii  libpipewire-0.3-0:amd64                       0.3.39-3                            amd64        libraries for the PipeWire multimedia server
ii  libpipewire-0.3-common                        0.3.39-3                            all          libraries for the PipeWire multimedia server - common files
ii  libpipewire-0.3-modules:amd64                 0.3.39-3                            amd64        libraries for the PipeWire multimedia server - modules
ii  libwireplumber-0.4-0:amd64                    0.4.4-1                             amd64        Shared libraries for WirePlumber
ii  pipewire:amd64                                0.3.39-3                            amd64        audio and video processing engine multimedia server
ii  pipewire-bin                                  0.3.39-3                            amd64        PipeWire multimedia server - programs
ii  pipewire-pulse                                0.3.39-3                            amd64        PipeWire PulseAudio daemon
ii  rfkill                                        2.37.2-4                            amd64        tool for enabling and disabling wireless devices
ii  wireless-regdb                                2021.08.28-1                        all          wireless regulatory database for Linux
ii  wireless-tools                                30~pre9-13.1                        amd64        Tools for manipulating Linux Wireless Extensions
ii  wireplumber                                   0.4.4-1                             amd64        modular session / policy manager for PipeWire


running wireplumber as application from konsole enables audio devices, and everything seems fine... logout or reboot requires to manually start wireplumber again.

Code: [Select]
absolut@sidbox: ~ $ wireplumber &
[1] 156411
absolut@sidbox: ~ $ M 22:23:50.761386          wp-device ../lib/wp/device.c:620:wp_spa_device_new_from_spa_factory: SPA handle 'api.bluez5.enum.dbus' could not be loaded; is it installed?
M 22:23:50.761423       script/bluez bluez.lua:136:createMonitor: PipeWire's BlueZ SPA missing or broken. Bluetooth not supported.

am i missing something? any help appreciated. :) best!

absolut
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: dpanter on 2021/10/31, 00:19:07
reading through the thread, i got my audio back by running wireplumber manually as user. now, my main question is, how to get it running as daemon automatically on boot?
Simply installing wireplumber should handle everything for you. Purge everything you did there and reinstall wireplumber, let it install the proper services. Check the output for any issues. Once rebooted, check that wireplumber.service has started and pipewire-media-session.service is deleted or masked/dead.

Code: [Select]
$ systemctl --user status wireplumber
● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-10-28 22:14:25 CEST; 2 days ago
   Main PID: 2211 (wireplumber)
      Tasks: 4 (limit: 38404)
     Memory: 19.6M
        CPU: 36.585s
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─2211 /usr/bin/wireplumber

okt 28 22:14:25 panther-desktop systemd[1470]: Started Multimedia Service Session Manager.


Code: [Select]
$ systemctl --user status pipewire-media-session
○ pipewire-media-session.service
     Loaded: masked (Reason: Unit pipewire-media-session.service is masked.)
     Active: inactive (dead)
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: absolut on 2021/10/31, 07:45:07
okay, let's start with checking the situation before any attempts to fix it:

Code: [Select]
$ systemctl --user status wireplumber
× wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2021-10-31 07:39:34 CET; 2min 53s ago
    Process: 43964 ExecStart=/usr/bin/wireplumber (code=exited, status=70)
   Main PID: 43964 (code=exited, status=70)
        CPU: 39ms

Okt 31 07:39:34 sidbox systemd[43805]: wireplumber.service: Scheduled restart job, restart counter is at 5.
Okt 31 07:39:34 sidbox systemd[43805]: Stopped Multimedia Service Session Manager.
Okt 31 07:39:34 sidbox systemd[43805]: ^[[0;1;38;5;185m^[[0;1;39m^[[0;1;38;5;185mwireplumber.service: Start request repeated too quickly.
Okt 31 07:39:34 sidbox systemd[43805]: ^[[0;1;38;5;185m^[[0;1;39m^[[0;1;38;5;185mwireplumber.service: Failed with result 'exit-code'.
Okt 31 07:39:34 sidbox systemd[43805]: ^[[0;1;39mFailed to start Multimedia Service Session Manager.

and

Code: [Select]
$ systemctl --user status pipewire-media-session
Unit pipewire-media-session.service could not be found.

-----


after purging "all" related to pipewire and wireplumber, and removing states from user home folder
Code: [Select]
rm -r /home/absolut/.local/state/wireplumber/
 i remain with only libpipewire packages... after reboot audio perfectly works!
Code: [Select]
absolut@sidbox: ~ $ dpkg -l | grep wire
ii  crda                                          4.14+git20191112.9856751-1          amd64        wireless Central Regulatory Domain Agent
ii  iw                                            5.9-3                               amd64        tool for configuring Linux wireless devices
ii  knetwalk                                      4:21.08.0-1                         amd64        wire puzzle game
ii  libpipewire-0.3-0:amd64                       0.3.39-3                            amd64        libraries for the PipeWire multimedia server
ii  libpipewire-0.3-common                        0.3.39-3                            all          libraries for the PipeWire multimedia server - common files
ii  libpipewire-0.3-modules:amd64                 0.3.39-3                            amd64        libraries for the PipeWire multimedia server - modules
ii  libwireplumber-0.4-0:amd64                    0.4.4-1                             amd64        Shared libraries for WirePlumber
ii  rfkill                                        2.37.2-4                            amd64        tool for enabling and disabling wireless devices
ii  wireless-regdb                                2021.08.28-1                        all          wireless regulatory database for Linux
ii  wireless-tools                                30~pre9-13.1                        amd64        Tools for manipulating Linux Wireless Extensions



Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: dpanter on 2021/10/31, 09:01:18
i remain with only libpipewire packages... after reboot audio perfectly works!
You do have libwireplumber-0.4-0:amd64 installed... ;) Not sure how it's working here to be honest, as I understand it, the wireplumber (or pipewire-media-session) binary needs to run as a user process.
In any case, working is working. :)
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: absolut on 2021/10/31, 10:20:42
well, yeah, as intermediate state of affairs that is fine to me, but honestly i wonder how that actually does work...

i am now spending the day with family, and will later come back to that topic... curiosity, you know :D
Title: Re: [SOLVED] DU breaks pipewire (incomplete 0.3.39-1 atm)
Post by: sidemmc on 2021/10/31, 15:11:58
Remark: for bluetooth working, wireplumber requires package    libspa-0.2-bluetooth   being installed (#997862).