Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No sound after installing pipewire
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
nitro322
Guru
Guru


Joined: 24 Jul 2002
Posts: 594
Location: USA

PostPosted: Sun May 28, 2023 5:27 am    Post subject: No sound after installing pipewire Reply with quote

Edit: forgive the long post. Included all details I thought would be relevant for troubleshooting, and it turned into a monster. TLDR - how can I get sound from my system w/ pipewire?

I run Gentoo on an Intel Tiger Lake NUC as an HTPC using Kodi. I have it configured with alsa (no pulseaudio), and basic audio functionality works fine. Sound plays through HDMI to my A/V receiver. However, I have issues with high resolution sound and passthrough audio, so I'm trying to switch to pipeware w/ the Kodi 21 alpha.

After installing pipeware, I'm not able to get any sound at all, even taking kodi out of it and using aplay. If I uninstall pipewire/wireplumber and change nothing else (aside from rebooting), sounds works again. Reinstall pipewire/wireplumber and reboot, no sound.

I've followed the gentoo wiki and did quite a bit of additional searching and haven't had any luck figuring out why I'm getting this behavior. Would appreciate any assistance.

Here are my pipewire/wireplumber use flags:

Code:
[ebuild   R    ] media-video/pipewire-0.3.70-r2:0/0.4::gentoo  USE="X bluetooth dbus extra ffmpeg gstreamer pipewire-alsa readline sound-server ssl v4l -doc -echo-cancel -flatpak -gsettings -jack-client -jack-sdk -lv2 -modemmanager (-system-service) -systemd -test -zeroconf" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] media-video/wireplumber-0.4.14:0/0.4::gentoo  USE="elogind (-system-service) -systemd -test" LUA_SINGLE_TARGET="lua5-4 -lua5-3" 0 KiB


Here's some basic device info:

Code:
$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0x603d1a0000 irq 132

$ cat /proc/asound/devices
  1:        : sequencer
  2: [ 0- 0]: digital audio playback
  3: [ 0- 0]: digital audio capture
  4: [ 0- 3]: digital audio playback
  5: [ 0- 7]: digital audio playback
  6: [ 0- 8]: digital audio playback
  7: [ 0- 9]: digital audio playback
  8: [ 0- 0]: hardware dependent
  9: [ 0- 2]: hardware dependent
 10: [ 0]   : control
 33:        : timer

$ cat /proc/asound/pcm
00-00: Generic Analog : Generic Analog : playback 1 : capture 1
00-03: HDMI 0 : HDMI 0 : playback 1
00-07: HDMI 1 : HDMI 1 : playback 1
00-08: HDMI 2 : HDMI 2 : playback 1
00-09: HDMI 3 : HDMI 3 : playback 1


Here's the device output listed by alsa:

Code:
$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pipewire
    PipeWire Sound Server
sysdefault:CARD=PCH
    HDA Intel PCH, Generic Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    Front output / input
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
hdmi:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 3
    HDMI Audio Output



This is the device that works for HDMI playback:

Code:
aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav


As noted, that works when pipewire is not installed, but fails when pipewire is installed. It doesn't give an error, just silence during playback (pw-play also produces no error, just silcence). AVR reports no signal at all. The only difference in all the output above between working (no pipewire) and not working (w/ pipewire) is the pipewire device at the top of the aplay -L output.

Here's the pipewire status via wireplumber:

Code:
$ wpctl status
PipeWire 'pipewire-0' [0.3.70, media@screendog, cookie:2022950712]
 └─ Clients:
        32. pipewire                            [0.3.70, media@screendog, pid:2430]
        34. WirePlumber                         [0.3.70, media@screendog, pid:2420]
        35. WirePlumber [export]                [0.3.70, media@screendog, pid:2420]
        47. wpctl                               [0.3.70, media@screendog, pid:2555]

Audio
 ├─ Devices:
 │      39. Built-in Audio                      [alsa]
 │ 
 ├─ Sinks:
 │  *   44. Built-in Audio Digital Stereo (HDMI) [vol: 0.95]
 │ 
 ├─ Sink endpoints:
 │ 
 ├─ Sources:
 │  *   45. Built-in Audio Analog Stereo        [vol: 1.00]
 │ 
 ├─ Source endpoints:
 │ 
 └─ Streams:

Video
 ├─ Devices:
 │ 
 ├─ Sinks:
 │ 
 ├─ Sink endpoints:
 │ 
 ├─ Sources:
 │ 
 ├─ Source endpoints:
 │ 
 └─ Streams:

Settings
 └─ Default Configured Node Names:
         0. Audio/Sink    alsa_output.pci-0000_00_1f.3.hdmi-stereo


