← Back to team overview

touch-packages team mailing list archive

[Bug 1274613] Re: module-bluetooth-discover does not load on login

 

This bug affects me on Xubuntu 14.04.3

My pulse audio config file also has the following but fails to load the
module:

	.ifexists module-bluetooth-discover.so
	load-module module-bluetooth-discover
	.endif

On my machine it seemed like there was a race condition and module-
bluetooth-discover a dependency.  If I attempted to load the modules
using the config file, directly on startup, or even too fast manually it
failed to load.


Here was my complete workaround:

1) Ensure that the module-bluetooth-discover module is installed
	sudo apt-get install pulseaudio-module-bluetooth

2) Load the following modules manually
	pactl load-module module-bluetooth-discover
	pactl load-module module-switch-on-connect

3) Check that the modules loaded
	pactl list modules | grep module-bluetooth-discover
	pactl list modules | grep module-switch-on-connect

4) Check that you are able to connect to the bluetooth speaker

To load the modules automatically:

5) Comment out the following lines from /etc/pulse/default.pa
	.ifexists module-bluetooth-discover.so
	load-module module-bluetooth-discover
	.endif

        -to-

	#.ifexists module-bluetooth-discover.so
	#load-module module-bluetooth-discover
	#.endif

6) Add the following as a new startup command using the "Session and Startup" GUI:
	bash -c "sleep(5); pactl load-module module-bluetooth-discover; pactl load-module module-switch-on-connect"


If you are having trouble I used this command to check why pulseaudio was failing to load the modules:
	cat /var/log/syslog | grep pulse

I found errors like:
	module.c: Module "module-bluetooth-discover" should be loaded once at most. Refusing to load.
	module-bluetooth-device.c: Failed to acquire transport /org/bluez/924/hci0/dev_00_12_6F_43_6E_75/fd0

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to pulseaudio in Ubuntu.
https://bugs.launchpad.net/bugs/1274613

Title:
  module-bluetooth-discover does not load on login

Status in pulseaudio package in Ubuntu:
  Triaged

Bug description:
  The following lines appear in /etc/pulse/default.pa, which I have not
  modified:

  .ifexists module-bluetooth-discover.so
  load-module module-bluetooth-discover
  .endif

  Expected: module-bluetooth-discover is loaded on login, as configured.

  Observed: pulseaudio's module-bluetooth-discover does not load on
  login. My system does not detect and set up sinks when I connect to
  Bluetooth devices (including an A2DP speaker and a headset).

  If I issue, in a terminal window:

  $ pactl load-module module-bluetooth-discover 
  24

  …then the devices are detected and sinks set up correctly.

  $ lsb_release -rd && apt-cache policy pulseaudio-module-bluetooth
  Description:    Ubuntu 13.10
  Release:        13.10
  pulseaudio-module-bluetooth:
    Installed: 1:4.0-0ubuntu6
    Candidate: 1:4.0-0ubuntu6
    Version table:
   *** 1:4.0-0ubuntu6 0
          500 http://mirrors.mit.edu/ubuntu/ saucy/main amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: pulseaudio 1:4.0-0ubuntu6
  ProcVersionSignature: Ubuntu 3.11.0-17.30-generic 3.11.10.3
  Uname: Linux 3.11.0-17-generic x86_64
  ApportVersion: 2.12.5-0ubuntu2.2
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  khaeru     2051 F.... pulseaudio
  Date: Thu Jan 30 12:18:50 2014
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2012-10-29 (457 days ago)
  InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
  MarkForUpload: True
  SourcePackage: pulseaudio
  UpgradeStatus: Upgraded to saucy on 2013-09-11 (140 days ago)
  dmi.bios.date: 05/15/2013
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A09
  dmi.board.name: 085VR5
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A00
  dmi.chassis.type: 8
  dmi.chassis.vendor: Dell Inc.
  dmi.chassis.version: 0.1
  dmi.modalias: dmi:bvnDellInc.:bvrA09:bd05/15/2013:svnDellInc.:pnDellSystemXPSL322X:pvr:rvnDellInc.:rn085VR5:rvrA00:cvnDellInc.:ct8:cvr0.1:
  dmi.product.name: Dell System XPS L322X
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1274613/+subscriptions