Input and output audio issue with pipewire

Hello everyone! I'm new here, and I have this little laptop that I'd like to use to learn more about the Linux environment. Unfortunately, I've encountered an issue with the audio that I haven't been able to solve. It seems that the devices are detected properly, but I can't hear any sound.

Here are some details about my system:

  • I have installed Garuda Linux.
  • I'm using Pipewire as the audio system.
  • Videos are working correctly, the only issue is with the audio.
  • I've checked the Pipewire configuration file (/usr/share/pipewire/pipewire.conf), and it appears to be configured correctly.

garuda-inxi

System:
Kernel: 6.4.4-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=63965b5c-bc2f-4cda-9c09-8e1419fc5513 rw rootflags=subvol=@
quiet quiet rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
ibt=off
Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 2
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Laptop System: Onda TLC Gmbh product: ONDA Oliver 15 v: N/A
serial: <superuser required>
Mobo: N/A model: N/A v: .A002 serial: <superuser required>
UEFI: A116L.ONDA.P0M80 v: 5.12 date: 02/04/2021
Battery:
ID-1: BAT0 charge: 11.8 Wh (38.8%) condition: 30.4/30.4 Wh (100.0%)
volts: 7.6 min: N/A model: Intel SR 1 SR Real Battery type: Unknown
serial: <filter> status: charging
CPU:
Info: model: Intel Celeron N3450 bits: 64 type: MCP arch: Goldmont level: v2
built: 2016 process: Intel 14nm family: 6 model-id: 0x5C (92) stepping: 9
microcode: 0x48
Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 224 KiB
desc: d-4x24 KiB; i-4x32 KiB L2: 2 MiB desc: 2x1024 KiB
Speed (MHz): avg: 2091 high: 2189 min/max: 800/2200 scaling:
driver: intel_cpufreq governor: schedutil cores: 1: 2189 2: 2089 3: 2089
4: 1999 bogomips: 8755
Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Graphics:
Device-1: Intel HD Graphics 500 driver: i915 v: kernel arch: Gen-9
process: Intel 14n built: 2015-16 ports: active: eDP-1 empty: HDMI-A-1
bus-ID: 00:02.0 chip-ID: 8086:5a85 class-ID: 0300
Device-2: Realtek USB2.0 camera driver: uvcvideo type: USB rev: 2.0
speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-8:3 chip-ID: 0bda:5830
class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: modesetting
alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: eDP-1 model: BOE Display 0x0632 built: 2015 res: 1920x1080
hz: 60 dpi: 142 gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5")
ratio: 16:9 modes: 1920x1080
API: OpenGL v: 4.6 Mesa 23.1.3 renderer: Mesa Intel HD Graphics 500 (APL
2) direct-render: Yes
Audio:
Device-1: Intel Celeron N3350/Pentium N4200/Atom E3900 Series Audio Cluster
vendor: Realtek driver: sof-audio-pci-intel-apl alternate: snd_hda_intel,
snd_soc_skl, snd_soc_avs, snd_sof_pci_intel_apl bus-ID: 00:0e.0
chip-ID: 8086:5a98 class-ID: 0401
API: ALSA v: k6.4.4-zen1-1-zen status: kernel-api
tools: alsactl,alsamixer,amixer
Server-1: PipeWire v: 0.3.74 status: active with: 1: pipewire-pulse
status: active 2: pipewire-media-session status: active 3: pipewire-alsa
type: plugin 4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli
Network:
Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
driver: rtw_8821ce v: N/A modules: rtw88_8821ce pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:c821 class-ID: 0280
IF: wlp2s0 state: up mac: <filter>
Bluetooth:
Device-1: Realtek Bluetooth Radio driver: btusb v: 0.8 type: USB rev: 1.1
speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 1-7:2 chip-ID: 0bda:c821
class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
Local Storage: total: 238.47 GiB used: 12.69 GiB (5.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: KingSpec model: NT-256
size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s
tech: SSD serial: <filter> fw-rev: 0A0 scheme: GPT
Partition:
ID-1: / raw-size: 238.17 GiB size: 238.17 GiB (100.00%)
used: 12.69 GiB (5.3%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 238.17 GiB size: 238.17 GiB (100.00%)
used: 12.69 GiB (5.3%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-4: /var/log raw-size: 238.17 GiB size: 238.17 GiB (100.00%)
used: 12.69 GiB (5.3%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 238.17 GiB size: 238.17 GiB (100.00%)
used: 12.69 GiB (5.3%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 7.57 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 65.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 208 Uptime: 1h 17m wakeups: 1 Memory: total: 8 GiB
available: 7.57 GiB used: 2.59 GiB (34.2%) Init: systemd v: 253
default: graphical tool: systemctl Compilers: gcc: 13.1.1 Packages: pm: dpkg
pkgs: 0 pm: pacman pkgs: 1243 libs: 337 tools: octopi,paru Shell: fish
v: 3.6.1 default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.28
Garuda (2.6.16-1):
System install date:     2023-07-14
Last full system update: 2023-07-23 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut
Windows dual boot:       Probably (Run as root to verify)
Failed units:

**aplay -l:**

**** List of PLAYBACK Hardware Devices ****
card 0: sofessx8336 [sof-essx8336], device 0: ES8336 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofessx8336 [sof-essx8336], device 5: HDMI 1 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofessx8336 [sof-essx8336], device 6: HDMI 2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: sofessx8336 [sof-essx8336], device 7: HDMI 3 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0



**arecord -l:**

**** List of CAPTURE Hardware Devices ****
card 0: sofessx8336 [sof-essx8336], device 0: ES8336 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0


I've also checked the system logs for the Pipewire PulseAudio service (journalctl --user-unit pipewire-pulse.service ), but I haven't found any obvious errors.

The Pipewire configuration file seems to be fine, but there might be something I've missed or misconfigured.

I hope anyone could help me, thanks in advance!

Welcome to the forum

First i would reboot and see if that helps

1 Like

You are using a deprecated pipewire session manager is the reason why you can’t hear any sound. Please follow this post to reinstall pipewire and it’s dependencies. Please note following this post will ask you to remove pipewire-media-session as a conflicting package while reinstalling go ahead and remove it. It will be replaced with wireplumber.

3 Likes

I followed the steps in your post, and now I can hear the audio, but I have two issues:

  1. The audio I hear is really low;
  2. Now the microphone is not detected.

I use a pair of headphones with an integrated mic. I tried to disconnect them to see if the computer audio works, but I can't hear anything. I'm not sure if it's because the volume is low.

Thank you ^_^.

Reboot didn't help.

Do check it then. Raise your volume levels. Also see if microphone is muted. All this can be done from the system tray up top via expanding the volume menu in KDE.

If this too doesn’t help can you share the output of

systemctl status --user wireplumber
systemctl status --user pipewire
systemctl status --user pipewire-pulse

If you get “stuck” after running these commands as in you can’t type any more commands just press q and you will have your prompt to type commands back.

1 Like

After turning on the computer again my microphone appeared and it works on discord.
I've already checked the volume values and the issue is not there

audio-issue

systemctl status --user wireplumber

wireplumber.service - Multimedia Service Session Manager
Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
Active: active (running) since Sun 2023-07-23 21:28:20 CEST; 26min ago
Main PID: 1089 (wireplumber)
Tasks: 6 (limit: 9250)
Memory: 24.8M
CPU: 1.211s
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
└─1089 /usr/bin/wireplumber

lug 23 21:28:20 francesco-ondaoliver15 systemd[1078]: Started Multimedia Service Session Manager.
lug 23 21:28:20 francesco-ondaoliver15 wireplumber[1089]: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
lug 23 21:28:20 francesco-ondaoliver15 wireplumber[1089]: [0:00:18.216601158] [1089] INFO Camera camera_manager.cpp:298 libcamera v0.0.5
lug 23 21:28:21 francesco-ondaoliver15 wireplumber[1089]: Failed to get the verb HiFi
lug 23 21:28:21 francesco-ondaoliver15 wireplumber[1089]: No UCM verb is valid for hw:0
lug 23 21:28:21 francesco-ondaoliver15 wireplumber[1089]: WpSiAudioAdapter:0x55b37eba4980 Object activation aborted: proxy destroyed
lug 23 21:28:21 francesco-ondaoliver15 wireplumber[1089]: WpSiAudioAdapter:0x55b37eba4980 failed to activate item: Object activation aborted: proxy destroyed
lug 23 21:28:21 francesco-ondaoliver15 wireplumber[1089]: WpPortalPermissionStorePlugin:0x55b37ea5dda0 Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry f>
lug 23 21:28:21 francesco-ondaoliver15 wireplumber[1089]: WpPortalPermissionStorePlugin:0x55b37ea5dda0 Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry f>

systemctl status --user pipewire

pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: enabled)
Active: active (running) since Sun 2023-07-23 21:28:20 CEST; 27min ago
TriggeredBy: â—Ź pipewire.socket
Main PID: 1087 (pipewire)
Tasks: 3 (limit: 9250)
Memory: 15.0M
CPU: 3.019s
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
└─1087 /usr/bin/pipewire

lug 23 21:28:20 francesco-ondaoliver15 systemd[1078]: Started PipeWire Multimedia Service.
lug 23 21:28:21 francesco-ondaoliver15 pipewire[1087]: [0:00:18.735667780] [1087] INFO Camera camera_manager.cpp:298 libcamera v0.0.5
lug 23 21:33:55 francesco-ondaoliver15 pipewire[1087]: spa.alsa: hw:0: (0 missed) impossible htimestamp diff:958
lug 23 21:33:55 francesco-ondaoliver15 pipewire[1087]: spa.alsa: hw:0: (0 missed) impossible htimestamp diff:1742
lug 23 21:33:55 francesco-ondaoliver15 pipewire[1087]: spa.alsa: hw:0: wrong htimestamps from driver, disabling
lug 23 21:33:56 francesco-ondaoliver15 pipewire[1087]: spa.alsa: hw:0: wrong htimestamps from driver, disabling

systemctl status --user pipewire-pulse

pipewire-pulse.service - PipeWire PulseAudio
Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; preset: enabled)
Active: active (running) since Sun 2023-07-23 21:28:20 CEST; 28min ago
TriggeredBy: â—Ź pipewire-pulse.socket
Main PID: 1090 (pipewire-pulse)
Tasks: 2 (limit: 9250)
Memory: 46.6M
CPU: 9.211s
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
└─1090 /usr/bin/pipewire-pulse

lug 23 21:28:20 francesco-ondaoliver15 systemd[1078]: Started PipeWire PulseAudio.

So, a reboot was all it took to fix the two remaining issues? Well that’s quite interesting but good nonetheless.

No i still have the volume issue, the mic one was fixed.

Ok, can you check if the volume of the application is full, just like the device? Look at pic for a better reference.

image

If this is as depicted. You can try this fix from archwiki.

After replacing PulseAudio with Pipewire, sound may work fine, but after a reboot, the volume becomes intolerably low.

Open alsamixer, use F6 to select the proper soundcard, and make sure the ALSA volumes are at 100%. alsactl should maintain this setting after reboot.

If you don’t have alsamixer, alsactl fret not just install alsa-support.

sudo pacman -S alsa-support
2 Likes

I checked both of what you said, even with max volume level is still really low. After rebooting my pc today my headphone result disconnected (i still able to hear through them lol) and the microphone disappeared .

Hmm. This is getting quite strange. Can you check if

cat /etc/security/limits.d/99-realtime-privileges.conf

returns this,

@realtime - rtprio 98
@realtime - memlock unlimited
@realtime - nice -11

I am really just blind guessing the cause of issue here now.
Also can you post the output URL of

cat /etc/group | tb

Edit: Can you also check if just updating your system via garuda-update and rebooting does anything useful??

1 Like

After update and reboot my headphone are connected but not the microphone, the volume is still low as hell.
cat /etc/security/limits.d/99-realtime-privileges.conf returned the same as you.

Here is the link of cat /etc/group | tb --> https://termbin.com/6d60

I looked into the output of /etc/group and saw that you are a part of the audio group and according to this thread here.

You should not add yourself to the audio or rtkit groups. Realtime is the only group one needs for JACK support.

I checked and what he said seems true since in my device I too am not a part of the audio group and you seem to a part of it. So, try removing yourself from this group

sudo gpasswd --delete francescoscriva audio

following this reboot your device and see if there are any changes. You are already in realtime group so no need to worry about that.

1 Like

Nothing changed, i don't know why but every time I reboot my computer my headphone are in a different state (now for example are disconnected).

Is it possible that I have to change something in the configuration file?

Hmm… Can you share the output of

groups francescoscriva

I am assuming francescoscriva is your username.

I am really drawing a blank at this point so if someone who is more experienced with sound comes along it would be better. Though you definitely should look into the configuration files if they can help. Here are my config files in case they help,

/etc/alsa/conf.d/50-pipewire.conf → https://termbin.com/3ogo
/usr/share/pipewire/pipewire.conf → https://termbin.com/gljq

1 Like

groups francescoscriva

sys scanner wheel input lp video realtime cups sambashare francescoscriva

I checked both configuration files and they are the exact same as yours.

Out of curiosity i tried to connect my bluethoot earphones and they work perfectly, even the volume is perfect, i just don’t get why computer speakers and my headphones don’t work. The problem is that i really need my audio to work, i had this problem with every distro i tried, even on other computers.

Btw thank you for your help, I really appreciate! :smile:

Hey I have another idea for your low volume issue. How about trying easyeffects? Please note the following if you are going to use easyeffects.

  1. You need to install all it’s optional dependencies as well since without them you won’t be able to apply any effects at all. They are needed. More on them on this post below
  1. There are times when waking up from sleep leaves me with no sound on my machine. This didn’t happen before using easyeffects. And changing TTY doesn’t do anything at these times. Though the resolution for that is pretty simple.

2.1 Restart your pipewire sound server.

systemctl restart --user pipewire-pulse.socket pipewire.socket wireplumber.service

2.2 kill the running easyeffects sink, since it needs restarting too.

kill -SIGKILL $(pgrep easyeffects)

2.3 restart easyeffects

setsid easyeffects --gapplication-service&

With that out of the way here is my easyeffects config to help you out. Now beware that I am no sound expert and these settings might not be optimal but hey they work for my laptop and increase audio’s loundness for me so goodluck. :smile:





These are the values that currently work for me, please don’t ask how I just got hit and trial and they seemed to work. You might have to do the same.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.