Update: I tried with a Pulseaudio distribution live USB (Ubuntu 20.04), the static noise with the cable headphones is there, so this may be a driver problem (or maybe an hardware problem).
I'll close the issue since it's probably not related to Pipewire.
If you are filing this issue with a regular release please try master as it might already be fixed.
Version, Distribution, Desktop Environment:
NAME=Fedora
VERSION="34 (Workstation Edition)"
ID=fedora
VERSION_ID=34
Gnome: 40.1.0
Kernel: 5.11.18-300.fc34.x86_64 #1 SMP Mon May 3 15:10:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Description of Problem:
When recording audio from headphones (cabled headphones from a Samsung phone), static noise results present in the recording. The same headphones work fine in Android/Windows/Macos.
How Reproducible: Always
Steps to Reproduce:
Actual Results: Static noise is present
Expected Results: No static noise
Additional Info Eg. pw-dump -N > file
(As Attachment Please):
I noticed another thing: if I record the sound using bluetooth headphones (after enabling bluez5.msbc-support = true
in /etc/pipewire/media-session.d/bluez-monitor.conf
), there is no noise (don't know if this is significant). Noise seems to appear only with cable headphones.
Thank you, I'm afraid it didn't work (all pipewire processes were stopped, but arecord didn't work):
% ps aux | grep pipewire
darioal+ 7426 2.7 0.0 337432 13548 ? S<sl 00:32 0:11 /usr/bin/pipewire
darioal+ 7444 0.0 0.0 317256 11116 ? S<l 00:32 0:00 /usr/bin/pipewire-media-session
darioal+ 7482 5.4 0.0 330704 10648 ? S<Lsl 00:32 0:22 /usr/bin/pipewire-pulse
darioal+ 8092 0.0 0.0 221544 784 pts/0 S+ 00:39 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox pipewire
% systemctl --user stop pipewire{,.socket,-pulse,-pulse.socket,-alsa,-media-session}
Failed to stop pipewire-alsa.service: Unit pipewire-alsa.service not loaded.
Failed to stop pipewire-media-session.service: Unit pipewire-media-session.service not loaded.
% ps aux | grep pipewire
darioal+ 8140 0.0 0.0 221544 784 pts/0 S+ 00:40 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox pipewire
% arecord -t wav --max-file-time 30 mon.wav
arecord: main:830: audio open error: L'host non è attivo
(yes, pipewire-pulse
has the socket, I added in my command)
Thank you, I stopped the services with:
systemctl --user stop pipewire{,.socket}
systemctl --user stop pipewire-pulse{,.socket}
(the Gnome Shell audio icon disappeared and systemctl status
now confirms that the services are down), but I can't record with arecord
:
% arecord -t wav --max-file-time 30 mon.wav
arecord: main:830: audio open error: L'host non è attivo
Is there some other service that I must start?
(sorry for the silly questions, not an expert, and thanks in advance)
I uncommented audio.format = "S16LE"
in /etc/pipewire/media-session.d/alsa-monitor.conf
and rebooted, the result is still the same: test-1
How can I stop the Pipewire services?
I tried with:
systemctl --user stop pipewire.service
systemctl --user stop pipewire-pulse.service
but they result still "active".
● pipewire.service - Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/user/pipewire.service.d
└─00-uresourced.conf
Active: active (running) since Fri 2021-05-14 22:33:15 CEST; 9min ago
TriggeredBy: ● pipewire.socket
Main PID: 4764 (pipewire)
Tasks: 4 (limit: 19002)
Memory: 6.5M
CPU: 246ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
├─4764 /usr/bin/pipewire
└─4783 /usr/bin/pipewire-media-session
mag 14 22:33:15 dario-dell-laptop systemd[1475]: Started Multimedia Service.
mag 14 22:33:15 dario-dell-laptop pipewire-media-session[4783]: native: listen(): Indirizzo già in uso
mag 14 22:33:15 dario-dell-laptop pipewire-media-session[4783]: native: RegisterProfile() failed: org.bluez.Error.AlreadyExists
mag 14 22:33:15 dario-dell-laptop pipewire-media-session[4783]: native: RegisterProfile() failed: org.bluez.Error.AlreadyExists
mag 14 22:37:50 dario-dell-laptop pipewire-media-session[4783]: no node found for 46
mag 14 22:37:50 dario-dell-laptop pipewire-media-session[4783]: no node found for 46
mag 14 22:37:51 dario-dell-laptop pipewire-media-session[4783]: no node found for 46
Is there something more that can be done to debug this?
I tried journalctl -xe | grep pipewire
, but I don't get anything interesting I think:
mag 13 22:00:32 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1133 of process 1133 (/usr/bin/pipewire-pulse) owned by '42' high priority at nice level -11.
mag 13 22:00:32 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1132 of process 1132 (/usr/bin/pipewire) owned by '42' high priority at nice level -11.
mag 13 22:00:32 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1135 of process 1133 (/usr/bin/pipewire-pulse) owned by '42' RT at priority 20.
mag 13 22:00:32 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1134 of process 1132 (/usr/bin/pipewire) owned by '42' RT at priority 20.
mag 13 22:00:32 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1144 of process 1144 (/usr/bin/pipewire-media-session) owned by '42' high priority at nice level -11.
mag 13 22:00:32 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1146 of process 1144 (/usr/bin/pipewire-media-session) owned by '42' RT at priority 20.
mag 13 22:00:41 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1708 of process 1708 (/usr/bin/pipewire) owned by '1000' high priority at nice level -11.
mag 13 22:00:41 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1709 of process 1709 (/usr/bin/pipewire-pulse) owned by '1000' high priority at nice level -11.
mag 13 22:00:41 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1715 of process 1715 (/usr/bin/pipewire-media-session) owned by '1000' high priority at nice level -11.
mag 13 22:00:41 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1710 of process 1708 (/usr/bin/pipewire) owned by '1000' RT at priority 20.
mag 13 22:00:41 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1711 of process 1709 (/usr/bin/pipewire-pulse) owned by '1000' RT at priority 20.
mag 13 22:00:41 dario-dell-laptop rtkit-daemon[679]: Successfully made thread 1718 of process 1715 (/usr/bin/pipewire-media-session) owned by '1000' RT at priority 20.
mag 13 22:00:55 dario-dell-laptop systemd[963]: pipewire-pulse.service: Deactivated successfully.
mag 13 22:00:55 dario-dell-laptop systemd[963]: pipewire.service: Deactivated successfully.
mag 13 22:00:55 dario-dell-laptop systemd[963]: pipewire-pulse.socket: Deactivated successfully.
mag 13 22:00:55 dario-dell-laptop systemd[963]: pipewire.socket: Deactivated successfully.
mag 13 22:14:06 dario-dell-laptop pipewire-pulse[1709]: pulse-server 0x5565a6296590: [Video] UNDERFLOW channel:0 offset:647168 underrun:4096
mag 13 22:14:16 dario-dell-laptop pipewire-pulse[1709]: pulse-server 0x5565a6296590: [Video] UNDERFLOW channel:0 offset:1290240 underrun:4096
mag 13 22:14:33 dario-dell-laptop pipewire-pulse[1709]: pulse-server 0x5565a63e6bb0: [Video] UNDERFLOW channel:0 offset:528384 underrun:4096
mag 13 22:14:59 dario-dell-laptop pipewire-pulse[1709]: pulse-server 0x5565a6296590: [Video] UNDERFLOW channel:0 offset:364544 underrun:4096
(the pulse-server 0x5565a63ab050: [Video] UNDERFLOW channel:0 offset:364544 underrun:4096
errors appear when playing the .wav file with Gnome Videos)
I tried to record with pw-record
, the result is always noisy:
pw-record-test
If you are filing this issue with a regular release please try master as it might already be fixed.
Version, Distribution, Desktop Environment:
NAME=Fedora
VERSION="34 (Workstation Edition)"
ID=fedora
VERSION_ID=34
Gnome: 40.1.0
Kernel: 5.11.18-300.fc34.x86_64 #1 SMP Mon May 3 15:10:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Description of Problem:
When recording audio from headphones (cabled headphones from a Samsung phone), static noise results present in the recording. The same headphones work fine in Android/Windows/Macos.
How Reproducible: Always
Steps to Reproduce:
Actual Results: Static noise is present
Expected Results: No static noise
Additional Info Eg. pw-dump -N > file
(As Attachment Please):