Can anyone reconcile the following? # journalctl -b --no-hostname | grep pulse Mar 06 01:38:45 systemd[577]: pulseaudio.socket - Sound System was skipped because of a failed condition check (ConditionUser=!root). Mar 06 01:38:45 systemd[577]: pulseaudio.service - Sound Service was skipped because of a failed condition check (ConditionUser=!root). # systemctl cat pulseaudio.service No files found for pulseaudio.service. # systemctl cat pulseaudio.socket No files found for pulseaudio.socket. #
How can a condition be checked and fail if there are no such files connected to a service or socket checked?
Hi.
On Mon, 06 Mar 2023 01:47:44 -0500 Felix Miata wrote:
Can anyone reconcile the following? # journalctl -b --no-hostname | grep pulse Mar 06 01:38:45 systemd[577]: pulseaudio.socket - Sound System was skipped because of a failed condition check (ConditionUser=!root). Mar 06 01:38:45 systemd[577]: pulseaudio.service - Sound Service was skipped because of a failed condition check (ConditionUser=!root).
A systemd user for root has been attempted (pid 577, not 1). The ConditionUser forbid to start it.
# systemctl cat pulseaudio.service No files found for pulseaudio.service. # systemctl cat pulseaudio.socket No files found for pulseaudio.socket. #
This is a user unit. Use thus: systemctl --user cat pulseaudio.service
You seem to have pulseaudio installed, but as far as I now, pipewire should replace it nowadays.
Francis.Montagnac@inria.fr composed on 2023-03-06 08:01 (UTC+0100):
On Mon, 06 Mar 2023 01:47:44 -0500 Felix Miata wrote:
Can anyone reconcile the following? # journalctl -b --no-hostname | grep pulse Mar 06 01:38:45 systemd[577]: pulseaudio.socket - Sound System was skipped because of a failed condition check (ConditionUser=!root). Mar 06 01:38:45 systemd[577]: pulseaudio.service - Sound Service was skipped because of a failed condition check (ConditionUser=!root).
A systemd user for root has been attempted (pid 577, not 1). The ConditionUser forbid to start it.
# systemctl cat pulseaudio.service No files found for pulseaudio.service. # systemctl cat pulseaudio.socket No files found for pulseaudio.socket. #
This is a user unit. Use thus: systemctl --user cat pulseaudio.service
Interesting. How would a global configuration change be implemented, since any edit made for a user who runs it goes into a user settings directory?
You seem to have pulseaudio installed, but as far as I now, pipewire should replace it nowadays.
I'm not against change, but this is a result of several years of system-upgrades, and I've never seen anything explaining how to make a switch: # rpm -qa | grep -iE 'pulse|wire' pulseaudio-libs-16.1-4.fc37.x86_64 pulseaudio-16.1-4.fc37.x86_64 pulseaudio-libs-glib2-16.1-4.fc37.x86_64 # dnf search pipewire | wc -l Last metadata expiration check: 2:43:14 ago on Mon 06 Mar 2023 12:29:01 AM EST. 54 # With close to 54 possibilities, it's unlikely I'd choose correctly what to install, or whether or which pulse packages to remove. Is there a conversion script available? Googling
site:fedoraproject.org switch from pulseaudio to pipewire
Produced https://ask.fedoraproject.org/t/how-do-i-switch-from-pulseaudio-to-pipewire-... that seemed appropriate, but clicking on it loaded https://discussion.fedoraproject.org/t/article-proposal-playing-with-modular... instead. 2nd hit was https://ask.fedoraproject.org/t/how-to-switch-from-pipewire-to-pulseaudio-on... but clicking it produced 404. The few remaining I skipped. Searching elsewhere was also unhelpful. :(
On Mon, Mar 6, 2023 at 3:34 AM Felix Miata mrmazda@earthlink.net wrote:
[...] [How to switch between pulseaudio and pipewire] I'm not against change, but this is a result of several years of system-upgrades, and I've never seen anything explaining how to make a switch:
https://discussion.fedoraproject.org/t/how-to-switch-from-pipewire-to-pulsea... appears to have the commands for switching between pulseaudio and pipewire in either direction.
Felix Miata wrote:
Francis.Montagnac@inria.fr composed on 2023-03-06 08:01 (UTC+0100):
This is a user unit. Use thus: systemctl --user cat pulseaudio.service
Interesting. How would a global configuration change be implemented, since any edit made for a user who runs it goes into a user settings directory?
I believe the --global option should do what you want:
systemctl --global --user edit pulseaudio.service
and I presume that needs to be run as root, so it can write to /etc/systemd/user/pulseaudio.service.d/override.conf.
Or you can just create the override config directly.
I've only done the latter, so I can't say the former works as written with certainty.
Felix,
In your messages wireplumber does not appear. It seems this software is managing sound since F34. On this page
https://fedoraproject.org/wiki/Common_F35_bugs#No_sound_after_upgrade_(wirep...)
you find
"Wireplumber ... "needs to be running for sound to work"."
The page above provides excellent documentation to find what went wrong, and how to fix it.
HTH
On Mon, Mar 06, 2023 at 03:34:38AM -0500, Felix Miata wrote:
Francis.Montagnac@inria.fr composed on 2023-03-06 08:01 (UTC+0100):
On Mon, 06 Mar 2023 01:47:44 -0500 Felix Miata wrote:
Can anyone reconcile the following? # journalctl -b --no-hostname | grep pulse Mar 06 01:38:45 systemd[577]: pulseaudio.socket - Sound System was skipped because of a failed condition check (ConditionUser=!root). Mar 06 01:38:45 systemd[577]: pulseaudio.service - Sound Service was skipped because of a failed condition check (ConditionUser=!root).
A systemd user for root has been attempted (pid 577, not 1). The ConditionUser forbid to start it.
# systemctl cat pulseaudio.service No files found for pulseaudio.service. # systemctl cat pulseaudio.socket No files found for pulseaudio.socket. #
This is a user unit. Use thus: systemctl --user cat pulseaudio.service
Interesting. How would a global configuration change be implemented, since any edit made for a user who runs it goes into a user settings directory?
You seem to have pulseaudio installed, but as far as I now, pipewire should replace it nowadays.
I'm not against change, but this is a result of several years of system-upgrades, and I've never seen anything explaining how to make a switch: # rpm -qa | grep -iE 'pulse|wire' pulseaudio-libs-16.1-4.fc37.x86_64 pulseaudio-16.1-4.fc37.x86_64 pulseaudio-libs-glib2-16.1-4.fc37.x86_64 # dnf search pipewire | wc -l Last metadata expiration check: 2:43:14 ago on Mon 06 Mar 2023 12:29:01 AM EST. 54 # With close to 54 possibilities, it's unlikely I'd choose correctly what to install, or whether or which pulse packages to remove. Is there a conversion script available? Googling
site:fedoraproject.org switch from pulseaudio to pipewire
Produced https://ask.fedoraproject.org/t/how-do-i-switch-from-pulseaudio-to-pipewire-... that seemed appropriate, but clicking on it loaded https://discussion.fedoraproject.org/t/article-proposal-playing-with-modular... instead. 2nd hit was https://ask.fedoraproject.org/t/how-to-switch-from-pipewire-to-pulseaudio-on... but clicking it produced 404. The few remaining I skipped. Searching elsewhere was also unhelpful. :(
-- "Press Green" > "Say Yes" > "Run"
Wolfgang Pfeiffer composed on 2023-03-06 18:38 (UTC+0100):
On Mar 06, 2023 at 03:34:38 -0500, Felix Miata wrote:
I'm not against change, but this is a result of several years of system-upgrades, and I've never seen anything explaining how to make a switch:
...
In your messages wireplumber does not appear. It seems this software is managing sound since F34. On this page
https://fedoraproject.org/wiki/Common_F35_bugs#No_sound_after_upgrade_(wirep...)
you find
"Wireplumber ... "needs to be running for sound to work"."
The page above provides excellent documentation to find what went wrong, and how to fix it.
It doesn't seem to cover this: # dnf search systemd | grep -iE 'wire|puls|audio|sound' Last metadata expiration check: 0:20:21 ago on Mon 06 Mar 2023 06:11:55 PM EST. # dnf list installed | grep -iE 'wire|alsa|puls' alsa-firmware.noarch 1.2.4-7.fc37 @fedora alsa-lib.x86_64 1.2.8-2.fc37 @updates alsa-tools-firmware.x86_64 1.2.5-5.fc37 @fedora alsa-ucm.noarch 1.2.8-2.fc37 @updates alsa-utils.x86_64 1.2.8-1.fc37 @updates pipewire-libs.x86_64 0.3.66-1.fc37 @updates pipewire-pulseaudio.x86_64 0.3.66-1.fc37 @updates pulseaudio-libs.x86_64 16.1-4.fc37 @updates pulseaudio-utils.x86_64 16.1-4.fc37 @updates python3-alsa.x86_64 1.2.7-3.fc37 @fedora wireplumber.x86_64 0.4.13-1.fc37 @updates wireplumber-libs.x86_64 0.4.13-1.fc37 @updates zita-alsa-pcmi.x86_64 0.6.1-1.fc37 @updates #
$ systemctl --user status wireplumber.service Unit wireplumber.service could not be found. $
This is after rebooting following running
dnf swap --allowerasing pulseaudio pipewire-pulseaudio dnf install wireplumber-libs dnf remove pulseaudio-libs-glib2 # removed phonon* too
Afterward: dnf install wireplumber
$ systemctl --user status wireplumber.service # wireplumber.service - Multimedia Service Session Manager Loaded: loaded (/usr/lib/systemd/user/wireplumber.service: enabled; preset: enabled) Active: inactive (dead)
$ aplay /usr/share/sounds/alsa/Noise.wav Playing WAVE '/usr/share/sounds/alsa/Noise.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
But, nothing coming from speakers.
$ wireplumber & M 23:58:14.096348 mod.rt ../src/modules/module-rt.c:274:pw_rtkit_check_xdg_portal: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal running? M 23:58:14.096462 mod.rt ../src/modules/module-rt.c:1035:pipewire__module_init: found session bus but no portal Failed to connect to PipeWire $ systemctl --user status pipewire-pulse ● pipewire-pulse.service - PipeWire PulseAudio Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: disabled) Active: active (running) since Tue 2023-03-07 00:29:15 EST; 43s ago TriggeredBy: ● pipewire-pulse.socket Main PID: 3398 (pipewire-pulse) Tasks: 2 (limit: 2320) Memory: 1.3M CPU: 44ms CGroup: /user.slice/user-2000.slice/user@2000.service/session.slice/pipewire-pulse.service └─3398 /usr/bin/pipewire-pulse
Mar 07 00:29:15 gx62b systemd[2718]: Started pipewire-pulse.service - PipeWire PulseAudio. Mar 07 00:29:15 gx62b pipewire-pulse[3398]: mod.rt: Can't find org.freedesktop.portal.Desktop. Is xdg-desktop-portal ru> Mar 07 00:29:15 gx62b pipewire-pulse[3398]: mod.rt: found session bus but no portal Mar 07 00:29:15 gx62b pipewire-pulse[3398]: mod.fallback-sink: can't connect: Host is down Mar 07 00:29:15 gx62b pipewire-pulse[3398]: default: can't run command load-module module-always-sink: Host is down $
# systemctl list-unit-files | grep xdg #
Google hits for '"Is xdg-desktop-portal running?" site:fedoraproject.org' that are labeled as to being on ask.fedoraproject.org redirect to discussion.fedoraproject.org URIs totally unrelated to the indicated hit. Apparently https://ask.fedoraproject.org/ also redirects to discussion.... DDG doesn't return any hits for the same search terms.
$ alsa-info.sh output: http://alsa-project.org/db/?f=9b4dd6548b64719700fe9f8dadcdfc47edf600d5 (older) https://paste.centos.org/view/3dbcc4b3 (current; 23hr expire) Is there anything helpful there? What else can I try? Are there additional packages that need to be installed? Where does xdg-desktop-portal come from?
On Tue, Mar 07, 2023 at 12:38:03AM -0500, Felix Miata wrote:
$ systemctl --user status wireplumber.service # wireplumber.service - Multimedia Service Session Manager Loaded: loaded (/usr/lib/systemd/user/wireplumber.service: enabled; preset: enabled) Active: inactive (dead)
That last line from above does seem to tell at last one of the reasons for a failing audio - I'd try:
systemctl start --user wireplumber.service
and then again check the wireplumber status.
To debug I'd check journalctl ..