Choose style:

Author Topic: Bluetooth problem : trying to adapt a debian solution  (Read 6226 times)

0 Members and 1 Guest are viewing this topic.

Offline NomNomNom

  • nOOb
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): peppermint 6
Bluetooth problem : trying to adapt a debian solution
« on: April 04, 2016, 08:33:01 am »
Hi,

I'm having trouble getting my bluetooth headsets to work on Peppermint running on my netbook. I've had the exact same problem on debian on my laptop and managed to fix it using the Troubleshooting part of this tutorial :

Quote
Troubleshooting

Bluetooth headset is connected, but ALSA/PulseAudio fails to pick up the connected device or there's no device to pick. This happens because GDM captures A2DP sink on session start, as GDM needs pulseaudio in the gdm session for accessibility. For example, the screen reader requires it.

In order to prevent GDM from capturing the A2DP sink on session start, edit /var/lib/gdm3/.config/pulse/client.conf (or create it, if it doesn't exist):

Code: [Select]
autospawn = no
daemon-binary = /bin/true

After that you have to grant access to this file to Debian-gdm user:

Code: [Select]
# chown Debian-gdm:Debian-gdm /var/lib/gdm3/.config/pulse/client.conf

In order to auto-connect a2dp for some devices, add this to /etc/pulse/default.pa:

Code: [Select]
load-module module-switch-on-connect

Reboot.

Now the sound device (bluetooth headset) should be accessible through pavucontrol and standard audio device manager.

I found out that the /var/lib/gdm3/.config/pulse/client.conf file was actually located in /etc/pulse/client.conf in Peppermint but I'm stuck at the second part. The Debian-gdm user doesn't seem to exist or it's name is different in Peppermint. :-\

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25963
  • Karma: 2836
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #1 on: April 04, 2016, 09:15:18 am »
We don't have GDM so it's not going to be the same problem

Does running
Code: [Select]
sudo pactl load-module module-bluetooth-discover
then trying to pair the headset work ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline NomNomNom

  • nOOb
  • *
  • Posts: 4
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): peppermint 6
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #2 on: April 04, 2016, 09:41:31 am »
Ok. I thought, even thought these are different distros, the problem would have a similar origin. Thank you for the information.

Does running
Code: [Select]
sudo pactl load-module module-bluetooth-discover
then trying to pair the headset work ?
I get this :
Code: [Select]
Failure: Module initialization failed

Offline pchan

  • nOOb
  • *
  • Posts: 14
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): peppermint 7, peppermint 6
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #3 on: July 10, 2016, 10:04:43 am »


Does running
Code: [Select]
sudo pactl load-module module-bluetooth-discover
then trying to pair the headset work ?

I am also having the same problem with bluetooth audio after peppermint 7 did an update.
before updaing, the audio of my headset worked after doing this :
     
                  sudo pactl load-module module-bluetooth-discover

  after update ..., headset audio stopped working. Bluetooth was connected and volume mixer indicated hi fidelity profile. But vlc , even though set to output via headset, cannot give out any sound.


tried in terminal : sudo pactl load-module module-bluetooth-discover

But,

Failure: Module initialization failed

Hope this can be solved because peppermint 7 is really nice. In peppermint 6, bluetooth headset audio worked without any problem at all.

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25963
  • Karma: 2836
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline pchan

  • nOOb
  • *
  • Posts: 14
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): peppermint 7, peppermint 6
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #5 on: July 11, 2016, 07:16:43 am »
PCNetSpec

Thanks for the quick reply.

I have already tried editing ....

" ..... /etc/pulse/default.pa

and comment out (with an # at the beginning of the line) the following line:

#load-module module-bluetooth-discover

now edit the file:

/usr/bin/start-pulseaudio-x11 ..."

Unfortunately, it didn't work for me so I have changed the "default.pa" and "start-pulseaudio-x11" back to their oriiginal state.


In the latest version of Linux lite, they made it work by adding a "audio.conf" file in the "/etc/bluetooth/..."    folder.
Bluetooth pulse aidion was already in the distro.

As for me, I am used to peppermint 6 and I think i like peppermint 7 more than linuxlite. If there is no way to solve the bluetooth problem for peppermint 7, i will most probably reinstall peppermint 6 again. Peppermint 6 is simply amazing and everything works in my 3 laptops. The only complaint is limited features of the lxde start menu. tried cardpio but a bit buggy to my liking.

If possible, I would like to stay with peppermint 7. I just wonder how they managed to make bluetooth pulse audio to work fine in linuxlite. Could it be they are using the older version of bluetooth pulse audio??? hmmmm ...

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25963
  • Karma: 2836
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #6 on: July 11, 2016, 07:30:39 am »
My problem is (for the time being) I don't have anything to test a2dp with, so I don't know how much help I can be :(

I'll download Linux Lite and see if I can make sense out of any changes they've made .. but it may be a day or two.

You're talking about Linux Lite 3.0 right ? .. or 2.8 ?
« Last Edit: July 11, 2016, 08:07:37 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline pchan

  • nOOb
  • *
  • Posts: 14
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): peppermint 7, peppermint 6
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #7 on: July 11, 2016, 07:44:25 am »
Thanks! Your kind efforts to help itself  is greatly appreciated.

Yes. Linuxlite 3. and in their network support forum, someone posted the solution to solve the bluetooth audio problem. The solution was to create a file called "audio.conf" ..... It worked well when i installed linuxlite 3 just to try out. After testing it, I have removed linuxlite 3 and reinstalled peppermint 7. Hopefully, there is a solution for peppermint 7. I do own a bluetooth headset that is on the cheaper end but the sound is great and i really enjoy using my bluetooth headset.
« Last Edit: July 11, 2016, 07:48:14 am by pchan »

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25963
  • Karma: 2836
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #8 on: July 11, 2016, 08:07:50 am »
Have you seen the posts #35 and #36 here
https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1438510

there's a script that downloads these files
Code: [Select]
wget http://snapshot.debian.org/archive/debian/20160609T170130Z/pool/main/g/gst-plugins-good1.0/gstreamer1.0-pulseaudio_1.8.2-1_amd64.deb

wget http://snapshot.debian.org/archive/debian/20160419T163343Z/pool/main/j/json-c/libjson-c3_0.12-3_amd64.deb

wget http://snapshot.debian.org/archive/debian/20160419T163343Z/pool/main/p/pulseaudio/libpulse0_8.0-2%2Bb2_amd64.deb

wget http://snapshot.debian.org/archive/debian/20160419T163343Z/pool/main/p/pulseaudio/libpulsedsp_8.0-2%2Bb2_amd64.deb

wget http://snapshot.debian.org/archive/debian/20160419T163343Z/pool/main/p/pulseaudio/libpulse-mainloop-glib0_8.0-2%2Bb2_amd64.deb

wget http://snapshot.debian.org/archive/debian/20160419T163343Z/pool/main/p/pulseaudio/pulseaudio_8.0-2%2Bb2_amd64.deb

wget http://snapshot.debian.org/archive/debian/20160419T163343Z/pool/main/p/pulseaudio/pulseaudio-module-bluetooth_8.0-2%2Bb2_amd64.deb

wget http://snapshot.debian.org/archive/debian/20160419T163343Z/pool/main/p/pulseaudio/pulseaudio-utils_8.0-2%2Bb2_amd64.deb
and suggests installing them over the Ubuntu versions after stopping pulseaudio.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25963
  • Karma: 2836
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #9 on: July 11, 2016, 08:11:40 am »
@NomNomNom

have you installed
Code: [Select]
sudo apt-get install pulseaudio-module-bluetooth
yet ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline pchan

  • nOOb
  • *
  • Posts: 14
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): peppermint 7, peppermint 6
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #10 on: July 11, 2016, 08:17:14 am »
PCNetSpec

Yes, I have the latest version of pulseaudio-module-bluetooth

I logged off for a moment to try

creating an "audio.conf" file and place it in /etc/bluetooth . After rebooting, i tested my headset but unfortunately it didn't work. I have removed the "audio.conf" file.

I will try  the "https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1438510" solution and report back.

Thanks

Offline pchan

  • nOOb
  • *
  • Posts: 14
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): peppermint 7, peppermint 6
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #11 on: July 11, 2016, 08:45:30 am »
Quote
Cyril Humbert (cyril-h5t) wrote on 2016-07-09:    #36

Updated procedure for comment #35, allowing to install more easily
Debian Testinf pulseaudio package on Ubunutu 16.04.

 1. Stop pulseaudio. Then, backup and purge pulseudio user conf files.

 2. Install pulseaudio Debian Testing (June 2016) packages over Ubuntu
    pulseaudio packages. This will appear as a kind of downgrade. See
    get-pulseaudio8-debian-amd64.sh script. If you use
    pulseaudio-module-x11 too, use the corresponding Debian Testing
    version too to satisfy dependencies.

 3. Restart.

 4. A2DP profile should now work as expected with the default
    BlueZ, pulseaudio configuration. Use pavucontrol to select
    A2DP profile if needed.

I have already downloaded the 8 files  from debian using wget ... instead of using the "get-pulseaudio8-debian-amd64.sh" script which i don't know where to find it.

I am not sure how to do this step >  backup and purge pulseudio user conf files.

Stopping pulseaudio is as simple as > killall pulseaudio ... right?

Also, this line, "If you use pulseaudio-module-x11 too, use the corresponding Debian Testing version too to satisfy dependencies" ...  is confusing to me.

Or should I wait a few days before messing up my newly installed peppermint 7. Maybe, you might find something in linuxlite 3. Or could i not simply purge the current version of "pulseaudio-module-bluetooth" and reinstall the version that was used in peppermint 6? Everything was working well in peppermint 6.

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25963
  • Karma: 2836
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #12 on: July 11, 2016, 08:53:12 am »
Gimme a day or two and I'll spin up a PM7 VM and test the debian downgrade instructions .. though at the end of the day I can only provide downgrade INSTRUCTIONS, I can't test if they'll give you working a2dp, as I said I've no hardware to test it with.

I doubt if downgrading just pulseaudio-module-bluetooth from peppermint 6 would work.

and IIRC, stopping pulseaudio was a bit more complex than just "killall pulseaudio", you had to disable "respawn" first.
« Last Edit: July 11, 2016, 08:55:41 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline pchan

  • nOOb
  • *
  • Posts: 14
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): peppermint 7, peppermint 6
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #13 on: July 11, 2016, 09:18:32 am »
Thanks PCNetSpec

Please take your time. I can wait a few days. I will just use my plugged in earphones for the moment. The concept of peppermint 7 is the most impressive I have ever come across and I love it. I also love peppermint 6 and will have no problem going back to it and live with the old start menu it the bluetooth audio thing don't work out so well in ubuntu 16.04 based peppermint7 yet. The bluetooth audio worked after an immediate install of peppermint 7 and after installing the

pulseaudio-module-bluetooth

It was after doing an update that the bluetooth audio stoped working. So, it looks like  some updates from ubuntu 16.04  messed up the bluetooth pulse audio. If i didn't do an update, the bluetooth audio will still be working fine. but it will be at the cost of not doing updates.

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25963
  • Karma: 2836
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Bluetooth problem : trying to adapt a debian solution
« Reply #14 on: July 11, 2016, 09:29:57 am »
That's handy to know.

Can you run:
Code: [Select]
zip -r ~/Desktop/apt.zip /var/log/apt
then host the file called "apt.zip" from your desktop somewhere online such as:
http://www.tinyupload.com/
and post a link to it

So I can get an idea of what's been updated.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec