[Bug 1201776] New: When BT headset is powered off application outputting sound locks up

https://bugzilla.suse.com/show_bug.cgi?id=1201776 Bug ID: 1201776 Summary: When BT headset is powered off application outputting sound locks up Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Sound Assignee: tiwai@suse.com Reporter: msuchanek@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- To reproduce: - connect BT headset - mplayer somefile.mp4 (that has audio) - power off BT headset Expected: sound playback continues on some random device that is available Actual: mplayer stops -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c1 --- Comment #1 from Michal Suchanek <msuchanek@suse.com> --- Looks like pipewire cannot output to ALSA at all, hence it lacks any output when BT is removed. list-objects id 0, type PipeWire:Interface:Core/3 object.serial = "0" core.name = "pipewire-0" id 1, type PipeWire:Interface:Module/3 object.serial = "1" module.name = "libpipewire-module-rt" id 2, type PipeWire:Interface:Module/3 object.serial = "2" module.name = "libpipewire-module-protocol-native" id 3, type PipeWire:Interface:Module/3 object.serial = "3" module.name = "libpipewire-module-profiler" id 4, type PipeWire:Interface:Profiler/3 object.serial = "4" id 5, type PipeWire:Interface:Module/3 object.serial = "5" module.name = "libpipewire-module-metadata" id 6, type PipeWire:Interface:Factory/3 object.serial = "6" module.id = "5" factory.name = "metadata" factory.type.name = "PipeWire:Interface:Metadata" factory.type.version = "3" id 7, type PipeWire:Interface:Module/3 object.serial = "7" module.name = "libpipewire-module-spa-device-factory" id 8, type PipeWire:Interface:Factory/3 object.serial = "8" module.id = "7" factory.name = "spa-device-factory" factory.type.name = "PipeWire:Interface:Device" factory.type.version = "3" id 9, type PipeWire:Interface:Module/3 object.serial = "9" module.name = "libpipewire-module-spa-node-factory" id 10, type PipeWire:Interface:Factory/3 object.serial = "10" module.id = "9" factory.name = "spa-node-factory" factory.type.name = "PipeWire:Interface:Node" factory.type.version = "3" id 11, type PipeWire:Interface:Module/3 object.serial = "11" module.name = "libpipewire-module-client-node" id 12, type PipeWire:Interface:Factory/3 object.serial = "12" module.id = "11" factory.name = "client-node" factory.type.name = "PipeWire:Interface:ClientNode" factory.type.version = "4" id 13, type PipeWire:Interface:Module/3 object.serial = "13" module.name = "libpipewire-module-client-device" id 14, type PipeWire:Interface:Factory/3 object.serial = "14" module.id = "13" factory.name = "client-device" factory.type.name = "Spa:Pointer:Interface:Device" factory.type.version = "0" id 15, type PipeWire:Interface:Module/3 object.serial = "15" module.name = "libpipewire-module-portal" id 16, type PipeWire:Interface:Module/3 object.serial = "16" module.name = "libpipewire-module-access" id 17, type PipeWire:Interface:Module/3 object.serial = "17" module.name = "libpipewire-module-adapter" id 18, type PipeWire:Interface:Factory/3 object.serial = "18" module.id = "17" factory.name = "adapter" factory.type.name = "PipeWire:Interface:Node" factory.type.version = "3" id 19, type PipeWire:Interface:Module/3 object.serial = "19" module.name = "libpipewire-module-link-factory" id 20, type PipeWire:Interface:Factory/3 object.serial = "20" module.id = "19" factory.name = "link-factory" factory.type.name = "PipeWire:Interface:Link" factory.type.version = "3" id 21, type PipeWire:Interface:Module/3 object.serial = "21" module.name = "libpipewire-module-session-manager" id 22, type PipeWire:Interface:Factory/3 object.serial = "22" module.id = "21" factory.name = "client-endpoint" factory.type.name = "PipeWire:Interface:ClientEndpoint" factory.type.version = "0" id 23, type PipeWire:Interface:Factory/3 object.serial = "23" module.id = "21" factory.name = "client-session" factory.type.name = "PipeWire:Interface:ClientSession" factory.type.version = "0" id 24, type PipeWire:Interface:Factory/3 object.serial = "24" module.id = "21" factory.name = "session" factory.type.name = "PipeWire:Interface:Session" factory.type.version = "0" id 25, type PipeWire:Interface:Factory/3 object.serial = "25" module.id = "21" factory.name = "endpoint" factory.type.name = "PipeWire:Interface:Endpoint" factory.type.version = "0" id 26, type PipeWire:Interface:Factory/3 object.serial = "26" module.id = "21" factory.name = "endpoint-stream" factory.type.name = "PipeWire:Interface:EndpointStream" factory.type.version = "0" id 27, type PipeWire:Interface:Factory/3 object.serial = "27" module.id = "21" factory.name = "endpoint-link" factory.type.name = "PipeWire:Interface:EndpointLink" factory.type.version = "0" id 28, type PipeWire:Interface:Node/3 object.serial = "28" factory.id = "10" priority.driver = "20000" node.name = "Dummy-Driver" id 29, type PipeWire:Interface:Node/3 object.serial = "29" factory.id = "10" priority.driver = "19000" node.name = "Freewheel-Driver" id 30, type PipeWire:Interface:Metadata/3 object.serial = "30" metadata.name = "settings" id 31, type PipeWire:Interface:Client/3 object.serial = "31" module.id = "2" pipewire.protocol = "protocol-native" pipewire.sec.pid = "8228" pipewire.sec.uid = "1000" pipewire.sec.gid = "100" pipewire.access = "unrestricted" application.name = "xdg-desktop-portal" id 32, type PipeWire:Interface:Client/3 object.serial = "32" module.id = "2" pipewire.protocol = "protocol-native" pipewire.sec.pid = "8408" pipewire.sec.uid = "1000" pipewire.sec.gid = "100" pipewire.access = "unrestricted" application.name = "WirePlumber" id 33, type PipeWire:Interface:Client/3 object.serial = "33" module.id = "2" pipewire.protocol = "protocol-native" pipewire.sec.pid = "8408" pipewire.sec.uid = "1000" pipewire.sec.gid = "100" pipewire.access = "unrestricted" application.name = "WirePlumber [export]" id 34, type PipeWire:Interface:Metadata/3 factory.id = "6" module.id = "5" metadata.name = "default" client.id = "32" object.serial = "34" id 35, type PipeWire:Interface:Metadata/3 metadata.name = "route-settings" factory.id = "6" module.id = "5" client.id = "32" object.serial = "35" id 36, type PipeWire:Interface:Client/3 object.serial = "36" module.id = "2" pipewire.protocol = "protocol-native" pipewire.sec.pid = "1097" pipewire.sec.uid = "1000" pipewire.sec.gid = "100" pipewire.access = "unrestricted" application.name = "ALSA plug-in [lxpanel]" id 43, type PipeWire:Interface:Client/3 object.serial = "79" module.id = "2" pipewire.protocol = "protocol-native" pipewire.sec.pid = "5399" pipewire.sec.uid = "1000" pipewire.sec.gid = "100" pipewire.access = "unrestricted" application.name = "pw-cli" -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c2 --- Comment #2 from Michal Suchanek <msuchanek@suse.com> --- aplay -l **** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: 92HD91BXX Analog [92HD91BXX Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 Michal Suchanek <msuchanek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|When BT headset is powered |pipewire cannot output |off application outputting |sound through ALSA device |sound locks up | -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c3 --- Comment #3 from Takashi Iwai <tiwai@suse.com> --- How was the pipwire stuff installed? Did you install pipewire-pulseaudio package for replacing PA? Leap 15.4 had a problem of activating the user service in the past. Please make sure that both wireplumber and pipwire-pulse services are running in user mode (check systemctl --user). -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c4 --- Comment #4 from Michal Suchanek <msuchanek@suse.com> --- Restarting PW one more time fixed the problem. Still I see no way to diagnose this, the pipewire service status is quite terse. -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c5 --- Comment #5 from Takashi Iwai <tiwai@suse.com> --- Then please check the "systemctl --user" output after a fresh login, namely, wireplumber.service, pipwire.socket, pipewire-pulse.socket, pipewire.service and pipewire-pulse.service should be active and running as user. -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c6 --- Comment #6 from Michal Suchanek <msuchanek@suse.com> --- They are running all right, but they were running before as well. That's the problem - I don't see any difference between the working and broken state. systemctl --user status wireplumber.service pipwire.socket pipewire-pulse.socket pipewire.service pipewire-pulse.service | cat Unit pipwire.socket could not be found. ��� wireplumber.service - Multimedia Service Session Manager Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2022-07-22 15:07:35 CEST; 1h 6min ago Main PID: 15732 (wireplumber) Tasks: 4 (limit: 4915) Memory: 10.5M CPU: 1.246s CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service ������15732 /usr/bin/wireplumber Jul 22 15:07:35 naga systemd[2613]: Started Multimedia Service Session Manager. Jul 22 15:07:35 naga wireplumber[15732]: Failed to set scheduler settings: Operation not permitted Jul 22 15:07:35 naga wireplumber[15732]: reserve-device plugin is not connected to D-Bus, disabling device reservation Jul 22 15:07:36 naga wireplumber[15732]: <WpPortalPermissionStorePlugin:0x557fa234f360> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera ��� pipewire-pulse.socket - PipeWire PulseAudio Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.socket; enabled; vendor preset: enabled) Active: active (running) since Fri 2022-07-22 10:18:15 CEST; 5h 56min ago Until: Fri 2022-07-22 10:18:15 CEST; 5h 56min ago Triggers: ��� pipewire-pulse.service Listen: /run/user/1000/pulse/native (Stream) CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/pipewire-pulse.socket Jul 22 10:18:15 naga systemd[2613]: Listening on PipeWire PulseAudio. ��� pipewire.service - PipeWire Multimedia Service Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2022-07-22 15:07:35 CEST; 1h 6min ago TriggeredBy: ��� pipewire.socket Main PID: 15731 (pipewire) Tasks: 2 (limit: 4915) Memory: 5.2M CPU: 18.688s CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service ������15731 /usr/bin/pipewire Jul 22 15:07:35 naga systemd[2613]: Stopped PipeWire Multimedia Service. Jul 22 15:07:35 naga systemd[2613]: pipewire.service: Consumed 8.569s CPU time. Jul 22 15:07:35 naga systemd[2613]: Started PipeWire Multimedia Service. ��� pipewire-pulse.service - PipeWire PulseAudio Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2022-07-22 10:18:15 CEST; 5h 56min ago TriggeredBy: ��� pipewire-pulse.socket Main PID: 1097 (pipewire-pulse) Tasks: 2 (limit: 4915) Memory: 4.0M CPU: 1min 1.430s CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service ������1097 /usr/bin/pipewire-pulse Jul 22 10:18:15 naga systemd[2613]: Started PipeWire PulseAudio. Jul 22 10:18:15 naga pipewire-pulse[1108]: pw.conf: execvp error 'pactl': No such file or directory Jul 22 10:19:33 naga pipewire-pulse[1097]: mod.protocol-pulse: client 0x55d896e26af0 [MPlayer]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error) Jul 22 10:39:50 naga pipewire-pulse[1097]: mod.protocol-pulse: client 0x55d896e5e3d0 [MPlayer]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error) Jul 22 10:50:22 naga pipewire-pulse[1097]: mod.protocol-pulse: client 0x55d896e90a80 [MPlayer]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error) Jul 22 11:11:31 naga pipewire-pulse[1097]: mod.protocol-pulse: client 0x55d896e8daa0 [MPlayer]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error) Jul 22 13:46:54 naga pipewire-pulse[1097]: mod.protocol-pulse: client 0x55d896e70310 [Chromium]: ERROR command:-1 (invalid) tag:2 error:25 (Input/output error) -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c7 --- Comment #7 from Takashi Iwai <tiwai@suse.com> --- Hm, is either pipewire-alsa or alsa-plugins-pulse package installed? The latter might be uninstallable with pipewire (which was addressed very recently). -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c8 --- Comment #8 from Michal Suchanek <msuchanek@suse.com> --- rpm -qa | grep -E alsa\|pulse\|pipewire alsa-devel-1.2.7.1-1.1.x86_64 pipewire-spa-plugins-0_2-0.3.55-1.1.x86_64 libpulse0-32bit-16.0-1.1.x86_64 libpulse0-16.0-1.1.x86_64 alsa-plugins-pulse-32bit-1.2.7.1-1.1.x86_64 pipewire-alsa-32bit-0.3.55-1.1.x86_64 pipewire-spa-plugins-0_2-32bit-0.3.55-1.1.x86_64 libgvncpulse-1_0-0-1.3.0-1.6.x86_64 pipewire-spa-tools-0.3.55-1.1.x86_64 alsa-oss-1.1.8-4.5.x86_64 pipewire-aptx-0.3.54-1.1.x86_64 alsa-plugins-upmix-1.2.7.1-1.1.x86_64 pulseaudio-utils-32bit-16.0-1.1.x86_64 pipewire-alsa-0.3.55-1.1.x86_64 alsa-utils-1.2.7-1.1.x86_64 pipewire-modules-0_3-0.3.55-1.1.x86_64 pipewire-0.3.55-1.1.x86_64 pipewire-pulseaudio-0.3.55-1.1.x86_64 libpipewire-0_3-0-32bit-0.3.55-1.1.x86_64 pulseaudio-setup-16.0-1.1.x86_64 pipewire-tools-0.3.55-1.1.x86_64 alsa-1.2.7.1-1.1.x86_64 alsa-oss-32bit-1.1.8-4.5.x86_64 alsa-plugins-jack-32bit-1.2.7.1-1.1.x86_64 libpulse-mainloop-glib0-16.0-1.1.x86_64 libpipewire-0_3-0-0.3.55-1.1.x86_64 alsa-ucm-conf-1.2.7.1-1.1.noarch gstreamer-plugin-pipewire-0.3.55-1.1.x86_64 alsa-plugins-speexrate-1.2.7.1-1.1.x86_64 alsa-devel-32bit-1.2.7.1-1.1.x86_64 alsa-plugins-1.2.7.1-1.1.x86_64 pipewire-modules-0_3-32bit-0.3.55-1.1.x86_64 libpulse-devel-16.0-1.1.x86_64 mpg123-pulse-1.30.1-1.1.x86_64 -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c9 --- Comment #9 from Takashi Iwai <tiwai@suse.com> --- Could you install pulseaudio-utils package, too? Only *-32bit is installed, so far. -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c10 --- Comment #10 from Michal Suchanek <msuchanek@suse.com> --- yes, they can be installed without installing pulseaudio. Did not work for me previously for some reason. -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c11 --- Comment #11 from Takashi Iwai <tiwai@suse.com> --- If the installation of pulseaudio-utils didn't bring any improvement, please try to upgrade to the packages in OBS home:tiwai:leap-15.4:update repo. Those are built from the latest PW package for TW. -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c12 --- Comment #12 from Michal Suchanek <msuchanek@suse.com> --- I am running on TW already. The ALSA devices now work but I have no idea why they did not previously, and how to diagnose such problem. I tried to open the card in mplayer directly and restart PW and it did not break the PW output. -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c13 --- Comment #13 from Takashi Iwai <tiwai@suse.com> --- There was some fix for pipewire (bsc#1201349), maybe that was fixed recently? -- You are receiving this mail because: You are on the CC list for the bug.

https://bugzilla.suse.com/show_bug.cgi?id=1201776 https://bugzilla.suse.com/show_bug.cgi?id=1201776#c14 Michal Suchanek <msuchanek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #14 from Michal Suchanek <msuchanek@suse.com> --- Ok, that bug at least gives information on how to diagnose in case the issue reappears, thanks. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com