Music did not pause when headphone disconnected

Bug #1457531 reported by Magdalena Mirowicz
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Medium
John McAleely
Ubuntu UX
Fix Released
High
Matthew Paul Thomas
media-hub (Ubuntu)
Fix Released
Medium
Unassigned
media-hub (Ubuntu RTM)
Fix Released
Medium
Unassigned

Bug Description

" I was listening to music on the train and after disconnected the bluetooth headphone, the music played via speaker. Super embarrassing, I had to search for the phone in my pocket, unlock, find the music app, pause."

<https://wiki.ubuntu.com/Sound#Pausing_media_playback_when_headphones_are_disconnected>: "If audio is currently playing through the multimedia role, and the output role changes because headphones or a headset was disconnected, any current player should pause, to guard against music or other embarrassing audio suddenly blaring. (That is, an Mpris pause signal should be sent to whichever app is using the media hub.)"

Changed in ubuntu-ux:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Matthew Paul Thomas (mpt)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :
Changed in ubuntu-ux:
status: Triaged → Fix Committed
description: updated
Changed in media-hub:
assignee: nobody → Jim Hodapp (jhodapp)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in media-hub (Ubuntu):
status: New → Confirmed
Changed in canonical-devices-system-image:
assignee: nobody → John McAleely (john.mcaleely)
importance: Undecided → Medium
milestone: none → backlog
status: New → Confirmed
Jim Hodapp (jhodapp)
no longer affects: media-hub
Changed in media-hub (Ubuntu):
importance: Undecided → Medium
Changed in media-hub (Ubuntu RTM):
importance: Undecided → Medium
Revision history for this message
Jim Hodapp (jhodapp) wrote :

This seems fixed. Will re-open if someone is able to reproduce this issue again.

Changed in media-hub (Ubuntu RTM):
status: New → Fix Released
Changed in media-hub (Ubuntu):
status: Confirmed → Fix Released
Changed in ubuntu-ux:
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: Confirmed → Fix Released
Revision history for this message
Ben Wiley (benwiley4000) wrote :

Seems I'm experiencing this same bug in Ubuntu 18.04. Is there some way to monitor whether the trigger is firing in the first place, and if it is, what's happening when it does?

Revision history for this message
Ben Wiley (benwiley4000) wrote :

Sorry, just realized this document has little to do with what's actually implemented in Ubuntu. Is there a way to figure out what the actual implemented behavior is supposed to be?

Revision history for this message
Jean- (jean-helou) wrote :

@jhodapp

On ubuntu Ubuntu 20.04.1 LTS:

given spotify installed from snap
with playerctl installed from apt
with a BOSE QC35 II connected and active
when I play music on spotify
and I shut down the headset,
spotify does not pause the music

Corresponding journalctl traces:
```
janv. 19 12:11:41 x1byjean acpid[1487]: input device has been disconnected, fd 21
janv. 19 12:11:41 x1byjean /usr/lib/gdm3/gdm-x-session[5171]: (II) config/udev: removing device LE-Grotte 35ii (AVRCP)
janv. 19 12:11:41 x1byjean /usr/lib/gdm3/gdm-x-session[5171]: (**) Option "fd" "76"
janv. 19 12:11:41 x1byjean /usr/lib/gdm3/gdm-x-session[5171]: (II) event20 - LE-Grotte 35ii (AVRCP): device removed
janv. 19 12:11:41 x1byjean /usr/lib/gdm3/gdm-x-session[5171]: (II) UnloadModule: "libinput"
janv. 19 12:11:41 x1byjean /usr/lib/gdm3/gdm-x-session[5171]: (II) systemd-logind: releasing fd for 13:84
janv. 19 12:11:41 x1byjean gsd-media-keys[5530]: Unable to get default sink
janv. 19 12:11:41 x1byjean dbus-daemon[1494]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.94" (uid=1000 pid=5078 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo" label="unconfined") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.4" (uid=0 pid=1491 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
janv. 19 12:11:41 x1byjean audit[1494]: USER_AVC pid=1494 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="CheckPermissions" name=":1.11" mask="receive" pid=15782 label="snap.spotify.spotify" peer_pid=1495 peer_label="unconfined"
                                         exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
janv. 19 12:11:41 x1byjean kernel: audit: type=1107 audit(1611054701.189:230): pid=1494 uid=103 auid=4294967295 ses=4294967295 msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/NetworkManager" interface="org.freedesktop.NetworkManager" member="CheckPermissions" name=":1.11" mask="receive" pid=15782 label="snap.spotify.spotify" peer_pid=1495 peer_label="unconfined"
                                    exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers