* Masaru Nomiya
Hello,
In the Message;
Subject : Re: ALMOST SOLVED: root cannot play sound ??? Message-ID : <20220212140815.GG1071@wahoo.no-ip.org> Date & Time: Sat, 12 Feb 2022 09:08:15 -0500
[PS] == Patrick Shanahan
has written: [...] PS>>> 17:53 crash:~ > pidof pipewire PS>>> 28801 8023
MN> > This seems to be happening more often than not.
PS> yes, when ever root has a sound instance, a pipewire instance is PS> initiated.
PS> > pidof pipewire PS> 32068 30775
[...] MN> > BTW, is everything in /etc/pipewire/pipewire.conf's context.exec MN> > commented out?
PS> yes, /usr/share/pipewire/pipewire.conf PS> there is no /etc/pipewire on my tumbleweed systems
If you are not using a sound card with a sampling rate other than 44100Hz, that's fine.
Anyway, I was not convinced, so I installed Tumbleweed (openSUSE-Tumbleweed-DVD-x86_64-Snapshot20220210)on another PC and checked it out.
Immediately after installation,
$ pactl info
returned;
Server String: /run/user/1000/pulse/native Library Protocol Version: 35 Server Protocol Version: 35 Is Local: yes Client Index: 62 Tile Size: 65472 User Name: masaru Host Name: linux-frlp Server Name: PulseAudio Server Version: 15.0.0 Default Sample Specification: float32le 2ch 44100Hz [...]
As you see, puseaudio system is working.
Just fo fun, I tried
# pw-play /usr/share/sounds/Oxygen-Sys-Log-In.ogg
To my surprise, it returned the message;
error: pw_context_connect() failed: Host is down
I thought, user can accept that this is a problem with pipewire.
try a second time and see if you get a different answer. remember that my system fails the first instance but plays after and there is no instance of pipewire (pid) belonging to root until after the failed attempt.
Carlos, a Leap 15.3 user, thinks the same way. In other words, I believe that the installation media he used is the same configuration as the Tumbleweed I used.
Anyway, when I started YaST2 and instructed it to install pipewire-pulseaudio, it showed me other necessary pipewire files and also told me to remove some pulseaudio related files. But since pulseaudio-setup was still there, I added it to the list of files to be removed and let it do its job.
Then. I did;
$ pactl info
returned the same message as above;
Server String: /run/user/1000/pulse/native Library Protocol Version: 35 Server Protocol Version: 35 Is Local: yes Client Index: 62 Tile Size: 65472 User Name: masaru Host Name: linux-frlp Server Name: PulseAudio Server Version: 15.0.0 Default Sample Specification: float32le 2ch 44100Hz [...]
So, I rebooted, and did;
$ pactl info
returens
Server String: /run/user/1000/pulse/native Library Protocol Version: 35 Server Protocol Version: 35 Is Local: yes Client Index: 62 Tile Size: 65472 User Name: masaru Host Name: linux-frlp Server Name: PulseAudio (on PipeWire 0.3.45) Server Version: 15.0.0 Default Sample Specification: float16le 2ch 44100Hz [...]
I couldn't go any further. That is, somehow, I couldn't configure the sound card in YaST2. But ... I think I got a hint.
Patrick, please show the resultss of;
1. $ cat /proc/asound/cards
2. $ aplay -L
18:45 crash:~ > cat /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xf4000000 irq 46 1 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xd2000000 irq 17 18:45 crash:~ > aplay -L null Discard all samples (playback) or generate zero samples (capture) speexrate Rate Converter Plugin Using Speex Resampler pipewire PipeWire Sound Server upmix Plugin for channel upmix (4,6,8) default Default ALSA Output (currently PipeWire Media Server) sysdefault:CARD=Intel HDA Intel, ALC892 Analog Default Audio Device front:CARD=Intel,DEV=0 HDA Intel, ALC892 Analog Front output / input surround21:CARD=Intel,DEV=0 HDA Intel, ALC892 Analog 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=Intel,DEV=0 HDA Intel, ALC892 Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=Intel,DEV=0 HDA Intel, ALC892 Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Intel,DEV=0 HDA Intel, ALC892 Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Intel,DEV=0 HDA Intel, ALC892 Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=Intel,DEV=0 HDA Intel, ALC892 Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers iec958:CARD=Intel,DEV=0 HDA Intel, ALC892 Digital IEC958 (S/PDIF) Digital Audio Output hdmi:CARD=NVidia,DEV=0 HDA NVidia, HDMI 0 HDMI Audio Output hdmi:CARD=NVidia,DEV=1 HDA NVidia, HDMI 0 HDMI Audio Output hdmi:CARD=NVidia,DEV=2 HDA NVidia, HDMI 0 HDMI Audio Output hdmi:CARD=NVidia,DEV=3 HDA NVidia, HDMI 0 HDMI Audio Output tks, -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc What sort of day was it? A day like all days, filled with those events that alter and illuminate our times...