No audio outputs are detected

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

System:
  Kernel: 5.15.60-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
    root=UUID=1be28bff-14ac-4bd6-8c07-940e0b04a857 rw quiet
    udev.log_priority=3
  Desktop: KDE Plasma v: 5.24.6 tk: Qt v: 5.15.5 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Portable System: Dell product: Vostro 2520 v: N/A
    serial: <superuser required> Chassis: type: 8 serial: <superuser required>
  Mobo: Dell model: 0V1NDP v: A11 serial: <superuser required> UEFI: Dell
    v: A11 date: 02/24/2014
Battery:
  ID-1: BAT0 charge: 10.9 Wh (26.0%) condition: 42.0/48.8 Wh (86.0%)
    volts: 11.7 min: 11.1 model: Samsung SDI DELL 7XFJJA2 type: Li-ion
    serial: <filter> status: charging
Memory:
  RAM: total: 5.66 GiB used: 2.49 GiB (44.0%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges
    required.
CPU:
  Info: model: Intel Pentium 2020M bits: 64 type: MCP arch: Ivy Bridge
    level: v2 built: 2012-15 process: Intel 22nm family: 6 model-id: 0x3A (58)
    stepping: 9 microcode: 0x21
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 2 MiB
    desc: 1x2 MiB
  Speed (MHz): avg: 1256 high: 1315 min/max: 1200/2400 scaling:
    driver: intel_cpufreq governor: schedutil cores: 1: 1197 2: 1315
    bogomips: 9581
  Flags: acpi aperfmperf apic arat arch_perfmon bts clflush cmov
    constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb
    ept erms est flexpriority flush_l1d fpu fsgsbase fxsr ht ibpb ibrs lahf_lm
    lm mca mce md_clear mmx monitor msr mtrr nonstop_tsc nopl nx pae pat pbe
    pcid pclmulqdq pdcm pebs pge pln pni popcnt pse pse36 pti pts rdtscp
    rep_good sep smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp syscall tm
    tm2 tpr_shadow tsc tsc_deadline_timer vme vmx vnmi vpid x2apic xsave
    xsaveopt xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: disabled, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Dell driver: i915
    v: kernel arch: Gen-7 process: Intel 22nm built: 2012-13 ports:
    active: LVDS-1 empty: DP-1,HDMI-A-1,VGA-1 bus-ID: 00:02.0
    chip-ID: 8086:0156 class-ID: 0300
  Device-2: Microdia Laptop_Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 1-1.5:5 chip-ID: 0c45:6473 class-ID: 0e02
  Display: x11 server: X.Org v: 21.1.4 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.21x7.99")
    s-diag: 414mm (16.31")
  Monitor-1: LVDS-1 model: BOE Display 0x06d3 built: 2016 res: 1366x768
    hz: 60 dpi: 101 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
    ratio: 16:9 modes: 1366x768
  OpenGL: renderer: Mesa Intel HD Graphics 2500 (IVB GT1) v: 4.2 Mesa 22.1.6
    direct render: Yes
Audio:
  Device-1: Intel 7 Series/C216 Family High Definition Audio vendor: Dell
    driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1e20
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.60-1-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.21 running: no
  Sound Server-3: PulseAudio v: 16.1 running: yes
  Sound Server-4: PipeWire v: 0.3.56 running: no
Network:
  Device-1: Broadcom BCM43142 802.11b/g/n vendor: Dell Wireless 1704 802.11n +
    BT 4.0 driver: wl v: kernel modules: bcma pcie: gen: 1 speed: 2.5 GT/s
    lanes: 1 bus-ID: 07:00.0 chip-ID: 14e4:4365 class-ID: 0280
  IF: wlp7s0 state: up mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Dell driver: r8168 v: 8.050.03-NAPI modules: r8169 pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 09:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Broadcom BCM43142 Bluetooth 4.0 type: USB driver: btusb v: 0.8
    bus-ID: 1-1.4:4 chip-ID: 0a5c:21d7 class-ID: fe01 serial: <filter>
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 931.51 GiB used: 325.5 GiB (34.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
    model: WD10SPZX-26Z10T0 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
    rev: 1A04 scheme: GPT
  Optical-1: /dev/sr0 vendor: TSSTcorp model: DVD+-RW SN-208DN rev: D100
    dev-links: cdrom
  Features: speed: 24 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 194.7 GiB size: 190.59 GiB (97.89%) used: 20.69 GiB
    (10.9%) fs: ext4 dev: /dev/sda3 maj-min: 8:3 label: N/A
    uuid: 1be28bff-14ac-4bd6-8c07-940e0b04a857
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 300 KiB
    (0.3%) fs: vfat dev: /dev/sda1 maj-min: 8:1 label: N/A uuid: 8A2C-2655
  ID-3: /run/media/sachin/New Volume raw-size: 736.2 GiB size: 736.2 GiB
    (100.00%) used: 304.81 GiB (41.4%) fs: ntfs dev: /dev/sda5 maj-min: 8:5
    label: New Volume uuid: 80D066A4D0669FE0
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sda4 maj-min: 8:4 size: 507 MiB fs: ntfs label: N/A
    uuid: 8672DFB872DFAB67
USB:
  Hub-1: 1-0:1 info: Full speed or root hub ports: 2 rev: 2.0 speed: 480 Mb/s
    chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Device-1: 1-1.2:3 info: Lenovo Wireless KB_Mouse KN100 WW
    type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 2 rev: 1.1
    speed: 12 Mb/s power: 98mA chip-ID: 17ef:609f class-ID: 0301
  Device-2: 1-1.4:4 info: Broadcom BCM43142 Bluetooth 4.0 type: Bluetooth
    driver: btusb interfaces: 4 rev: 2.0 speed: 12 Mb/s chip-ID: 0a5c:21d7
    class-ID: fe01 serial: <filter>
  Device-3: 1-1.5:5 info: Microdia Laptop_Integrated_Webcam_HD type: Video
    driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA
    chip-ID: 0c45:6473 class-ID: 0e02
  Hub-3: 2-0:1 info: Full speed or root hub ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev: 2.0
    speed: 480 Mb/s chip-ID: 8087:0024 class-ID: 0900
  Device-1: 2-1.6:3 info: Realtek RTS5138 Card Reader Controller
    type: Mass Storage driver: ums-realtek interfaces: 1 rev: 2.0
    speed: 480 Mb/s power: 500mA chip-ID: 0bda:0138 class-ID: 0806
    serial: <filter>
Sensors:
  System Temperatures: cpu: 60.0 C mobo: 48.0 C
  Fan Speeds (RPM): cpu: 3431
Info:
  Processes: 172 Uptime: 17m wakeups: 1 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.1.1 clang: 14.0.6
  Packages: pm: pacman pkgs: 1337 libs: 391 tools: pamac Shell: Zsh v: 5.9
  default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.21

My systemctl status alsa-state 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

How can I fix this issue.

go to system settings/systemd/user units, and check ‘show inactive’ and ‘show unloaded’ and search for ‘pulse’ and ‘pipewire’ and unmask the services

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

systemctl --user list-unit-files | grep -E 'pulse|wire' | awk '{ print $1,"-", $2 }'

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 ```systemctl status alsa-restore.service`` output is

alsa-restore.service - Save/Restore Sound Card State
     Loaded: loaded (/usr/lib/systemd/system/alsa-restore.service; static)
     Active: active (exited) since Sun 2022-08-28 22:26:42 IST; 7min ago
    Process: 361 ExecStart=/usr/bin/alsactl restore (code=exited, status=0/SUCCESS)
   Main PID: 361 (code=exited, status=0/SUCCESS)
        CPU: 4ms

The output of systemctl --user list-unit-files | grep -E 'pulse|wire' | awk '{ print $1,"-", $2 }' is

pipewire-media-session.service - enabled
pipewire-session-manager.service - alias
pipewire.service - disabled
pulseaudio-x11.service - static
pulseaudio.service - enabled
pipewire.socket - enabled
pulseaudio.socket - enabled

alsa-restore.service appears to be working normally

If you want to use PulseAudio without possible conflict from PipeWire

systemctl --user mask pipewire.socket && systemctl --user mask pipewire.service

If you want to replace PulseAudio with PipeWire

pamac install manjaro-pipewire

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.

you have installed pipewire media session, so wireplumber will replace it, so run this:
pamac install manjaro-pipewire wireplumber

1 Like

Well my speakers and wired earphones are working now but the speaker is working simultaneously with my earphones

these services needs to be active and running:
pipewire pulse socker
pipewire pulse service
pipewire service
pipewire socket
wireplumber service

All are not running

pipewire-pulse.service - disabled
pipewire-session-manager.service - alias
pipewire.service - disabled
wireplumber.service - enabled
wireplumber@.service - disabled
pipewire-pulse.socket - enabled
pipewire.socket - enabled

And what is the meaning of alias in pipewire-session-manager.service - alias

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?

so check again with the command if all of those mentioned are enabled …
and post output from:
pacman -Qs pipewire
pacman -Qs pulse

The output of systemctl --user list-unit-files | grep -E 'pulse|wire' | awk '{ print $1,"-", $2 }' is

pipewire-pulse.service - enabled
pipewire-session-manager.service - alias
pipewire.service - enabled
wireplumber.service - enabled
wireplumber@.service - disabled
pipewire-pulse.socket - enabled
pipewire.socket - enabled

The output of pacman -Qs pipewire is

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

ok so install this:
pamac install pipewire-jack
and remove this:
pamac remove pulseaudio-alsa pulseaudio-ctl pulseaudio-qt pavucontrol
reboot

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