-
Notifications
You must be signed in to change notification settings - Fork 22
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
connect.bat script doesn't connect to headphones #5
Comments
If the headphones are not paired beforehand it won't work. If by "not paired" you mean they are disconnected, but were paired beforehand it should work. If it doesn't work clone the repo again, I just updated script to a simple on/off toggle instead of reading actual connection state, so at least it "kinda works" when you press the button. (Instead of "sometimes not working at all") |
@stanleyguevara, thank you for the explanation. You can close this ticket. |
That's nice, gonna check it out! Is it capable of doing also connect/disconnect or just pair/unpair? |
Thank you, It does only pair/unpair but when you pair a device it also connects it. If the device is already paired it will unpair it first and then pair it and connect. I found it a better strategy because connecting doesn't always work and, in fact, it looks like only audio devices support the notion of "connect", for bluetooth mice, for instance, there is no such option. The advantage is also that you don't need to manually specify which services you want to enable, it enables all the services the same way Windows Bluetooth UI dialog does. It also works with Bluetooth LE devices. |
Hello, just like you guys, i hate having to go to BT settings to make my headphones work because im using Airpods, so I've actually found a good solution to this issue and building an app where it can auto connect the headphones that makes it behave as if you clicked the "Connect" button in bluetooth settings, it can also know the mac address of all your BT Devices without needing to install any other tools. I will update this when it's near completion :) EDITI: just for clarafication, the app can connect to the headphones if it's in the "Paired" state. |
@Paliverse cool! Definitely share here for visibility when you're done, I'll post a link in readme pointing to your repo and deprecate my script if yours can supersede it (it was a quick-hack-it-together solution anyways) It'd be super nice if there's also some integration that allows connect/disconnect toggle by media button, similar to this script (honeslty this is the biggest value of this script for me, as one can use win+k to do the same, but that's like 3 actions and lots of looking at UI instead of a simple button press) |
@Paliverse, By the way I have found a way for making Windows connect to Bluetooth headphones: |
@PolarGoose still working on the app, will be posting source code and a download when it’s ready, I’m developing this app in .Net WPF app. And I basically found a nice nugget package that handles Bluetooth devices |
@stanleyguevara @PolarGoose The source of what i have built so far can be found here: AutoBT |
@Paliverse ,
There is a nice discussion related to the |
@PolarGoose ah you’re already familiar with 32feet |
@Paliverse , |
@PolarGoose I really don’t know if there’s anything better, if you open control panel and manually uncheck all/recheck all services and hit apply, it takes about the same time as the app, which is telling me it’s a windows thing where the speed is what it is. |
@Paliverse I think by unreliable @PolarGoose means the state where headphones show "Connected" instead of "Connected voice, music" When it happens (with my script) the headphones become non-disconnectable (hitting "Disconnect" ends in "Couldn't disconnect" message IIRC). Restarting BT helps. I couldn't pinpoint exact conditions when this happens, seemed for a while PC going to sleep has something to do. Might be also device-dependent, as all we know how wonderfully strict BT spec is and how nicely every peripheral vendor abides by it ;) I'll try both solutions for some time and let you know how it went. Thanks! |
@stanleyguevara |
Eventually, I found a way how to connect and disconnect Bluetooth headphones properly. |
@PolarGoose It’s been so long, hope you’re doing alright. I actually totally forgot about this issue since I’ve mostly stopped using my AirPods and just opted for a soundbar on my desk lol. However if you're certain that you’ve found a reliable good working method, we can combine and create a little GUI App to make it easier for users. |
@Paliverse, Yes, the approach works and is very reliable. You can read more details in my answer on StackOverflow and in the Readme of the ToothTray utility, whose author came up with the solution. I don't think a GUI application is needed. There is already a default Windows Bluetooth Settings GUI that works pretty well. The only missing part was doing it from a console, which is currently covered by my BluetoothDevicePairing utility. |
Headphones: WH-1000XM3. The headphones are not paired with my PC.
OS: Windows 10.0.18362.
After I run
connect.bat
script with the mac address of my headphones, I get two disconnected sound devices as it is shown on the screenshot:Could you please tell me what I should do next? I thought that the script will connect to the headphones. Am I doing something wrong?
The text was updated successfully, but these errors were encountered: