Only one in 20 boots have sound

I’m having two issues with my sound, one is the default is always wrong. I see multiple answers to that question, I’m only mentioning it here in case it is relevant to my actual problem.

On the rare (re)boot sound works just fine after I select the HDM1 monitor (the default is some unused Analog port after a (re)boot or the screen saver activates. This is with XFCE4 if that matters).

The rest of the time the HDM1 VU meter is moving like it thinks everything is working. Alas only silence is coming from the HDM1 monitor.

Everything should be up to date package wise (just updated before posting this message).

Should I really have three sound servers running?
Not sure how that happened.

  Sound Server-1: ALSA v: k5.19.0-2-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: yes

My hardware. The sound is from HDM1.
Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: primary,left model: LCDTV

inxi --admin --verbosity=7 --filter --no-host --width

System:
  Kernel: 5.19.0-2-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-5.19-x86_64
    root=UUID=01e79882-1de7-48a6-acef-e6d8d6802754 rw audit=0
    sysrq_always_enabled=1
    cryptdevice=UUID=a2e3f8ad-6646-4b2d-ae80-4ae24a414308:luks-a2e3f8ad-6646-4b2d-ae80-4ae24a414308
    root=/dev/mapper/luks-a2e3f8ad-6646-4b2d-ae80-4ae24a414308
    udev.log_priority=3
  Desktop: Xfce v: 4.16.0 tk: Gtk v: 3.24.29 info: xfce4-panel wm: xfwm
    v: 4.16.1 vt: 7 dm: LightDM v: 1.30.0 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: BESSTAR TECH model: HM80 serial: N/A
    UEFI: American Megatrends v: 5.16 date: 07/09/2021
Battery:
  Message: No system battery data found. Is one present?
Memory:
  RAM: total: 30.78 GiB used: 7.21 GiB (23.4%)
  Array-1: capacity: 32 GiB slots: 2 EC: None max-module-size: 16 GiB
    note: est.
  Device-1: DIMM 0 type: DDR4 detail: synchronous unbuffered (unregistered)
    size: 16 GiB speed: 3200 MT/s volts: curr: 1.2 min: 1.2 max: 1.2
    width (bits): data: 64 total: 64 manufacturer: Kingston
    part-no: CBD32D4S2S8ME-16 serial: <filter>
  Device-2: DIMM 0 type: DDR4 detail: synchronous unbuffered (unregistered)
    size: 16 GiB speed: 3200 MT/s volts: curr: 1.2 min: 1.2 max: 1.2
    width (bits): data: 64 total: 64 manufacturer: Kingston
    part-no: CBD32D4S2S8ME-16 serial: <filter>
