There are no audio output devices detected.This issue was started when I was trying to fix my bluetooth, I was trying the methods of the forums. There were commands like mask and unmask on pulseaudio and pipewire, but I don’t know which command made this issue. My inxi output is
○ alsa-state.service - Manage Sound Card State (restore and store)
Loaded: loaded (/usr/lib/systemd/system/alsa-state.service; static)
Active: inactive (dead)
Condition: start condition failed at Sun 2022-08-28 20:12:01 IST; 28min ago
└─ ConditionPathExists=/etc/alsa/state-daemon.conf was not met
ALSA does not support Bluetooth audio devices, so alsa-state.service probably does not need fixing. Most users do not want this service turned on to save changes to ALSA during a session, because ALSA settings will be different every time system is booted.
Users generally prefer to use alsa-restore.service to restore ALSA audio settings to the same state when system is booted.
I suggest you check if that service is working as intended
systemctl status alsa-restore.service
Please post response to this command to show status of PulseAudio and PipeWire services
Sorry for the late reply, systemd was lagging a lot and I even had to force shutdown my pc due to the lag, so it took some time. The pipewire.socket , pipewire.service and pipewire-media-session.service were not active and I had to start them ,but the pipewire.service and pipewire-media-session.service goes inactive after rebooting. In pulseaudio there was a service called pulseaudio-x11.service which gives failed if I try to start it
The command systemctl --user mask pipewire.socket && systemctl --user mask pipewire.service runs correctly, but even after the reboot there is no audio output devices detected
If I try to pamac installl manjaro-pipewire this is the output
Preparing...
Synchronizing package databases...
unable to lock database
Failed to synchronize databases
https://aur.manjaro.org/packages-meta-ext-v1.json.gz: Could not connect: Network is unreachable
Failed to synchronize AUR database
Choose optional dependencies for manjaro-pipewire:
1: easyeffects: advanced equalizer and effects
2: pipewire-jack: Jack support
3: pipewire-v4l2: V4L2 interceptor
4: pipewire-x11-bell: X11 bell
5: realtime-privileges: Realtime privileges for users
Enter a selection (default=none):
Resolving dependencies...
Checking inter-conflicts...
Error: Failed to prepare transaction:
could not satisfy dependencies:
- removing pulseaudio breaks dependency 'pulseaudio=16.1-1' required by pulseaudio-equalizer
since you disabled the pipewire services, after installing it, your audio will not work, so you will have to reenable them again …
also installing pipewire causes pulse dependency issues, as you can see, so remove them first then run the install command again: sudo pacman -R pulseaudio-equalizer
and when installing pipewire select wireplumber, then reboot
also you have the database issue, so run these commands first: sudo rm /var/lib/pacman/db.lck
If you get: cannot remove ‘/var/lib/pacman/db.lck’: No such file or directory; use this: sudo rm /var/tmp/pamac/dbs/db.lck
I executed both sudo pacman -R pulseaudio-equalizer and sudo rm /var/tmp/pamac/dbs/db.lck
How to select wireplumber the optional dependencies I get are
Choose optional dependencies for manjaro-pipewire:
1: easyeffects: advanced equalizer and effects
2: pipewire-jack: Jack support
3: pipewire-v4l2: V4L2 interceptor
4: pipewire-x11-bell: X11 bell
5: realtime-privileges: Realtime privileges for users
This is the whole process(I have purposely cancelled in the end)
pamac install manjaro-pipewire ✔
Preparing...
Synchronizing package databases...
Refreshing extra.db...
Refreshing community.db...
https://aur.manjaro.org/packages-meta-ext-v1.json.gz: Socket I/O timed out
Failed to synchronize AUR database
Choose optional dependencies for manjaro-pipewire:
1: easyeffects: advanced equalizer and effects
2: pipewire-jack: Jack support
3: pipewire-v4l2: V4L2 interceptor
4: pipewire-x11-bell: X11 bell
5: realtime-privileges: Realtime privileges for users
Enter a selection (default=none):
Resolving dependencies...
Checking inter-conflicts...
To install (5):
gst-plugin-pipewire 1:0.3.56-1 (Required By: manjaro-pipewire) extra 47.7 kB
pipewire-alsa 1:0.3.56-1.0 (Required By: manjaro-pipewire) extra
pipewire-pulse 1:0.3.56-1.0 (Required By: manjaro-pipewire) extra 198.6 kB
pipewire-zeroconf 1:0.3.56-1 (Required By: manjaro-pipewire) extra 18.2 kB
manjaro-pipewire 20220217-2 extra 21.5 kB
To remove (4):
manjaro-pulse 20220217-2 (Conflicts With: manjaro-pipewire) extra
pulseaudio-bluetooth 16.1-1 (Conflicts With: pipewire-pulse) extra
pulseaudio-zeroconf 16.1-1 (Conflicts With: manjaro-pipewire) extra
pulseaudio 16.1-1 (Conflicts With: pipewire-pulse) extra
Total download size: 285.9 kB
Total installed size: 708.2 kB
Total removed size: 6.6 MB
Apply transaction ? [y/N] n
Transaction cancelled.
so right click on the pipewire-pulse.service and pipewire.service units and select enable unit, wait, then again right click and click start unit
ignore the pipewire-session-manager.service you have wireplumber instead of this …
In systemd they were already active and running, after right clicking them and clicking on enable unit I did a reboot, but it is still playing sound in both earphones and speakers.
Do I need some jack dependencies or something for wired earphones or headphone?
local/gst-plugin-pipewire 1:0.3.56-1
Multimedia graph framework - pipewire plugin
local/manjaro-pipewire 20220217-2
Manjaro meta package for complete PipeWire support.
local/pipewire 1:0.3.56-1
Low-latency audio/video router and processor
local/pipewire-alsa 1:0.3.56-1.0
Low-latency audio/video router and processor - ALSA configuration
local/pipewire-pulse 1:0.3.56-1.0
Low-latency audio/video router and processor - PulseAudio replacement
local/pipewire-zeroconf 1:0.3.56-1
Low-latency audio/video router and processor - Zeroconf support
local/wireplumber 0.4.11-4
Session / policy manager implementation for PipeWire
The output of pacman -Qs pulse is
local/lib32-libcanberra 1:0.30+r2+gc0620e4-1
A small and lightweight implementation of the XDG Sound Theme Specification (32-bit)
local/lib32-libpulse 16.1-1
A featureful, general-purpose sound server (32-bit client libraries)
local/libcanberra 1:0.30+r2+gc0620e4-1
A small and lightweight implementation of the XDG Sound Theme Specification
local/libpulse 16.1-1
A featureful, general-purpose sound server (client library)
local/pavucontrol 1:5.0+r35+g964f298-1
PulseAudio Volume Control
local/pipewire-alsa 1:0.3.56-1.0
Low-latency audio/video router and processor - ALSA configuration
local/pipewire-pulse 1:0.3.56-1.0
Low-latency audio/video router and processor - PulseAudio replacement
local/plasma-pa 5.24.6-1 (plasma)
Plasma applet for audio volume management using PulseAudio
local/pulseaudio-alsa 1:1.2.7.1-1
ALSA Configuration for PulseAudio
local/pulseaudio-ctl 1.70-1
Control pulseaudio volume from the shell or mapped to keyboard shortcuts.
local/pulseaudio-qt 1.3-1
Qt bindings for libpulse
The pacmac install pipewire-jack installed successfully
But the pamac remove pulseaudio-alsa pulseaudio-ctl pulseaudio-qt pavucontrol gives this output
Preparing...
Checking dependencies...
Error: Failed to prepare transaction:
could not satisfy dependencies:
- removing pulseaudio-qt breaks dependency 'pulseaudio-qt' required by kdeconnect
i see, i dont use kde connect, so if you are using or on planning on using it, then run the command without the qt: pamac remove pulseaudio-alsa pulseaudio-ctl pavucontrol