RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Fixing (DualShock 3) Bluetooth Lag

    Scheduled Pinned Locked Moved Help and Support
    bluetoothlagcontrollerps3 controllerps3 bluetooth
    39 Posts 15 Posters 29.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rsn8887
      last edited by rsn8887

      I just tried turning wifi off in an attempt to reduce lag with my PS4 controller, however the monitor shows dropouts every half second or so of 40 ms or more inbetween many fast receipts with delays of 2 ms or so.

      Since turning off wifi is not helping with the lag, I am trying to turn wifi back on.

      However the recommended command
      sudo iwconfig wlan0 txpower on
      does result in an input/output error. Replacing "on" with "Auto" doesn't work either
      The command
      sudo iwconfig wlan0 txpower 31dbm
      Works. But which is the default power? Is 31dbm correct?

      EDIT: I found it you have to enter "sudo iwconfig wlan0 txpower auto" TWO TIMES one after the other to turn wifi back on. The first time there's an input/output error response, but the second time it works.

      EDIT2: I found the proper way to turn off wifi is to add the line dtoverlay=pi3-disable-wifi to /boot/config.txt . Disabling wifi this way reduced to ping round trip times for my DS4 controller from an average of around 40 ms with some high spikes >100 ms, to an average of around 10 ms. There's still an occasional spike to >40 ms which is very annoying. But this is definitely an improvement.

      1 Reply Last reply Reply Quote 0
      • pjftP
        pjft
        last edited by

        Huh.

        I'm surprised I had never seen this, nor had I devoted much to it.

        Still, I do confirm that at least the results for the controller Pings are indeed impressive, especially after turning off wifi (drop down to hover between ~11ms and ~30ms or so), and then making them slave to round it off and make it almost always around ~10ms to ~12ms.

        Thank you!

        I added two scripts to my RetroPie menu in ES to run this on demand - one to turn off wifi and make them slave, and the other to restore wifi.

        https://retropie.org.uk/forum/topic/1498/solved-how-to-add-something-to-retropie-menu

        I noticed that when I have two controllers paired, the ping performance is slightly worse, and the difference between master/master, slave/slave, or one master and one slave isn't as clear. They both hover between ~12ms and ~40ms when paired simultaneously.

        However, still one order of magnitude lower than if with wifi on (it was common to find them having 100ms and above, with the two controllers paired). So thank you for this!

        1 Reply Last reply Reply Quote 0
        • R
          rsn8887
          last edited by rsn8887

          Yes the difference in ping times between Wi-Fi ON and Wi-Fi OFF with the Sony DS4 controller is huge! And it shows in regular games, too. After turning off Wi-Fi, I can now play Super Mario World quite well. Before turning off wi-fi, jumping accurately was really hard.

          I am still waiting for my Sony DS4 USB dongle to try that out. I hope the dongle will make the controller even snappier and allow me to turn Wi-Fi back on. The problem with the Sony USB dongle is that it can only pair one controller. So for four players, I would need four dongles.

          RionR 1 Reply Last reply Reply Quote 0
          • RionR
            Rion @rsn8887
            last edited by

            @rsn8887 @pjft Will this also work for other controllers like the 8bitdo's?

            FBNeo rom filtering
            Mame2003 Arcade Bezels
            Fba Arcade Bezels
            Fba NeoGeo Bezels

            pjftP 1 Reply Last reply Reply Quote 0
            • pjftP
              pjft @Rion
              last edited by

              @rion I wouldn't know as I don't have one such controller. Still, the instructions are fairly simple and non-destructive - other than you having to explicitly turn on the WiFi if you want to revert it, everything else goes away with a reboot, so I'd recommend trying it out.

              I don't see why it wouldn't help other Bluetooth controllers, though I can't confirm it would for sure. Let us know if you test it yourself!

              1 Reply Last reply Reply Quote 1
              • J
                jell @ARoxdale
                last edited by

                @aroxdale Thanks for this article. I have SFC30 controllers, and was experiencing quite a bit of lag in certain games, such as Giga Wing and Air Gallet. It made the games unplayable and tweaking the configuration files didn't fix the problem. However, turning off the wifi seemed to help a ton! I found this link: https://raspberrypi.stackexchange.com/questions/43720/disable-wifi-wlan0-on-pi-3 and added to /boot/config.txt:

                dtoverlay=pi3-disable-wifi

                This disabled the wifi on boot and since then, problem games I've tested are playing perfectly (of course much more testing to do :)

                Thank you again. This definitely leveled up my RetroPie experience.

                1 Reply Last reply Reply Quote 0
                • R
                  rsn8887
                  last edited by

                  I feel the official Sony USB Wireless Dongle reduced the lag even more. But two of them side by side causes interference and causes one of the two players to lag extremely.

                  I then moved the Sony dongles further apart using a powered USB 2.0 Hub, and now I can play two player games fine with wireless DS4 controllers without any lag.

                  Does internal WIFI or internal BT interfere with external BT? In other word shall I switch those things off, or can I switch them all on again?

                  1 Reply Last reply Reply Quote 0
                  • S
                    ses1984
                    last edited by

                    Has anyone figured out a permanent solution for this yet? This works great but I'm hoping to make it permanent or automated so my family members can get the benefit without dropping to the command line.

                    1 Reply Last reply Reply Quote 0
                    • S
                      SunnyMo
                      last edited by

                      i tried pi 3b+ without any issue, one usb arcade joystick, one xbox360 wireless controller with usb receiver, one ps3 wireless controller connected to pi's internal Bluetooth. all of them worked very well, no lag. the pi uses 5G wifi connected router all the time. maybe 5G wifi signal does not interfere with 2.4G bluetooth signal. i tested many arcade games which are more than 3 players, so ar so good.

                      1 Reply Last reply Reply Quote 0
                      • M
                        mepster @ARoxdale
                        last edited by

                        If anyone has trouble turning your wifi back on after running:
                        $ sudo iwconfig wlan0 txpower off

                        even after running "sudo iwconfig wlan0 power on" (note, "power" not "txpower"), and rebooting, as I did, it may be because your wifi is is "soft blocked" (whatever that is). I fixed by running:

                        $ sudo rfkill unblock wifi

                        as in this thread:
                        https://askubuntu.com/questions/62166/siocsifflags-operation-not-possible-due-to-rf-kill

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          mepster @mepster
                          last edited by mepster

                          Also, instead of turning off wifi, you can use a USB bluetooth dongle instead of the onboard bluetooth, as in this thread. You get much lower lag to your ps3 controllers and you can keep your wifi on:

                          https://retropie.org.uk/forum/topic/14493/retropie-lag-missed-key-inputs-on-oem-ps3-bluetooth-controllers/4

                          1 Reply Last reply Reply Quote 0
                          • M
                            marine88
                            last edited by

                            @ARoxdale said in Fixing (DualShock 3) Bluetooth Lag:

                            https://github.com/retropie/retropie-setup/wiki/Setting-up-an-8bitdo-Bluetooth-controller

                            hi there im using fake ps3 controllers (shanwan) an I have a lot of lag on it the only way for me to pair is using ps3controller i cant connect using sixaxis or 8bitdo. i can´t make this any way of fixing it?

                            mituM 1 Reply Last reply Reply Quote 0
                            • mituM
                              mitu Global Moderator @marine88
                              last edited by

                              @marine88 Pleas open a new topic, this topic is 3 years old.

                              M 1 Reply Last reply Reply Quote 0
                              • M
                                marine88 @mitu
                                last edited by

                                @mitu ok thank you

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post

                                Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.