Cannot use BT speaker - sink is suspended

Bug #1608820 reported by Jean-Baptiste Lallement
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bluez (Ubuntu)
New
Undecided
Unassigned
pulseaudio (Ubuntu)
Confirmed
Critical
Luke Yelavich

Bug Description

After a fresh boot or resuming from suspend it is possible to connect to a BT speaker but not possible to play anything.
Furthermore, if I play a video from youtube, the stream plays fine if the output is the internal speaker, but as soon as I select the BT speaker the stream hangs. It resumes immediately if I switch back to the internal speaker.

When I play something over the BT speaker the following lines are logged in the journal:
pulseaudio[5340]: [pulseaudio] module-bluez5-device.c: Default profile not connected, selecting off profile
bluetoothd[3230]: /org/bluez/hci0/dev_B8_69_C2_3D_56_CE/fd1: fd(24) ready
rtkit-daemon[3950]: Supervising 5 threads of 1 processes of 1 users.
rtkit-daemon[3950]: Successfully made thread 28532 of process 5340 (n/a) owned by '1000' RT at priority 5.
rtkit-daemon[3950]: Supervising 6 threads of 1 processes of 1 users.
pulseaudio[5340]: [pulseaudio] bluez5-util.c: Transport TryAcquire() failed for transport /org/bluez/hci0/dev_B8_69_C2_3D_56_CE/fd1 (Operation Not Authorized)
kernel: input: B8:69:C2:3D:56:CE as /devices/virtual/input/input26
pulseaudio[5340]: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
pulseaudio[5340]: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
pulseaudio[5340]: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.
gnome-session[5383]: ** (zeitgeist-datahub:5874): WARNING **: zeitgeist-datahub.vala:212: Error during inserting events: GDBus.Error:org.gnome.zeitgeist.EngineError.InvalidArgument: Incomplete event: interpretation, manifestation and actor are required
wpa_supplicant[3556]: wlan0: WPA: Group rekeying completed with 14:0c:76:71:a1:f4 [GTK=CCMP]
pulseaudio[5340]: [pulseaudio] sink-input.c: Failed to create sink input: sink is suspended.

ProblemType: Bug
DistroRelease: Ubuntu 16.10
Package: bluez 5.37-0ubuntu5
ProcVersionSignature: Ubuntu 4.4.0-33.52-generic 4.4.15
Uname: Linux 4.4.0-33-generic x86_64
ApportVersion: 2.20.3-0ubuntu2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Aug 2 09:09:18 2016
InstallationDate: Installed on 2013-09-03 (1063 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
InterestingModules: rfcomm bnep btusb bluetooth
MachineType: ASUSTeK COMPUTER INC. UX32VD
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-33-generic.efi.signed root=UUID=1004226d-a9db-46c7-bd28-eca0806c12f2 ro pcie_aspm=force drm.vblankoffdelay=1 i915.semaphores=1 init=/lib/systemd/systemd-bootchart
SourcePackage: bluez
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/29/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: UX32VD.214
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: UX32VD
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrUX32VD.214:bd01/29/2013:svnASUSTeKCOMPUTERINC.:pnUX32VD:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnUX32VD:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.name: UX32VD
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.
hciconfig:
 hci0: Type: BR/EDR Bus: USB
  BD Address: C4:85:08:A7:45:76 ACL MTU: 310:10 SCO MTU: 64:8
  UP RUNNING
  RX bytes:3492 acl:70 sco:0 events:137 errors:0
  TX bytes:4838 acl:64 sco:0 commands:57 errors:0
upstart.bluetooth.override: manual

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
summary: - Cannot use BT speaker after resume from suspend
+ Cannot use BT speaker - sink is suspended
description: updated
Revision history for this message
Will Cooke (willcooke) wrote : Automatically added comment
Changed in pulseaudio (Ubuntu):
assignee: nobody → Luke Yelavich (themuso)
tags: added: desktop-trello-import
tags: removed: desktop-trello-import
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

After some experiments on a up to date yakkety, I cannot make audio BT work after a resume from suspend. The following procedure works around the problem:
1. With a BT speaker already paired, power off the BT speaker
2. Reboot the laptop
3. Go to the BT indicator, and with the BT speaker still off, select the menu item for the speaker, and enable the connection
4. Turn on the BT speaker <- BT connection will establish automatically. At this point the ouput goes to the speaker but you cannot control the volume
5. Go to sound settings and select the speaker in the list of output devices.

Revision history for this message
Luke Yelavich (themuso) wrote : Re: [Bug 1608820] Re: Cannot use BT speaker - sink is suspended

 affects ubuntu/pulseaudio
 status inprogress

Changed in pulseaudio (Ubuntu):
status: New → In Progress
Revision history for this message
Luke Yelavich (themuso) wrote :

Could I get the output of pacmd list-cards with the speaker paired?

Thanks.

Luke Yelavich (themuso)
Changed in pulseaudio (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in pulseaudio (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Luke Yelavich (themuso) wrote :

Could you please test using the version of Pulse for yakkety from my PPA? ppa:themuso/ppa.

I've disabled the Ubuntu touch bluetooth patches, and I want to know if this changes anything for you. I'm already working on another bug introduced by those patches in xenial, so its possible that this is something similar.

Thanks.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks Luke, it works much better with pulse from your PPA.

I tried several resume/suspend cycles, powering the speaker off/on or not and it works much better. The initial pairing with the device is also improved. I'll keep your ppa for a while to see how it behaves but overall this is really an improvement.

Changed in pulseaudio (Ubuntu):
importance: Undecided → Critical
Revision history for this message
Luke Yelavich (themuso) wrote :

Ok, I think I've found the problem... Please update to the latest pulse package from my yakkety PPA, ppa:themuso/ppa. Let me know if it makes a difference.

I've re-applied the touch bluez patches, but removed one problematic hunk that was probably needed for vivid, but not for >= xenial.

Revision history for this message
Luke Yelavich (themuso) wrote :

Ok, I am pretty sure the bug for this is actually 1574324. Plesae see that bug, as I have just uploaded an SRU for xenial and yakkety. Bug should be fixed in zesty.

I will markt his one as a dupe, please remove the duplciate marking if the SRU does not fix the problem.

 duplicate 1574324

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.