Ubuntu 18.04: Bluetooth device disconnects right after connect on Lenovo P50

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
3
down vote

favorite












After upgrade from 17.10 to 18.04, any device I connect to only stays connected for a couple of seconds. My laptop is a Lenovo P50 (20ENCTO1WW)



/var/log/syslog reports:



pulseaudio[????]: [pulseaudio] bluez5-util.c: Information about device /org/bluez/hci0/dev_???????? invalid
bluetoothd[????]: Endpoint replied with an error: org.bluez.Error.InvalidArguments


Obviously the question marks represent some id's (pid's and bluetooth id in this case)



Any clue on fix or workaround?







share|improve this question


























    up vote
    3
    down vote

    favorite












    After upgrade from 17.10 to 18.04, any device I connect to only stays connected for a couple of seconds. My laptop is a Lenovo P50 (20ENCTO1WW)



    /var/log/syslog reports:



    pulseaudio[????]: [pulseaudio] bluez5-util.c: Information about device /org/bluez/hci0/dev_???????? invalid
    bluetoothd[????]: Endpoint replied with an error: org.bluez.Error.InvalidArguments


    Obviously the question marks represent some id's (pid's and bluetooth id in this case)



    Any clue on fix or workaround?







    share|improve this question
























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      After upgrade from 17.10 to 18.04, any device I connect to only stays connected for a couple of seconds. My laptop is a Lenovo P50 (20ENCTO1WW)



      /var/log/syslog reports:



      pulseaudio[????]: [pulseaudio] bluez5-util.c: Information about device /org/bluez/hci0/dev_???????? invalid
      bluetoothd[????]: Endpoint replied with an error: org.bluez.Error.InvalidArguments


      Obviously the question marks represent some id's (pid's and bluetooth id in this case)



      Any clue on fix or workaround?







      share|improve this question














      After upgrade from 17.10 to 18.04, any device I connect to only stays connected for a couple of seconds. My laptop is a Lenovo P50 (20ENCTO1WW)



      /var/log/syslog reports:



      pulseaudio[????]: [pulseaudio] bluez5-util.c: Information about device /org/bluez/hci0/dev_???????? invalid
      bluetoothd[????]: Endpoint replied with an error: org.bluez.Error.InvalidArguments


      Obviously the question marks represent some id's (pid's and bluetooth id in this case)



      Any clue on fix or workaround?









      share|improve this question













      share|improve this question




      share|improve this question








      edited May 17 at 11:54

























      asked May 17 at 11:48









      Maarten

      6810




      6810




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          The solution was to upgrade to a newer version of bluez, as described here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS






          share|improve this answer



























            up vote
            1
            down vote













            I ran into this issue on my Lenovo P51 running Ubuntu 18.04, and I discovered that the pactl module "module-bluetooth-discover" was not loading properly at boot time. I fixed the issue by replacing it with "module-bluez5-discover" in my pulse configuration.



            You can test this by running:
            pactl unload-module module-bluetooth-discovery
            pactl load-module module-bluez5-discovery



            And try to repair/reconnect your devices. If it works, replicate the following configuration in your /etc/pulse/default.pa config.



            # Modify: /etc/pulse/default.pa
            # Comment out the following line

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

            # Replace it with ...

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


            My suspicion is that this is a change that was made during the switch from Unity to Gnome and the leftover configurations remained, leaving the standard Bluetooth modules behind which don't load correctly.



            After switching to bluez5, I have since had no issues, and Bluetooth connects without complaint on my mobile phone, mouse, and headset. :)



            EDIT: I also followed several steps mentioned here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS



            To exactly replicate my configuration, make sure you apt-get install bluez blueman pulseaudio to have all the same packages. As was suggested in the referenced problem, I believe this was caused by upgrading to 18.04 from 17.04.






            share|improve this answer






















            • Hey. When I ran pactl load-module module-bluez5-discovery. got this message Failure: Module initialization failed any idea how to debug?
              – Ankur Loriya
              Jul 29 at 8:08










            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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            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%2f1037370%2fubuntu-18-04-bluetooth-device-disconnects-right-after-connect-on-lenovo-p50%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            The solution was to upgrade to a newer version of bluez, as described here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS






            share|improve this answer
























              up vote
              2
              down vote



              accepted










              The solution was to upgrade to a newer version of bluez, as described here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS






              share|improve this answer






















                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                The solution was to upgrade to a newer version of bluez, as described here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS






                share|improve this answer












                The solution was to upgrade to a newer version of bluez, as described here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 18 at 8:51









                Maarten

                6810




                6810






















                    up vote
                    1
                    down vote













                    I ran into this issue on my Lenovo P51 running Ubuntu 18.04, and I discovered that the pactl module "module-bluetooth-discover" was not loading properly at boot time. I fixed the issue by replacing it with "module-bluez5-discover" in my pulse configuration.



                    You can test this by running:
                    pactl unload-module module-bluetooth-discovery
                    pactl load-module module-bluez5-discovery



                    And try to repair/reconnect your devices. If it works, replicate the following configuration in your /etc/pulse/default.pa config.



                    # Modify: /etc/pulse/default.pa
                    # Comment out the following line

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

                    # Replace it with ...

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


                    My suspicion is that this is a change that was made during the switch from Unity to Gnome and the leftover configurations remained, leaving the standard Bluetooth modules behind which don't load correctly.



                    After switching to bluez5, I have since had no issues, and Bluetooth connects without complaint on my mobile phone, mouse, and headset. :)



                    EDIT: I also followed several steps mentioned here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS



                    To exactly replicate my configuration, make sure you apt-get install bluez blueman pulseaudio to have all the same packages. As was suggested in the referenced problem, I believe this was caused by upgrading to 18.04 from 17.04.






                    share|improve this answer






















                    • Hey. When I ran pactl load-module module-bluez5-discovery. got this message Failure: Module initialization failed any idea how to debug?
                      – Ankur Loriya
                      Jul 29 at 8:08














                    up vote
                    1
                    down vote













                    I ran into this issue on my Lenovo P51 running Ubuntu 18.04, and I discovered that the pactl module "module-bluetooth-discover" was not loading properly at boot time. I fixed the issue by replacing it with "module-bluez5-discover" in my pulse configuration.



                    You can test this by running:
                    pactl unload-module module-bluetooth-discovery
                    pactl load-module module-bluez5-discovery



                    And try to repair/reconnect your devices. If it works, replicate the following configuration in your /etc/pulse/default.pa config.



                    # Modify: /etc/pulse/default.pa
                    # Comment out the following line

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

                    # Replace it with ...

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


                    My suspicion is that this is a change that was made during the switch from Unity to Gnome and the leftover configurations remained, leaving the standard Bluetooth modules behind which don't load correctly.



                    After switching to bluez5, I have since had no issues, and Bluetooth connects without complaint on my mobile phone, mouse, and headset. :)



                    EDIT: I also followed several steps mentioned here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS



                    To exactly replicate my configuration, make sure you apt-get install bluez blueman pulseaudio to have all the same packages. As was suggested in the referenced problem, I believe this was caused by upgrading to 18.04 from 17.04.






                    share|improve this answer






















                    • Hey. When I ran pactl load-module module-bluez5-discovery. got this message Failure: Module initialization failed any idea how to debug?
                      – Ankur Loriya
                      Jul 29 at 8:08












                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    I ran into this issue on my Lenovo P51 running Ubuntu 18.04, and I discovered that the pactl module "module-bluetooth-discover" was not loading properly at boot time. I fixed the issue by replacing it with "module-bluez5-discover" in my pulse configuration.



                    You can test this by running:
                    pactl unload-module module-bluetooth-discovery
                    pactl load-module module-bluez5-discovery



                    And try to repair/reconnect your devices. If it works, replicate the following configuration in your /etc/pulse/default.pa config.



                    # Modify: /etc/pulse/default.pa
                    # Comment out the following line

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

                    # Replace it with ...

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


                    My suspicion is that this is a change that was made during the switch from Unity to Gnome and the leftover configurations remained, leaving the standard Bluetooth modules behind which don't load correctly.



                    After switching to bluez5, I have since had no issues, and Bluetooth connects without complaint on my mobile phone, mouse, and headset. :)



                    EDIT: I also followed several steps mentioned here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS



                    To exactly replicate my configuration, make sure you apt-get install bluez blueman pulseaudio to have all the same packages. As was suggested in the referenced problem, I believe this was caused by upgrading to 18.04 from 17.04.






                    share|improve this answer














                    I ran into this issue on my Lenovo P51 running Ubuntu 18.04, and I discovered that the pactl module "module-bluetooth-discover" was not loading properly at boot time. I fixed the issue by replacing it with "module-bluez5-discover" in my pulse configuration.



                    You can test this by running:
                    pactl unload-module module-bluetooth-discovery
                    pactl load-module module-bluez5-discovery



                    And try to repair/reconnect your devices. If it works, replicate the following configuration in your /etc/pulse/default.pa config.



                    # Modify: /etc/pulse/default.pa
                    # Comment out the following line

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

                    # Replace it with ...

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


                    My suspicion is that this is a change that was made during the switch from Unity to Gnome and the leftover configurations remained, leaving the standard Bluetooth modules behind which don't load correctly.



                    After switching to bluez5, I have since had no issues, and Bluetooth connects without complaint on my mobile phone, mouse, and headset. :)



                    EDIT: I also followed several steps mentioned here: Bluetooth doesn't work after resuming from sleep, Ubuntu 18.04 LTS



                    To exactly replicate my configuration, make sure you apt-get install bluez blueman pulseaudio to have all the same packages. As was suggested in the referenced problem, I believe this was caused by upgrading to 18.04 from 17.04.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jun 27 at 14:56

























                    answered Jun 27 at 14:50









                    Dark Singularity

                    112




                    112











                    • Hey. When I ran pactl load-module module-bluez5-discovery. got this message Failure: Module initialization failed any idea how to debug?
                      – Ankur Loriya
                      Jul 29 at 8:08
















                    • Hey. When I ran pactl load-module module-bluez5-discovery. got this message Failure: Module initialization failed any idea how to debug?
                      – Ankur Loriya
                      Jul 29 at 8:08















                    Hey. When I ran pactl load-module module-bluez5-discovery. got this message Failure: Module initialization failed any idea how to debug?
                    – Ankur Loriya
                    Jul 29 at 8:08




                    Hey. When I ran pactl load-module module-bluez5-discovery. got this message Failure: Module initialization failed any idea how to debug?
                    – Ankur Loriya
                    Jul 29 at 8:08












                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1037370%2fubuntu-18-04-bluetooth-device-disconnects-right-after-connect-on-lenovo-p50%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                    Trouble downloading packages list due to a “Hash sum mismatch” error

                    How do I move numbers in filenames, in a batch renaming operation?