Python Forum

Full Version: Auto re-pair / re-sync Controller via Script?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys, first of all, I have no code to show - I'm sorry.

I want to use the same (PlayStation) Controller on Windows 10 and on the Nvidia Shield 2019 Pro. Shield is on HDMI1 and Windows 10 is on HDMI2.

Right now I have to re-pair/re-sync the controller on each OS manually. Not very user-friendly since I constantly switch between Windows 10 and the Shield.

Not only do I use the controller to play games on Windows 10 but I also use as it as a remote control. Especially on the Shield.

Is it possible to automate the pairing process via a script? Maybe a Python script?

Any help is highly appreciated!
No idea. I'm not even sure how you'd run a python script on the shield. It's basically android, so you might have to create an app.

Windows you could run a script easily, but the question is how to control the bluetooth. I found some command line tools for windows (which python could run), but the websites they are on seem sketchy. (Google "windows bluetooth command line tools").

I took a quick peek at the pybluez webpage, but that package seems to be more about communicating over bluetooth than controlling the windows bluetooth configuration.
hi, thank you for the reply! I don't know if it helps but I have rooted the Shield.

I'll look deeper into the page you provided.

And if anyone has another idea please let me know. This is pretty important to me.

Thanks!