CPU:
  Info: model: AMD Ryzen 7 4800U with Radeon Graphics socket: FP6 bits: 64
    type: MT MCP arch: Zen 2 gen: 3 built: 2020-22 process: TSMC n7 (7nm)
    family: 0x17 (23) model-id: 0x60 (96) stepping: 1 microcode: 0x8600106
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB L3: 8 MiB
    desc: 2x4 MiB
  Speed (MHz): avg: 1575 high: 1800 min/max: 1400/1800 boost: enabled
    base/boost: 1800/4300 scaling: driver: acpi-cpufreq governor: schedutil
    volts: 1.2 V ext-clock: 100 MHz cores: 1: 1800 2: 1400 3: 1400 4: 1400
    5: 1400 6: 1400 7: 1400 8: 1400 9: 1800 10: 1800 11: 1800 12: 1800
    13: 1400 14: 1400 15: 1800 16: 1800 bogomips: 57506
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1
    bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy
    constant_tsc cpb cppc cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total
    cqm_occup_llc cr8_legacy cx16 cx8 de decodeassists extapic extd_apicid
    f16c flushbyasid fma fpu fsgsbase fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs
    irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor movbe
    msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx osvw overflow_recov pae
    pat pausefilter pclmulqdq pdpe1gb perfctr_core perfctr_llc perfctr_nb
    pfthreshold pge pni popcnt pse pse36 rapl rdpid rdpru rdrand rdseed rdt_a
    rdtscp rep_good sep sha_ni skinit smap smca smep ssbd sse sse2 sse4_1
    sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce topoext tsc
    tsc_scale umip v_spec_ctrl v_vmsave_vmload vgif vmcb_clean vme vmmcall
    wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt xsaves
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
    protection
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
    always-on, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Renoir driver: amdgpu v: kernel arch: GCN-5.1 code: Vega-2
    process: TSMC n7 (7nm) built: 2018-21 pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: DP-1,HDMI-A-1
    empty: DP-2,DP-3 bus-ID: 06:00.0 chip-ID: 1002:1636 class-ID: 0300
  Device-2: Logitech HD Webcam C525 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-1.1:3 chip-ID: 046d:0826 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 compositor: xfwm v: 4.16.1 driver: X:
    loaded: amdgpu unloaded: modesetting alternate: fbdev,vesa gpu: amdgpu
    display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1013x285mm (39.88x11.22")
    s-diag: 1052mm (41.43")
  Monitor-1: DP-1 mapped: DisplayPort-0 pos: right model: Samsung S24C230
    serial: <filter> built: 2013 res: 1920x1080 hz: 60 dpi: 94 gamma: 1.2
    size: 521x293mm (20.51x11.54") diag: 598mm (23.5") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-A-0 pos: primary,left model: LCDTV
    serial: <filter> built: 2013 res: 1920x1080 hz: 60 dpi: 30 gamma: 1.2
    size: 1600x900mm (62.99x35.43") diag: 595mm (23.4") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Message: Unable to show GL data. Required tool glxinfo missing.
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
    v: kernel bus-ID: 1-1.1:3 pcie: gen: 3 chip-ID: 046d:0826 speed: 8 GT/s
    class-ID: 0e02 lanes: 16 serial: <filter> link-max: gen: 4 speed: 16 GT/s
    bus-ID: 06:00.1 chip-ID: 1002:1637 class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: snd_rn_pci_acp3x
    v: kernel
    alternate: snd_pci_acp3x,snd_pci_acp5x,snd_pci_acp6x,snd_acp_pci,snd_sof_amd_renoir
    pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
    bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Realtek
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.6 chip-ID: 1022:15e3
    class-ID: 0403
  Device-4: Logitech HD Webcam C525 type: USB driver: snd-usb-audio,uvcvideo
  Device-5: JMTek LLC. USB PnP Audio Device type: USB
    driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-1.4.3:7
    chip-ID: 0c76:161f class-ID: 0300
  Device-6: C-Media Audio Adapter (Unitek Y-247A) type: USB
    driver: cmedia_hs100b,snd-usb-audio,usbhid bus-ID: 5-3:3 chip-ID: 0d8c:0014
    class-ID: 0300
  Sound Server-1: ALSA v: k5.19.0-2-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: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000
    bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: eno1 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp3s0 state: down mac: <filter>
  Device-3: Intel Ethernet I225-V driver: igc v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 port: N/A bus-ID: 04:00.0 chip-ID: 8086:15f3
    class-ID: 0200
  IF: enp4s0 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: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 5-4:4
    chip-ID: 8087:0029 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: enabled,running
    rfk-block: hardware: no software: yes address: see --recommends
Logical:
  Message: No logical block device data found.
  Device-1: luks-a2e3f8ad-6646-4b2d-ae80-4ae24a414308 maj-min: 254:0
    type: LUKS dm: dm-0 size: 476.64 GiB
  Components:
  p-1: nvme0n1p2 maj-min: 259:2 size: 476.64 GiB
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 5.01 TiB used: 215.59 GiB (4.2%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: OM8PCP3512F-A02
    size: 476.94 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: ECFK52.9 temp: 46.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 870 QVO 4TB
    size: 3.64 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: GPT
  ID-3: /dev/sdb maj-min: 8:16 type: USB vendor: SanDisk model: Extreme
    Portable SSD size: 931.51 GiB block-size: physical: 4096 B logical: 512 B
    type: SSD serial: <filter> rev: 1012 scheme: MBR
  Optical-1: /dev/sr0 vendor: Memorex model: MRX-650LE v6 rev: AM61
    dev-links: cdrom
  Features: speed: 62 multisession: yes audio: yes dvd: yes
    rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
  ID-1: / raw-size: 476.64 GiB size: 468.09 GiB (98.21%) used: 215.59 GiB
    (46.1%) fs: ext4 block-size: 4096 B dev: /dev/dm-0 maj-min: 254:0
    mapped: luks-a2e3f8ad-6646-4b2d-ae80-4ae24a414308 label: N/A
    uuid: 01e79882-1de7-48a6-acef-e6d8d6802754
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 440 KiB
    (0.1%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1 maj-min: 259:1
    label: NO_LABEL uuid: 7936-C1B7
Swap:
  Alert: No swap data was found.
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 3.64 TiB fs: ext4 label: N/A
    uuid: 1299b522-3ef3-4aec-8d31-78f14f40a117
  ID-2: /dev/sdb1 maj-min: 8:17 size: 931.51 GiB fs: ntfs label: SSDExtream0
    uuid: E074EFF074EFC6FE
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 1 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:2 info: VIA Labs Hub ports: 4 rev: 2.1 speed: 480 Mb/s
    power: 100mA chip-ID: 2109:3431 class-ID: 0900
  Device-1: 1-1.1:3 info: Logitech HD Webcam C525 type: Audio,Video
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 046d:0826 class-ID: 0e02 serial: <filter>
  Hub-3: 2-0:1 info: Super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-4: 3-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-5: 3-1:2 info: Realtek RTS5411 Hub ports: 4 rev: 2.1 speed: 480 Mb/s
    chip-ID: 0bda:5411 class-ID: 0900
  Device-1: 3-1.1:3 info: Holtek wireless multimedia keyboard with trackball
    [Trust ADURA 17911] type: Keyboard,Mouse driver: hid-generic,usbhid
    interfaces: 2 rev: 2.0 speed: 1.5 Mb/s power: 100mA chip-ID: 04d9:a01c
    class-ID: 0301
  Device-2: 3-1.2:4 info: Logitech M-BJ58/M-BJ69 Optical Wheel Mouse
    type: Mouse driver: hid-generic,usbhid interfaces: 1 rev: 2.0
    speed: 1.5 Mb/s power: 98mA chip-ID: 046d:c00e class-ID: 0301
  Hub-6: 3-1.4:5 info: Terminus Hub ports: 4 rev: 2.0 speed: 480 Mb/s
    power: 100mA chip-ID: 1a40:0101 class-ID: 0900
  Device-1: 3-1.4.1:6 info: VIA Labs USB 2.0 BILLBOARD type: Billboard
    driver: N/A interfaces: 1 rev: 2.0 speed: 480 Mb/s chip-ID: 2109:0102
    class-ID: 1100 serial: <filter>
  Device-2: 3-1.4.3:7 info: JMTek LLC. USB PnP Audio Device type: Audio,HID
    driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 1.1
    speed: 12 Mb/s power: 100mA chip-ID: 0c76:161f class-ID: 0300
  Hub-7: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Device-1: 4-2:2 info: SanDisk Extreme Portable SSD type: Mass Storage
    driver: uas interfaces: 1 rev: 3.1 speed: 10 Gb/s power: 896mA
    chip-ID: 0781:558c class-ID: 0806 serial: <filter>
  Hub-8: 5-0:1 info: Hi-speed hub with single TT ports: 4 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Device-1: 5-2:2 info: Imation 8x Slim DVD Multi-Format Recorder External
    type: Mass Storage driver: usb-storage interfaces: 1 rev: 2.0
    speed: 480 Mb/s power: 2mA chip-ID: 0718:4006 class-ID: 0806
    serial: <filter>
  Device-2: 5-3:3 info: C-Media Audio Adapter (Unitek Y-247A)
    type: Audio,HID driver: cmedia_hs100b,snd-usb-audio,usbhid interfaces: 4
    rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 0d8c:0014 class-ID: 0300
  Device-3: 5-4:4 info: Intel AX200 Bluetooth type: Bluetooth driver: btusb
    interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 8087:0029
    class-ID: e001
  Hub-9: 6-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 96.9 C mobo: N/A gpu: amdgpu temp: 54.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 432 Uptime: 26m wakeups: 0 Init: systemd v: 251
  default: graphical tool: systemctl Compilers: gcc: 12.1.1 clang: 14.0.6
  Packages: note: see --pkg pacman: 1421 lib: 366 Shell: Bash (su) v: 5.1.16
  running-in: xfce4-terminal inxi: 3.3.20

Thank you.

ALSA is not a software sound server like the other 3 servers shown. ALSA works within the kernel like a Hardware Abstraction Layer to tie the hardware devices and drivers together
The other sound servers run outside the kernel and rely on ALSA for sending audio streams to analog jack sockets, HDMI outputs or USB devices (ALSA does not support Bluetooth audio)

But PipeWire and PulseAudio should not be running simultaneously as they are known to conflict

I suggest you either:

  • Install manjaro-pipewire to remove and replace PulseAudio packages

  • Or remove package pipewire to use PulseAudio
    (Xfce does not support Wayland like other DEs and does not require Pipewire as a DE dependency)

  • Or just disable pipewire server:

    systemctl --user disable --now pipewire.socket pipewire.service
    

See this post for how to change the default sink for audio playback:
How do I permanently set the default audio device in Manjaro xfce with Pipewire? - #15 by nikgnomic
The pactl commands suggested will work for PulseAudio or PipeWire
But the accepted solution (changing card profiles) might not be optimal for this system because of the additional USB devices

1 Like

Trying to remove pipewire resulted in:

“- removing pipewire breaks dependency ‘pipewire’ required by telegram-desktop”

So at least we know why it is there now.
Thought maybe starting telegram that I don’t use often would make sound, it didn’t.
I don’t want to uninstall telegram.

Trying to install manjaro-pipewire results in:

"could not satisfy dependencies:

  • removing pulseaudio breaks dependency ‘pulseaudio=16.1-1’ required by pulseaudio-jack"

Seems I need some forced clean out of pulseaudo and its dependencies?

You can either turn off pipewire server as previously suggested

Or remove pulseaudio-jack and try installing PipeWire metapackage again

Removing PulseAudio is tricky because it is a required dependency of Xfce and packager manager will want to remove DE audio controls needed by PipeWire replacement service
PipeWire has faux dependency marking Provides: pulseaudio to replace PulseAudio without losing DE audio packages

I got rid of PulseAudio, for the most part, and sound is now working with only the Pipewire Sound Server running. I did not want to disable the Pipewire sound as that would break the Telegram Call feature.

I am a bit confused as to why the xfce4-pulseaudio-plugin is still controlling the Pipewire sound?
Guess I should just take it as a win and move on.

This was with only one reboot, need to try a few more to make sure it isn’t just one of the luck ones where sound worked.

Thank you for your help.

Disabling PipeWire does not not break Telegram audio. PulseAudio is working for me and PipeWire server has been disabled and masked from the day it was reinstalled as a dependency of Telegram

You were using PulseAudio for Telegram before you replaced it. Base pipewire package cannot take over from pulseaudio but it can cause conflicts (i.e. when level meters are moving but you can’t hear anything)