Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bluetooth issue if controller die during pairing #3198

Open
tacgnol3 opened this issue Jul 14, 2020 · 0 comments
Open

bluetooth issue if controller die during pairing #3198

tacgnol3 opened this issue Jul 14, 2020 · 0 comments

Comments

@tacgnol3
Copy link

Hello devs,

I had an issue with the current bluetooth script when pairing a ds4 over bluetooth.

my controller died during the pairing after the Yes/No prompt.

the result was this output :

^[[CTraceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 604, in msg_reply_handler
reply_handler(*message.get_args_list(**get_args_opts))
File "/home/pi/RetroPie-Setup/scriptmodules/supplementary/bluetooth/bluez-simple-agent", line 118, in pair_reply
dev_connect(dev_path)
File "/home/pi/RetroPie-Setup/scriptmodules/supplementary/bluetooth/bluez-simple-agent", line 38, in dev_connect
dev.Connect()
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in call
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in call
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.Failed: Host is down

And then the script just hang forever without returning to the menu.

Easy workaround is doing CTRL+C a couple of times to kill the script. But I feel after a timeout (host is down) it should return to the retropie cli menu.

I know c0d3h4x0r is trying to modify the script already in pull #3193
maybe this is something that could be done at the same time if he would be willing to have a look.

Thanks and have a good day !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants