Fixing (DualShock 3) Bluetooth Lag
-
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!
-
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.
-
-
@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!
-
@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.
-
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?
-
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.
-
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.
-
If anyone has trouble turning your wifi back on after running:
$ sudo iwconfig wlan0 txpower offeven 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 -
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:
-
@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?
-
@marine88 Pleas open a new topic, this topic is 3 years old.
-
@mitu ok thank you
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.