I set my default audio sink to the HDMI output and set the volume to 95%. I checked the device volume via alsamixer (not sure if that's still needed) and verified the device is unmuted and both master and pcm volume are set to 100%).

I use lxqt w/ SDDM and saw notes that autostart may not work. I verified pipewire, wireplumber, xdg-desktop-portal, elogind, and dbus are all running:

Code:
$ ps ax | grep -i 'wire\|elogind\|xdg-desktop\|dbus'
 1199 ?        Ss     0:00 /usr/bin/dbus-daemon --system
 1229 ?        S      0:00 elogind-daemon
 2367 ?        S      0:00 /usr/bin/dbus-launch --exit-with-session startlxqt
 2368 ?        Ss     0:00 /usr/bin/dbus-daemon --syslog --fork --print-pid 5 --print-address 7 --session
 2373 ?        Sl     0:00 /usr/libexec/xdg-desktop-portal
 2396 ?        Sl     0:00 /usr/libexec/xdg-desktop-portal-lxqt
 2650 pts/2    Sl     0:00 /usr/bin/wireplumber
 2652 pts/2    Sl     0:00 /usr/bin/pipewire
 2653 pts/2    Sl     0:00 /usr/bin/pipewire -c pipewire-pulse.conf


If I kill and restart gentoo-pipewire-launcher, the only obvious errors I see are related to rtkit and libcamera. I can't see libcamera really being an issue here, and I'm honestly not sure if rtkit is an issue - I see several posts that say it can be ignored.

Code:
pkill -term wireplumber
pkill -term pipewire
gentoo-pipewire-launcher &
[W][00114.704670] mod.rt       | [     module-rt.c:  270 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][00114.704677] mod.rt       | [     module-rt.c:  270 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][00114.704766] mod.rt       | [     module-rt.c:  637 set_nice()] could not set nice-level to -11: No such file or directory
[W][00114.704772] mod.rt       | [     module-rt.c:  637 set_nice()] could not set nice-level to -11: No such file or directory
[W][00114.710334] mod.rt       | [     module-rt.c:  270 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][00114.710360] mod.rt       | [     module-rt.c:  874 impl_acquire_rt()] could not make thread 2658 realtime using RTKit: No such file or directory
[W][00114.710362] mod.rt       | [     module-rt.c:  270 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][00114.710386] mod.rt       | [     module-rt.c:  874 impl_acquire_rt()] could not make thread 2659 realtime using RTKit: No such file or directory
M 00:15:42.071950             mod.rt ../pipewire-0.3.70/src/modules/module-rt.c:270:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 00:15:42.072062             mod.rt ../pipewire-0.3.70/src/modules/module-rt.c:637:set_nice: could not set nice-level to -11: No such file or directory
M 00:15:42.075873             mod.rt ../pipewire-0.3.70/src/modules/module-rt.c:270:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 00:15:42.075902             mod.rt ../pipewire-0.3.70/src/modules/module-rt.c:874:impl_acquire_rt: could not make thread 2660 realtime using RTKit: No such file or directory
M 00:15:42.086780          wp-device ../wireplumber-0.4.14/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 00:15:42.086804   script/libcamera libcamera.lua:173:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.


I'm out of my depth at this point. Any help would be most appreciated. Thanks.
_________________
https://www.legroom.net/
Back to top
View user's profile Send private message
flexibeast
Guru
Guru


Joined: 04 Apr 2022
Posts: 324
Location: Naarm/Melbourne, Australia

PostPosted: Sun May 28, 2023 11:30 pm    Post subject: Reply with quote

Quote:
I'm honestly not sure if rtkit is an issue - I see several posts that say it can be ignored.

i'm not sure that it can; the PipeWire page on the wiki says:
Quote:
It's recommended that users are in the pipewire group. If the user doesn't have the necessary permissions for this, the configuration will try to use RTKit instead, so the sys-auth/rtkit package may need to be installed.

and from memory, i indeed needed to install rtkit to get PipeWire working. Is it installed on your system?
Back to top
View user's profile Send private message
flyerone
n00b
n00b


Joined: 19 Nov 2019
Posts: 61
Location: 127 0 0 1

PostPosted: Fri Jun 09, 2023 7:53 pm    Post subject: Reply with quote

I have xfce4 and HDMI audio and this doesn't work out of the box. Grab a terminal and run 'gentoo-pipewire-launcher &' and pavucontrol is back to let me set HDMI sound.

Then I decided to swap the daemon flag back to pulseaudio because this isn't worth the hassle. Sorry to step over the thread since I've found it easier to withdraw.
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