Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pipewire & Wireplumber again
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
northfrisia
n00b
n00b


Joined: 01 Feb 2021
Posts: 36

PostPosted: Sun May 26, 2024 1:26 pm    Post subject: Pipewire & Wireplumber again Reply with quote

My setup:
OS: Gentoo 2.15 x86_64
Host: MS-7C02 (1.0)
Kernel: Linux 6.9.2-RT
Uptime: 44 mins
Packages: 2015 (emerge)
Shell: zsh 5.9
Display (HP LP2475w): 1920x1200 @ 60Hz
Bios (UEFI): 3.60 (5.14)
WM: Openbox (X11)
WM Theme: Friendly-Black-mcc
Theme: Adwaita [GTK3]
Icons: gnome [GTK3]
Cursor: Adwaita
Terminal: kitty 0.35.0
Terminal Font: HackNerdFontComplete-Regular (12pt)
CPU: AMD Ryzen 5 3600 (12) @ 3.60 GHz
GPU: NVIDIA GeForce RTX 2060 SUPER [Discrete]
Memory: 1.95 GiB / 31.30 GiB (6%)

An USB-DAC is connected to the system and the speakers are fed from it and there is no further additional audio device.

This is bare "Gentoo with Openbox" system and no fully fledged desktop environment.
The system is started with the help of OpenRC.

Before wirepluber 0.5 everything works fine. After that: The Sound Of Silence (but not by Simon and Garfunkel).


I followed the instructions here:
https://wiki.gentoo.org/wiki/PipeWire

But obviously I did something wrong, because ... Sound of Silence...

I copied the config-file pipewire.conf to /etc/pipewire/. and ~/.config/pipewire/.
gentoo-pipewire-launcher is started via autostart.sh of openbox before anything else and
put into background.

echo $DBUS_SESSION_BUS_ADDRESS is not empty and valid.

I installed helvum and qpwgraph. But there are basically empty: Nodes without ports.
No node reflects the hardware I am using.

I could make this post even longer by flood it with outputs of pw-cli pw-dump and so forth...
...but this would help...I don't know.
I cannot watch videos about this topic fo obvious reasons...

I need some help...obviously... :)
Please let me know, which dump of what may help to solve this problem...

Cheers!
NorthFrisia


Last edited by northfrisia on Sun May 26, 2024 1:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 231
Location: Gentoo forums

PostPosted: Sun May 26, 2024 1:42 pm    Post subject: Reply with quote

relevant news item

Try to migrate your configuration following the instructions

Edit: As far as I'm concerned I also had to remove old config dirs/files:

Code:
$ rm -r ~/.config/wireplumber/main.lua.d ~/.local/state/wireplumber
# rm -r /etc/pipewire /etc/wireplumber/bluetooth.lua.d /etc/wireplumber/main.lua.d


Now there's only
Code:
/etc/wireplumber/wireplumber.conf.d/gentoo-sound-server-enable-audio-bluetooth.conf


installed by media-video/pipewire.

After a reboot, sound came back.


Last edited by eeckwrk99 on Sun May 26, 2024 1:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
northfrisia
n00b
n00b


Joined: 01 Feb 2021
Posts: 36

PostPosted: Sun May 26, 2024 1:49 pm    Post subject: Reply with quote

I read the news item beforehand - I had no configuration.

The news item said:
+Most typical desktop users, including EasyEffects users, should not
+notice any change to their system. That said, it was not uncommon for
+people to suggest or implement configuration changes using the Lua API.

...so I thougth, I would be one of the "most typical desktop users".

Unfortunately there is nothing I could migrate.

I am missing the nodes reflecting my hardware and I am missing the ports to connect with.

How can I proceed successfully?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22658

PostPosted: Sun May 26, 2024 2:58 pm    Post subject: Reply with quote

To be sure you are working on the right problem, have you confirmed that if you halt all Pipewire/Wireplumber processes, and use straight ALSA to play a test file, that the test file produces sounds as expected? If ALSA is broken, Pipewire has no hope of working, so the first step is to verify that ALSA works. Once you know ALSA works, then you can look at why higher level programs are not using it successfully.
Back to top
View user's profile Send private message
northfrisia
n00b
n00b


Joined: 01 Feb 2021
Posts: 36

PostPosted: Mon May 27, 2024 2:51 am    Post subject: Reply with quote

In the meanwhile I found the problem:
The default configuration, which comes with installation of pipewire only defines a audio source.
To play audio one needs a audion sink.

It is easy to acchieve:
Copy this block (the definition of the audio source):

Code:
   { factory = adapter
        args = {
            factory.name           = api.alsa.pcm.source
            node.name              = "alsa-source"
            node.description       = "PCM Source"
            media.class            = "Audio/Source"
            api.alsa.path          = "hw:0"
            api.alsa.period-size   = 1024
            api.alsa.headroom      = 0
            api.alsa.disable-mmap  = false
            api.alsa.disable-batch = false
            audio.format           = "S16LE"
            audio.rate             = 48000
            audio.channels         = 2
            audio.position         = "FL,FR"
        }
    }

and paste it right below that block - so duplicate is like so - and replace all accourances of "source" with "sink"
(as mentioned in the comment aboive the first block):

Code:
   
    { factory = adapter
        args = {
            factory.name           = api.alsa.pcm.source
            node.name              = "alsa-source"
            node.description       = "PCM Source"
            media.class            = "Audio/Source"
            api.alsa.path          = "hw:0"
            api.alsa.period-size   = 1024
            api.alsa.headroom      = 0
            api.alsa.disable-mmap  = false
            api.alsa.disable-batch = false
            audio.format           = "S16LE"
            audio.rate             = 48000
            audio.channels         = 2
            audio.position         = "FL,FR"
        }
    }
    { factory = adapter
        args = {
            factory.name           = api.alsa.pcm.sink
            node.name              = "alsa-sink"
            node.description       = "PCM Sink"
            media.class            = "Audio/Sink"
            api.alsa.path          = "hw:0"
            api.alsa.period-size   = 1024
            api.alsa.headroom      = 0
            api.alsa.disable-mmap  = false
            api.alsa.disable-batch = false
            audio.format           = "S16LE"
            audio.rate             = 48000
            audio.channels         = 2
            audio.position         = "FL,FR"
        }
    }


Why the default configuration does not include a audio sink is not obvious to me.

Log out of your account, log in again and with

Code:
pw-cli ls Node

`
you get an Audio source and Audio sink node listed.

That fixes the problem for me.

Cheers!
NorthFrisia
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum