bluez5 : Cannot connect to a paired bluetooth device on Ubuntu 17.10












4















I'm using bluez v5.46 on Ubuntu 17.10 and I cannot connect to a paired bluetooth device.



Here is the output of the bluetoothctl command :



$ bluetoothctl 
[NEW] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
Agent registered
[bluetooth]# scan on
Discovery started
[CHG] Controller 6C:0B:84:27:43:66 Discovering: yes
[NEW] Device FC:58:FA:A1:C2:70 OE-P51
[bluetooth]# trust FC:58:FA:A1:C2:70
[CHG] Device FC:58:FA:A1:C2:70 Trusted: yes
Changing FC:58:FA:A1:C2:70 trust succeeded
[bluetooth]# pair FC:58:FA:A1:C2:70
Attempting to pair with FC:58:FA:A1:C2:70
[CHG] Device FC:58:FA:A1:C2:70 Connected: yes
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
[CHG] Device FC:58:FA:A1:C2:70 Paired: yes
Pairing successful
[CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: no
[CHG] Device FC:58:FA:A1:C2:70 Connected: no
[CHG] Controller 6C:0B:84:27:43:66 Discoverable: no
[bluetooth]# connect FC:58:FA:A1:C2:70
Attempting to connect to FC:58:FA:A1:C2:70
Failed to connect: org.bluez.Error.Failed


Here is a little bit more info :



$ journalctl -u bluetooth | tail
Mar 29 12:06:01 tensorFlowPHY systemd[1]: Started Bluetooth service.
Mar 29 12:06:01 tensorFlowPHY bluetoothd[1136]: Starting SDP server
Mar 29 12:06:01 tensorFlowPHY bluetoothd[1136]: Bluetooth management interface 1.14 initialized
Mar 29 14:36:12 tensorFlowPHY bluetoothd[1136]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available
Mar 29 14:36:59 tensorFlowPHY bluetoothd[1136]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available


And systemctl says :



$ systemctl status bluetooth
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2018-03-30 16:30:15 CEST; 21s ago
Docs: man:bluetoothd(8)
Main PID: 1492 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 4915)
Memory: 1.5M
CPU: 42ms
CGroup: /system.slice/bluetooth.service
└─1492 /usr/lib/bluetooth/bluetoothd

Mar 30 16:30:15 tensorFlowPHY systemd[1]: Starting Bluetooth service...
Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Bluetooth daemon 5.46
Mar 30 16:30:15 tensorFlowPHY systemd[1]: Started Bluetooth service.
Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Starting SDP server
Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Bluetooth management interface 1.14 initialized
Mar 30 16:30:20 tensorFlowPHY bluetoothd[1492]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available
Mar 30 16:30:31 tensorFlowPHY bluetoothd[1492]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available


EDIT 1: I installed one Ubuntu package that was missing : pulseaudio-module-bluetooth and restarted pulseaudio with the command : pulseaudio -k



Now the output of the bluetooth log after connection trial is :



Mar 30 16:36:59 tensorFlowPHY bluetoothd[1492]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
Mar 30 16:37:00 tensorFlowPHY bluetoothd[1492]: connect error: Connection refused (111)
Mar 30 16:37:02 tensorFlowPHY bluetoothd[1492]: connect error: Connection refused (111)


Any idea why ?



EDIT 2 : I just restarted Ubuntu as someone asked to do. Still have the same pb.



EDIT 3 : I already have both modules loaded in /etc/pulse/default.pa :



$ egrep "(policy|discover)" /etc/pulse/default.pa
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover


But I cannot find those on the hdd, do I need to install something else ?



EDIT 4: My mistake, I used the locate command. After a sudo updatedb, the locate command is now able to find those 2 files.



EDIT 5 : Here is the pactl output :



$ pactl list modules | grep "Name:"
Name: module-device-restore
Name: module-stream-restore
Name: module-card-restore
Name: module-augment-properties
Name: module-switch-on-port-available
Name: module-udev-detect
Name: module-alsa-card
Name: module-alsa-card
Name: module-bluetooth-policy
Name: module-bluetooth-discover
Name: module-bluez5-discover
Name: module-native-protocol-unix
Name: module-default-device-restore
Name: module-rescue-streams
Name: module-always-sink
Name: module-intended-roles
Name: module-suspend-on-idle
Name: module-console-kit
Name: module-systemd-login
Name: module-position-event-sounds
Name: module-role-cork
Name: module-filter-heuristics
Name: module-filter-apply
Name: module-switch-on-connect
Name: module-x11-publish
Name: module-x11-cork-request
Name: module-x11-xsmp


and the dpkg -l output :



$ dpkg -l | grep blue
ii bluefish 2.2.9-1 amd64 advanced Gtk+ text editor for web and software development
ii bluefish-data 2.2.9-1 all advanced Gtk+ text editor (data)
ii bluefish-plugins 2.2.9-1 amd64 advanced Gtk+ text editor (plugins)
ii blueman 2.0.4-1ubuntu3 amd64 Graphical bluetooth manager
ii bluez 5.46-0ubuntu3 amd64 Bluetooth tools and daemons
ii bluez-cups 5.46-0ubuntu3 amd64 Bluetooth printer driver for CUPS
ii bluez-obexd 5.46-0ubuntu3 amd64 bluez obex daemon
ii bluez-tools 0.2.0~20140808-5build1 amd64 Set of tools to manage Bluetooth devices for linux
ii gnome-bluetooth 3.26.1-1 amd64 GNOME Bluetooth tools
ii indicator-bluetooth 0.0.6+17.10.20170605-0ubuntu3 amd64 System bluetooth indicator.
ii libbluetooth3:amd64 5.46-0ubuntu3 amd64 Library to use the BlueZ Linux Bluetooth stack
ii libgnome-bluetooth13:amd64 3.26.1-1 amd64 GNOME Bluetooth tools - support library
ii pulseaudio-module-bluetooth 1:10.0-2ubuntu3.1 amd64 Bluetooth module for PulseAudio sound server


EDIT 6: Your solution worked ! So to sum up :



$ bluetoothctl
[bluetooth]# power on
Changing power on succeeded
[CHG] Controller 6C:0B:84:27:43:66 Powered: yes
[bluetooth]# remove FC:58:FA:A1:C2:70
[DEL] Device FC:58:FA:A1:C2:70 OE-P51
Device has been removed
[bluetooth]# exit
Agent unregistered
[DEL] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
$ sudo service bluetooth restart


and finally :



$ bluetoothctl
[NEW] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
Agent registered
[bluetooth]# power on
Changing power on succeeded
[CHG] Controller 6C:0B:84:27:43:66 Powered: yes
[bluetooth]# scan on
Discovery started
[CHG] Controller 6C:0B:84:27:43:66 Discovering: yes
[NEW] Device FC:58:FA:A1:C2:70 OE-P51
[bluetooth]# trust FC:58:FA:A1:C2:70
[CHG] Device FC:58:FA:A1:C2:70 Trusted: yes
Changing FC:58:FA:A1:C2:70 trust succeeded
[bluetooth]# pair FC:58:FA:A1:C2:70
Attempting to pair with FC:58:FA:A1:C2:70
[CHG] Device FC:58:FA:A1:C2:70 Connected: yes
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
[CHG] Device FC:58:FA:A1:C2:70 Paired: yes
Pairing successful
[CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: no
[CHG] Device FC:58:FA:A1:C2:70 Connected: no
[bluetooth]# connect FC:58:FA:A1:C2:70
Attempting to connect to FC:58:FA:A1:C2:70
[CHG] Device FC:58:FA:A1:C2:70 Connected: yes
Connection successful
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
[CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
[OE-P51]#









share|improve this question





























    4















    I'm using bluez v5.46 on Ubuntu 17.10 and I cannot connect to a paired bluetooth device.



    Here is the output of the bluetoothctl command :



    $ bluetoothctl 
    [NEW] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
    Agent registered
    [bluetooth]# scan on
    Discovery started
    [CHG] Controller 6C:0B:84:27:43:66 Discovering: yes
    [NEW] Device FC:58:FA:A1:C2:70 OE-P51
    [bluetooth]# trust FC:58:FA:A1:C2:70
    [CHG] Device FC:58:FA:A1:C2:70 Trusted: yes
    Changing FC:58:FA:A1:C2:70 trust succeeded
    [bluetooth]# pair FC:58:FA:A1:C2:70
    Attempting to pair with FC:58:FA:A1:C2:70
    [CHG] Device FC:58:FA:A1:C2:70 Connected: yes
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
    [CHG] Device FC:58:FA:A1:C2:70 Paired: yes
    Pairing successful
    [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: no
    [CHG] Device FC:58:FA:A1:C2:70 Connected: no
    [CHG] Controller 6C:0B:84:27:43:66 Discoverable: no
    [bluetooth]# connect FC:58:FA:A1:C2:70
    Attempting to connect to FC:58:FA:A1:C2:70
    Failed to connect: org.bluez.Error.Failed


    Here is a little bit more info :



    $ journalctl -u bluetooth | tail
    Mar 29 12:06:01 tensorFlowPHY systemd[1]: Started Bluetooth service.
    Mar 29 12:06:01 tensorFlowPHY bluetoothd[1136]: Starting SDP server
    Mar 29 12:06:01 tensorFlowPHY bluetoothd[1136]: Bluetooth management interface 1.14 initialized
    Mar 29 14:36:12 tensorFlowPHY bluetoothd[1136]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available
    Mar 29 14:36:59 tensorFlowPHY bluetoothd[1136]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available


    And systemctl says :



    $ systemctl status bluetooth
    ● bluetooth.service - Bluetooth service
    Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
    Active: active (running) since Fri 2018-03-30 16:30:15 CEST; 21s ago
    Docs: man:bluetoothd(8)
    Main PID: 1492 (bluetoothd)
    Status: "Running"
    Tasks: 1 (limit: 4915)
    Memory: 1.5M
    CPU: 42ms
    CGroup: /system.slice/bluetooth.service
    └─1492 /usr/lib/bluetooth/bluetoothd

    Mar 30 16:30:15 tensorFlowPHY systemd[1]: Starting Bluetooth service...
    Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Bluetooth daemon 5.46
    Mar 30 16:30:15 tensorFlowPHY systemd[1]: Started Bluetooth service.
    Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Starting SDP server
    Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Bluetooth management interface 1.14 initialized
    Mar 30 16:30:20 tensorFlowPHY bluetoothd[1492]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available
    Mar 30 16:30:31 tensorFlowPHY bluetoothd[1492]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available


    EDIT 1: I installed one Ubuntu package that was missing : pulseaudio-module-bluetooth and restarted pulseaudio with the command : pulseaudio -k



    Now the output of the bluetooth log after connection trial is :



    Mar 30 16:36:59 tensorFlowPHY bluetoothd[1492]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
    Mar 30 16:37:00 tensorFlowPHY bluetoothd[1492]: connect error: Connection refused (111)
    Mar 30 16:37:02 tensorFlowPHY bluetoothd[1492]: connect error: Connection refused (111)


    Any idea why ?



    EDIT 2 : I just restarted Ubuntu as someone asked to do. Still have the same pb.



    EDIT 3 : I already have both modules loaded in /etc/pulse/default.pa :



    $ egrep "(policy|discover)" /etc/pulse/default.pa
    .ifexists module-bluetooth-policy.so
    load-module module-bluetooth-policy
    .ifexists module-bluetooth-discover.so
    load-module module-bluetooth-discover


    But I cannot find those on the hdd, do I need to install something else ?



    EDIT 4: My mistake, I used the locate command. After a sudo updatedb, the locate command is now able to find those 2 files.



    EDIT 5 : Here is the pactl output :



    $ pactl list modules | grep "Name:"
    Name: module-device-restore
    Name: module-stream-restore
    Name: module-card-restore
    Name: module-augment-properties
    Name: module-switch-on-port-available
    Name: module-udev-detect
    Name: module-alsa-card
    Name: module-alsa-card
    Name: module-bluetooth-policy
    Name: module-bluetooth-discover
    Name: module-bluez5-discover
    Name: module-native-protocol-unix
    Name: module-default-device-restore
    Name: module-rescue-streams
    Name: module-always-sink
    Name: module-intended-roles
    Name: module-suspend-on-idle
    Name: module-console-kit
    Name: module-systemd-login
    Name: module-position-event-sounds
    Name: module-role-cork
    Name: module-filter-heuristics
    Name: module-filter-apply
    Name: module-switch-on-connect
    Name: module-x11-publish
    Name: module-x11-cork-request
    Name: module-x11-xsmp


    and the dpkg -l output :



    $ dpkg -l | grep blue
    ii bluefish 2.2.9-1 amd64 advanced Gtk+ text editor for web and software development
    ii bluefish-data 2.2.9-1 all advanced Gtk+ text editor (data)
    ii bluefish-plugins 2.2.9-1 amd64 advanced Gtk+ text editor (plugins)
    ii blueman 2.0.4-1ubuntu3 amd64 Graphical bluetooth manager
    ii bluez 5.46-0ubuntu3 amd64 Bluetooth tools and daemons
    ii bluez-cups 5.46-0ubuntu3 amd64 Bluetooth printer driver for CUPS
    ii bluez-obexd 5.46-0ubuntu3 amd64 bluez obex daemon
    ii bluez-tools 0.2.0~20140808-5build1 amd64 Set of tools to manage Bluetooth devices for linux
    ii gnome-bluetooth 3.26.1-1 amd64 GNOME Bluetooth tools
    ii indicator-bluetooth 0.0.6+17.10.20170605-0ubuntu3 amd64 System bluetooth indicator.
    ii libbluetooth3:amd64 5.46-0ubuntu3 amd64 Library to use the BlueZ Linux Bluetooth stack
    ii libgnome-bluetooth13:amd64 3.26.1-1 amd64 GNOME Bluetooth tools - support library
    ii pulseaudio-module-bluetooth 1:10.0-2ubuntu3.1 amd64 Bluetooth module for PulseAudio sound server


    EDIT 6: Your solution worked ! So to sum up :



    $ bluetoothctl
    [bluetooth]# power on
    Changing power on succeeded
    [CHG] Controller 6C:0B:84:27:43:66 Powered: yes
    [bluetooth]# remove FC:58:FA:A1:C2:70
    [DEL] Device FC:58:FA:A1:C2:70 OE-P51
    Device has been removed
    [bluetooth]# exit
    Agent unregistered
    [DEL] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
    $ sudo service bluetooth restart


    and finally :



    $ bluetoothctl
    [NEW] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
    Agent registered
    [bluetooth]# power on
    Changing power on succeeded
    [CHG] Controller 6C:0B:84:27:43:66 Powered: yes
    [bluetooth]# scan on
    Discovery started
    [CHG] Controller 6C:0B:84:27:43:66 Discovering: yes
    [NEW] Device FC:58:FA:A1:C2:70 OE-P51
    [bluetooth]# trust FC:58:FA:A1:C2:70
    [CHG] Device FC:58:FA:A1:C2:70 Trusted: yes
    Changing FC:58:FA:A1:C2:70 trust succeeded
    [bluetooth]# pair FC:58:FA:A1:C2:70
    Attempting to pair with FC:58:FA:A1:C2:70
    [CHG] Device FC:58:FA:A1:C2:70 Connected: yes
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
    [CHG] Device FC:58:FA:A1:C2:70 Paired: yes
    Pairing successful
    [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: no
    [CHG] Device FC:58:FA:A1:C2:70 Connected: no
    [bluetooth]# connect FC:58:FA:A1:C2:70
    Attempting to connect to FC:58:FA:A1:C2:70
    [CHG] Device FC:58:FA:A1:C2:70 Connected: yes
    Connection successful
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
    [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
    [OE-P51]#









    share|improve this question



























      4












      4








      4


      1






      I'm using bluez v5.46 on Ubuntu 17.10 and I cannot connect to a paired bluetooth device.



      Here is the output of the bluetoothctl command :



      $ bluetoothctl 
      [NEW] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
      Agent registered
      [bluetooth]# scan on
      Discovery started
      [CHG] Controller 6C:0B:84:27:43:66 Discovering: yes
      [NEW] Device FC:58:FA:A1:C2:70 OE-P51
      [bluetooth]# trust FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Trusted: yes
      Changing FC:58:FA:A1:C2:70 trust succeeded
      [bluetooth]# pair FC:58:FA:A1:C2:70
      Attempting to pair with FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Connected: yes
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
      [CHG] Device FC:58:FA:A1:C2:70 Paired: yes
      Pairing successful
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: no
      [CHG] Device FC:58:FA:A1:C2:70 Connected: no
      [CHG] Controller 6C:0B:84:27:43:66 Discoverable: no
      [bluetooth]# connect FC:58:FA:A1:C2:70
      Attempting to connect to FC:58:FA:A1:C2:70
      Failed to connect: org.bluez.Error.Failed


      Here is a little bit more info :



      $ journalctl -u bluetooth | tail
      Mar 29 12:06:01 tensorFlowPHY systemd[1]: Started Bluetooth service.
      Mar 29 12:06:01 tensorFlowPHY bluetoothd[1136]: Starting SDP server
      Mar 29 12:06:01 tensorFlowPHY bluetoothd[1136]: Bluetooth management interface 1.14 initialized
      Mar 29 14:36:12 tensorFlowPHY bluetoothd[1136]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available
      Mar 29 14:36:59 tensorFlowPHY bluetoothd[1136]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available


      And systemctl says :



      $ systemctl status bluetooth
      ● bluetooth.service - Bluetooth service
      Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
      Active: active (running) since Fri 2018-03-30 16:30:15 CEST; 21s ago
      Docs: man:bluetoothd(8)
      Main PID: 1492 (bluetoothd)
      Status: "Running"
      Tasks: 1 (limit: 4915)
      Memory: 1.5M
      CPU: 42ms
      CGroup: /system.slice/bluetooth.service
      └─1492 /usr/lib/bluetooth/bluetoothd

      Mar 30 16:30:15 tensorFlowPHY systemd[1]: Starting Bluetooth service...
      Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Bluetooth daemon 5.46
      Mar 30 16:30:15 tensorFlowPHY systemd[1]: Started Bluetooth service.
      Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Starting SDP server
      Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Bluetooth management interface 1.14 initialized
      Mar 30 16:30:20 tensorFlowPHY bluetoothd[1492]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available
      Mar 30 16:30:31 tensorFlowPHY bluetoothd[1492]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available


      EDIT 1: I installed one Ubuntu package that was missing : pulseaudio-module-bluetooth and restarted pulseaudio with the command : pulseaudio -k



      Now the output of the bluetooth log after connection trial is :



      Mar 30 16:36:59 tensorFlowPHY bluetoothd[1492]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
      Mar 30 16:37:00 tensorFlowPHY bluetoothd[1492]: connect error: Connection refused (111)
      Mar 30 16:37:02 tensorFlowPHY bluetoothd[1492]: connect error: Connection refused (111)


      Any idea why ?



      EDIT 2 : I just restarted Ubuntu as someone asked to do. Still have the same pb.



      EDIT 3 : I already have both modules loaded in /etc/pulse/default.pa :



      $ egrep "(policy|discover)" /etc/pulse/default.pa
      .ifexists module-bluetooth-policy.so
      load-module module-bluetooth-policy
      .ifexists module-bluetooth-discover.so
      load-module module-bluetooth-discover


      But I cannot find those on the hdd, do I need to install something else ?



      EDIT 4: My mistake, I used the locate command. After a sudo updatedb, the locate command is now able to find those 2 files.



      EDIT 5 : Here is the pactl output :



      $ pactl list modules | grep "Name:"
      Name: module-device-restore
      Name: module-stream-restore
      Name: module-card-restore
      Name: module-augment-properties
      Name: module-switch-on-port-available
      Name: module-udev-detect
      Name: module-alsa-card
      Name: module-alsa-card
      Name: module-bluetooth-policy
      Name: module-bluetooth-discover
      Name: module-bluez5-discover
      Name: module-native-protocol-unix
      Name: module-default-device-restore
      Name: module-rescue-streams
      Name: module-always-sink
      Name: module-intended-roles
      Name: module-suspend-on-idle
      Name: module-console-kit
      Name: module-systemd-login
      Name: module-position-event-sounds
      Name: module-role-cork
      Name: module-filter-heuristics
      Name: module-filter-apply
      Name: module-switch-on-connect
      Name: module-x11-publish
      Name: module-x11-cork-request
      Name: module-x11-xsmp


      and the dpkg -l output :



      $ dpkg -l | grep blue
      ii bluefish 2.2.9-1 amd64 advanced Gtk+ text editor for web and software development
      ii bluefish-data 2.2.9-1 all advanced Gtk+ text editor (data)
      ii bluefish-plugins 2.2.9-1 amd64 advanced Gtk+ text editor (plugins)
      ii blueman 2.0.4-1ubuntu3 amd64 Graphical bluetooth manager
      ii bluez 5.46-0ubuntu3 amd64 Bluetooth tools and daemons
      ii bluez-cups 5.46-0ubuntu3 amd64 Bluetooth printer driver for CUPS
      ii bluez-obexd 5.46-0ubuntu3 amd64 bluez obex daemon
      ii bluez-tools 0.2.0~20140808-5build1 amd64 Set of tools to manage Bluetooth devices for linux
      ii gnome-bluetooth 3.26.1-1 amd64 GNOME Bluetooth tools
      ii indicator-bluetooth 0.0.6+17.10.20170605-0ubuntu3 amd64 System bluetooth indicator.
      ii libbluetooth3:amd64 5.46-0ubuntu3 amd64 Library to use the BlueZ Linux Bluetooth stack
      ii libgnome-bluetooth13:amd64 3.26.1-1 amd64 GNOME Bluetooth tools - support library
      ii pulseaudio-module-bluetooth 1:10.0-2ubuntu3.1 amd64 Bluetooth module for PulseAudio sound server


      EDIT 6: Your solution worked ! So to sum up :



      $ bluetoothctl
      [bluetooth]# power on
      Changing power on succeeded
      [CHG] Controller 6C:0B:84:27:43:66 Powered: yes
      [bluetooth]# remove FC:58:FA:A1:C2:70
      [DEL] Device FC:58:FA:A1:C2:70 OE-P51
      Device has been removed
      [bluetooth]# exit
      Agent unregistered
      [DEL] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
      $ sudo service bluetooth restart


      and finally :



      $ bluetoothctl
      [NEW] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
      Agent registered
      [bluetooth]# power on
      Changing power on succeeded
      [CHG] Controller 6C:0B:84:27:43:66 Powered: yes
      [bluetooth]# scan on
      Discovery started
      [CHG] Controller 6C:0B:84:27:43:66 Discovering: yes
      [NEW] Device FC:58:FA:A1:C2:70 OE-P51
      [bluetooth]# trust FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Trusted: yes
      Changing FC:58:FA:A1:C2:70 trust succeeded
      [bluetooth]# pair FC:58:FA:A1:C2:70
      Attempting to pair with FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Connected: yes
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
      [CHG] Device FC:58:FA:A1:C2:70 Paired: yes
      Pairing successful
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: no
      [CHG] Device FC:58:FA:A1:C2:70 Connected: no
      [bluetooth]# connect FC:58:FA:A1:C2:70
      Attempting to connect to FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Connected: yes
      Connection successful
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
      [OE-P51]#









      share|improve this question
















      I'm using bluez v5.46 on Ubuntu 17.10 and I cannot connect to a paired bluetooth device.



      Here is the output of the bluetoothctl command :



      $ bluetoothctl 
      [NEW] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
      Agent registered
      [bluetooth]# scan on
      Discovery started
      [CHG] Controller 6C:0B:84:27:43:66 Discovering: yes
      [NEW] Device FC:58:FA:A1:C2:70 OE-P51
      [bluetooth]# trust FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Trusted: yes
      Changing FC:58:FA:A1:C2:70 trust succeeded
      [bluetooth]# pair FC:58:FA:A1:C2:70
      Attempting to pair with FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Connected: yes
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
      [CHG] Device FC:58:FA:A1:C2:70 Paired: yes
      Pairing successful
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: no
      [CHG] Device FC:58:FA:A1:C2:70 Connected: no
      [CHG] Controller 6C:0B:84:27:43:66 Discoverable: no
      [bluetooth]# connect FC:58:FA:A1:C2:70
      Attempting to connect to FC:58:FA:A1:C2:70
      Failed to connect: org.bluez.Error.Failed


      Here is a little bit more info :



      $ journalctl -u bluetooth | tail
      Mar 29 12:06:01 tensorFlowPHY systemd[1]: Started Bluetooth service.
      Mar 29 12:06:01 tensorFlowPHY bluetoothd[1136]: Starting SDP server
      Mar 29 12:06:01 tensorFlowPHY bluetoothd[1136]: Bluetooth management interface 1.14 initialized
      Mar 29 14:36:12 tensorFlowPHY bluetoothd[1136]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available
      Mar 29 14:36:59 tensorFlowPHY bluetoothd[1136]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available


      And systemctl says :



      $ systemctl status bluetooth
      ● bluetooth.service - Bluetooth service
      Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
      Active: active (running) since Fri 2018-03-30 16:30:15 CEST; 21s ago
      Docs: man:bluetoothd(8)
      Main PID: 1492 (bluetoothd)
      Status: "Running"
      Tasks: 1 (limit: 4915)
      Memory: 1.5M
      CPU: 42ms
      CGroup: /system.slice/bluetooth.service
      └─1492 /usr/lib/bluetooth/bluetoothd

      Mar 30 16:30:15 tensorFlowPHY systemd[1]: Starting Bluetooth service...
      Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Bluetooth daemon 5.46
      Mar 30 16:30:15 tensorFlowPHY systemd[1]: Started Bluetooth service.
      Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Starting SDP server
      Mar 30 16:30:15 tensorFlowPHY bluetoothd[1492]: Bluetooth management interface 1.14 initialized
      Mar 30 16:30:20 tensorFlowPHY bluetoothd[1492]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available
      Mar 30 16:30:31 tensorFlowPHY bluetoothd[1492]: a2dp-sink profile connect failed for FC:58:FA:A1:C2:70: Protocol not available


      EDIT 1: I installed one Ubuntu package that was missing : pulseaudio-module-bluetooth and restarted pulseaudio with the command : pulseaudio -k



      Now the output of the bluetooth log after connection trial is :



      Mar 30 16:36:59 tensorFlowPHY bluetoothd[1492]: Unable to get connect data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)
      Mar 30 16:37:00 tensorFlowPHY bluetoothd[1492]: connect error: Connection refused (111)
      Mar 30 16:37:02 tensorFlowPHY bluetoothd[1492]: connect error: Connection refused (111)


      Any idea why ?



      EDIT 2 : I just restarted Ubuntu as someone asked to do. Still have the same pb.



      EDIT 3 : I already have both modules loaded in /etc/pulse/default.pa :



      $ egrep "(policy|discover)" /etc/pulse/default.pa
      .ifexists module-bluetooth-policy.so
      load-module module-bluetooth-policy
      .ifexists module-bluetooth-discover.so
      load-module module-bluetooth-discover


      But I cannot find those on the hdd, do I need to install something else ?



      EDIT 4: My mistake, I used the locate command. After a sudo updatedb, the locate command is now able to find those 2 files.



      EDIT 5 : Here is the pactl output :



      $ pactl list modules | grep "Name:"
      Name: module-device-restore
      Name: module-stream-restore
      Name: module-card-restore
      Name: module-augment-properties
      Name: module-switch-on-port-available
      Name: module-udev-detect
      Name: module-alsa-card
      Name: module-alsa-card
      Name: module-bluetooth-policy
      Name: module-bluetooth-discover
      Name: module-bluez5-discover
      Name: module-native-protocol-unix
      Name: module-default-device-restore
      Name: module-rescue-streams
      Name: module-always-sink
      Name: module-intended-roles
      Name: module-suspend-on-idle
      Name: module-console-kit
      Name: module-systemd-login
      Name: module-position-event-sounds
      Name: module-role-cork
      Name: module-filter-heuristics
      Name: module-filter-apply
      Name: module-switch-on-connect
      Name: module-x11-publish
      Name: module-x11-cork-request
      Name: module-x11-xsmp


      and the dpkg -l output :



      $ dpkg -l | grep blue
      ii bluefish 2.2.9-1 amd64 advanced Gtk+ text editor for web and software development
      ii bluefish-data 2.2.9-1 all advanced Gtk+ text editor (data)
      ii bluefish-plugins 2.2.9-1 amd64 advanced Gtk+ text editor (plugins)
      ii blueman 2.0.4-1ubuntu3 amd64 Graphical bluetooth manager
      ii bluez 5.46-0ubuntu3 amd64 Bluetooth tools and daemons
      ii bluez-cups 5.46-0ubuntu3 amd64 Bluetooth printer driver for CUPS
      ii bluez-obexd 5.46-0ubuntu3 amd64 bluez obex daemon
      ii bluez-tools 0.2.0~20140808-5build1 amd64 Set of tools to manage Bluetooth devices for linux
      ii gnome-bluetooth 3.26.1-1 amd64 GNOME Bluetooth tools
      ii indicator-bluetooth 0.0.6+17.10.20170605-0ubuntu3 amd64 System bluetooth indicator.
      ii libbluetooth3:amd64 5.46-0ubuntu3 amd64 Library to use the BlueZ Linux Bluetooth stack
      ii libgnome-bluetooth13:amd64 3.26.1-1 amd64 GNOME Bluetooth tools - support library
      ii pulseaudio-module-bluetooth 1:10.0-2ubuntu3.1 amd64 Bluetooth module for PulseAudio sound server


      EDIT 6: Your solution worked ! So to sum up :



      $ bluetoothctl
      [bluetooth]# power on
      Changing power on succeeded
      [CHG] Controller 6C:0B:84:27:43:66 Powered: yes
      [bluetooth]# remove FC:58:FA:A1:C2:70
      [DEL] Device FC:58:FA:A1:C2:70 OE-P51
      Device has been removed
      [bluetooth]# exit
      Agent unregistered
      [DEL] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
      $ sudo service bluetooth restart


      and finally :



      $ bluetoothctl
      [NEW] Controller 6C:0B:84:27:43:66 tensorFlowPHY [default]
      Agent registered
      [bluetooth]# power on
      Changing power on succeeded
      [CHG] Controller 6C:0B:84:27:43:66 Powered: yes
      [bluetooth]# scan on
      Discovery started
      [CHG] Controller 6C:0B:84:27:43:66 Discovering: yes
      [NEW] Device FC:58:FA:A1:C2:70 OE-P51
      [bluetooth]# trust FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Trusted: yes
      Changing FC:58:FA:A1:C2:70 trust succeeded
      [bluetooth]# pair FC:58:FA:A1:C2:70
      Attempting to pair with FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Connected: yes
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
      [CHG] Device FC:58:FA:A1:C2:70 Paired: yes
      Pairing successful
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: no
      [CHG] Device FC:58:FA:A1:C2:70 Connected: no
      [bluetooth]# connect FC:58:FA:A1:C2:70
      Attempting to connect to FC:58:FA:A1:C2:70
      [CHG] Device FC:58:FA:A1:C2:70 Connected: yes
      Connection successful
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001101-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 00001108-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110b-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 UUIDs: 0000111e-0000-1000-8000-00805f9b34fb
      [CHG] Device FC:58:FA:A1:C2:70 ServicesResolved: yes
      [OE-P51]#






      bluetooth pulseaudio bluez






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 6 hours ago







      SebMa

















      asked Mar 29 '18 at 12:48









      SebMaSebMa

      231210




      231210






















          1 Answer
          1






          active

          oldest

          votes


















          4














          From Arch wiki, Pairing works, but connecting does not, section:




          This may be due to the pulseaudio-bluetooth package not being installed. Install it if it missing, then restart pulseaudio.




          But pulseaudio-bluetooth package's name is pulseaudio-module-bluetooth on Ubuntu.



          So your problem should be solved after installing it:



          sudo apt install pulseaudio-module-bluetooth


          And after installing this package restart your system to load some pulse audio modules like module-bluetooth-policy and module-bluetooth-discover.



          Update:



          But if still, you get below message after reboot:




          connect error: Connection refused (111)




          According to this answer, you should add these lines to /etc/pulse/default.pa file. (If not exist):



          load-module module-bluetooth-policy
          load-module module-bluetooth-discover


          But these lines should be exist by default and after reboot your system, those modules should be loaded.



          Update2:



          According to this article on Arch wiki:




          This may be because you have already paired the device with another
          operating system using the same bluetooth adapter (e.g.,
          dual-booting). Some devices can't handle multiple pairings associated
          with the same MAC address (i.e., bluetooth adapter). You can fix this
          by re-pairing the device




          So please re-pair your device with this commands (Or you can use GUI method):



          First run:



          bluetoothctl


          Then use this commands to show paired devices:



          devices


          And this should be have some output like this:



          Device XX:XX:XX:XX:XX:XX Device Name


          Then remove paired devices with this command:



          remove XX:XX:XX:XX:XX:XX


          And restart Bluetooth service:



          sudo service bluetooth restart


          Then try to pair device again.






          share|improve this answer


























          • Hi, thanks for helping me. Please read my EDIT 3

            – SebMa
            Mar 30 '18 at 15:27











          • Please read my EDIT 4

            – SebMa
            Mar 30 '18 at 15:30











          • @SebMa Please add these commands output to your answer pactl list modules | grep "Name:" and dpkg -l | grep blue. Those help us to know which module or package should be loaded or installed.

            – Ali Razmdideh
            Mar 30 '18 at 15:36











          • Please find my answer in EDIT 5

            – SebMa
            Mar 30 '18 at 15:42













          • @SebMa I update my answer. Please read update2

            – Ali Razmdideh
            Mar 30 '18 at 15:58













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1020257%2fbluez5-cannot-connect-to-a-paired-bluetooth-device-on-ubuntu-17-10%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          From Arch wiki, Pairing works, but connecting does not, section:




          This may be due to the pulseaudio-bluetooth package not being installed. Install it if it missing, then restart pulseaudio.




          But pulseaudio-bluetooth package's name is pulseaudio-module-bluetooth on Ubuntu.



          So your problem should be solved after installing it:



          sudo apt install pulseaudio-module-bluetooth


          And after installing this package restart your system to load some pulse audio modules like module-bluetooth-policy and module-bluetooth-discover.



          Update:



          But if still, you get below message after reboot:




          connect error: Connection refused (111)




          According to this answer, you should add these lines to /etc/pulse/default.pa file. (If not exist):



          load-module module-bluetooth-policy
          load-module module-bluetooth-discover


          But these lines should be exist by default and after reboot your system, those modules should be loaded.



          Update2:



          According to this article on Arch wiki:




          This may be because you have already paired the device with another
          operating system using the same bluetooth adapter (e.g.,
          dual-booting). Some devices can't handle multiple pairings associated
          with the same MAC address (i.e., bluetooth adapter). You can fix this
          by re-pairing the device




          So please re-pair your device with this commands (Or you can use GUI method):



          First run:



          bluetoothctl


          Then use this commands to show paired devices:



          devices


          And this should be have some output like this:



          Device XX:XX:XX:XX:XX:XX Device Name


          Then remove paired devices with this command:



          remove XX:XX:XX:XX:XX:XX


          And restart Bluetooth service:



          sudo service bluetooth restart


          Then try to pair device again.






          share|improve this answer


























          • Hi, thanks for helping me. Please read my EDIT 3

            – SebMa
            Mar 30 '18 at 15:27











          • Please read my EDIT 4

            – SebMa
            Mar 30 '18 at 15:30











          • @SebMa Please add these commands output to your answer pactl list modules | grep "Name:" and dpkg -l | grep blue. Those help us to know which module or package should be loaded or installed.

            – Ali Razmdideh
            Mar 30 '18 at 15:36











          • Please find my answer in EDIT 5

            – SebMa
            Mar 30 '18 at 15:42













          • @SebMa I update my answer. Please read update2

            – Ali Razmdideh
            Mar 30 '18 at 15:58


















          4














          From Arch wiki, Pairing works, but connecting does not, section:




          This may be due to the pulseaudio-bluetooth package not being installed. Install it if it missing, then restart pulseaudio.




          But pulseaudio-bluetooth package's name is pulseaudio-module-bluetooth on Ubuntu.



          So your problem should be solved after installing it:



          sudo apt install pulseaudio-module-bluetooth


          And after installing this package restart your system to load some pulse audio modules like module-bluetooth-policy and module-bluetooth-discover.



          Update:



          But if still, you get below message after reboot:




          connect error: Connection refused (111)




          According to this answer, you should add these lines to /etc/pulse/default.pa file. (If not exist):



          load-module module-bluetooth-policy
          load-module module-bluetooth-discover


          But these lines should be exist by default and after reboot your system, those modules should be loaded.



          Update2:



          According to this article on Arch wiki:




          This may be because you have already paired the device with another
          operating system using the same bluetooth adapter (e.g.,
          dual-booting). Some devices can't handle multiple pairings associated
          with the same MAC address (i.e., bluetooth adapter). You can fix this
          by re-pairing the device




          So please re-pair your device with this commands (Or you can use GUI method):



          First run:



          bluetoothctl


          Then use this commands to show paired devices:



          devices


          And this should be have some output like this:



          Device XX:XX:XX:XX:XX:XX Device Name


          Then remove paired devices with this command:



          remove XX:XX:XX:XX:XX:XX


          And restart Bluetooth service:



          sudo service bluetooth restart


          Then try to pair device again.






          share|improve this answer


























          • Hi, thanks for helping me. Please read my EDIT 3

            – SebMa
            Mar 30 '18 at 15:27











          • Please read my EDIT 4

            – SebMa
            Mar 30 '18 at 15:30











          • @SebMa Please add these commands output to your answer pactl list modules | grep "Name:" and dpkg -l | grep blue. Those help us to know which module or package should be loaded or installed.

            – Ali Razmdideh
            Mar 30 '18 at 15:36











          • Please find my answer in EDIT 5

            – SebMa
            Mar 30 '18 at 15:42













          • @SebMa I update my answer. Please read update2

            – Ali Razmdideh
            Mar 30 '18 at 15:58
















          4












          4








          4







          From Arch wiki, Pairing works, but connecting does not, section:




          This may be due to the pulseaudio-bluetooth package not being installed. Install it if it missing, then restart pulseaudio.




          But pulseaudio-bluetooth package's name is pulseaudio-module-bluetooth on Ubuntu.



          So your problem should be solved after installing it:



          sudo apt install pulseaudio-module-bluetooth


          And after installing this package restart your system to load some pulse audio modules like module-bluetooth-policy and module-bluetooth-discover.



          Update:



          But if still, you get below message after reboot:




          connect error: Connection refused (111)




          According to this answer, you should add these lines to /etc/pulse/default.pa file. (If not exist):



          load-module module-bluetooth-policy
          load-module module-bluetooth-discover


          But these lines should be exist by default and after reboot your system, those modules should be loaded.



          Update2:



          According to this article on Arch wiki:




          This may be because you have already paired the device with another
          operating system using the same bluetooth adapter (e.g.,
          dual-booting). Some devices can't handle multiple pairings associated
          with the same MAC address (i.e., bluetooth adapter). You can fix this
          by re-pairing the device




          So please re-pair your device with this commands (Or you can use GUI method):



          First run:



          bluetoothctl


          Then use this commands to show paired devices:



          devices


          And this should be have some output like this:



          Device XX:XX:XX:XX:XX:XX Device Name


          Then remove paired devices with this command:



          remove XX:XX:XX:XX:XX:XX


          And restart Bluetooth service:



          sudo service bluetooth restart


          Then try to pair device again.






          share|improve this answer















          From Arch wiki, Pairing works, but connecting does not, section:




          This may be due to the pulseaudio-bluetooth package not being installed. Install it if it missing, then restart pulseaudio.




          But pulseaudio-bluetooth package's name is pulseaudio-module-bluetooth on Ubuntu.



          So your problem should be solved after installing it:



          sudo apt install pulseaudio-module-bluetooth


          And after installing this package restart your system to load some pulse audio modules like module-bluetooth-policy and module-bluetooth-discover.



          Update:



          But if still, you get below message after reboot:




          connect error: Connection refused (111)




          According to this answer, you should add these lines to /etc/pulse/default.pa file. (If not exist):



          load-module module-bluetooth-policy
          load-module module-bluetooth-discover


          But these lines should be exist by default and after reboot your system, those modules should be loaded.



          Update2:



          According to this article on Arch wiki:




          This may be because you have already paired the device with another
          operating system using the same bluetooth adapter (e.g.,
          dual-booting). Some devices can't handle multiple pairings associated
          with the same MAC address (i.e., bluetooth adapter). You can fix this
          by re-pairing the device




          So please re-pair your device with this commands (Or you can use GUI method):



          First run:



          bluetoothctl


          Then use this commands to show paired devices:



          devices


          And this should be have some output like this:



          Device XX:XX:XX:XX:XX:XX Device Name


          Then remove paired devices with this command:



          remove XX:XX:XX:XX:XX:XX


          And restart Bluetooth service:



          sudo service bluetooth restart


          Then try to pair device again.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 30 '18 at 16:04

























          answered Mar 30 '18 at 14:42









          Ali RazmdidehAli Razmdideh

          3,44511537




          3,44511537













          • Hi, thanks for helping me. Please read my EDIT 3

            – SebMa
            Mar 30 '18 at 15:27











          • Please read my EDIT 4

            – SebMa
            Mar 30 '18 at 15:30











          • @SebMa Please add these commands output to your answer pactl list modules | grep "Name:" and dpkg -l | grep blue. Those help us to know which module or package should be loaded or installed.

            – Ali Razmdideh
            Mar 30 '18 at 15:36











          • Please find my answer in EDIT 5

            – SebMa
            Mar 30 '18 at 15:42













          • @SebMa I update my answer. Please read update2

            – Ali Razmdideh
            Mar 30 '18 at 15:58





















          • Hi, thanks for helping me. Please read my EDIT 3

            – SebMa
            Mar 30 '18 at 15:27











          • Please read my EDIT 4

            – SebMa
            Mar 30 '18 at 15:30











          • @SebMa Please add these commands output to your answer pactl list modules | grep "Name:" and dpkg -l | grep blue. Those help us to know which module or package should be loaded or installed.

            – Ali Razmdideh
            Mar 30 '18 at 15:36











          • Please find my answer in EDIT 5

            – SebMa
            Mar 30 '18 at 15:42













          • @SebMa I update my answer. Please read update2

            – Ali Razmdideh
            Mar 30 '18 at 15:58



















          Hi, thanks for helping me. Please read my EDIT 3

          – SebMa
          Mar 30 '18 at 15:27





          Hi, thanks for helping me. Please read my EDIT 3

          – SebMa
          Mar 30 '18 at 15:27













          Please read my EDIT 4

          – SebMa
          Mar 30 '18 at 15:30





          Please read my EDIT 4

          – SebMa
          Mar 30 '18 at 15:30













          @SebMa Please add these commands output to your answer pactl list modules | grep "Name:" and dpkg -l | grep blue. Those help us to know which module or package should be loaded or installed.

          – Ali Razmdideh
          Mar 30 '18 at 15:36





          @SebMa Please add these commands output to your answer pactl list modules | grep "Name:" and dpkg -l | grep blue. Those help us to know which module or package should be loaded or installed.

          – Ali Razmdideh
          Mar 30 '18 at 15:36













          Please find my answer in EDIT 5

          – SebMa
          Mar 30 '18 at 15:42







          Please find my answer in EDIT 5

          – SebMa
          Mar 30 '18 at 15:42















          @SebMa I update my answer. Please read update2

          – Ali Razmdideh
          Mar 30 '18 at 15:58







          @SebMa I update my answer. Please read update2

          – Ali Razmdideh
          Mar 30 '18 at 15:58




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1020257%2fbluez5-cannot-connect-to-a-paired-bluetooth-device-on-ubuntu-17-10%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          GameSpot

          日野市

          Tu-95轟炸機