Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MendyLanda

macrumors newbie
Original poster
Dec 25, 2022
1
0
Vienna, Austria
Hi everyone 👋

Recently I bought a bluetooth speaker and I noticed that when my mac goes to sleep, the bluetooth connection is lost and I have to reconnect to the speaker every time I wake up my mac.

I tried to searching for a solution but I couldn't find anything that worked for me. So I decided to write my own.

Here is the result:
https://github.com/MendyLanda/mac-blue-keep-alive

This script will keep a bluetooth connection alive by checking if the device is connected every X minutes and if not, it will try to connect to it.

I'm not a bash expert, so if you have any suggestions, please let me know.

I hope this will help someone else.
Thanks!

Please star this repo if you found it useful ⭐️. I need a dose of motivation to keep going 😅
 
Bravo!
seems like you did a lot of work to help those and yourself,
which we admire!


for me I never understood GitHub and never used that site,
which is "too busy" as my Mac guru friend Colin would say.
simply, I have no idea what to click!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.