odlp / bluesnooze Goto Github PK
View Code? Open in Web Editor NEWSleeping Mac = Bluetooth off
License: MIT License
Sleeping Mac = Bluetooth off
License: MIT License
Currently, the app always turns bluetooth back on again on wake up, regardless of whether the user turned it off before sleep or not.
I personally only need bluetooth at specific times and would rather have it off by default to save power.
Would it be possible to take note of whether bluetooth was enabled at the time the app disabled it and only re-enable it again when it was indeed enabled before?
Would probably not hurt to make this configurable.
I could try and implement this myself as, looking at the code, that should be trivially simple but setting up a macOS dev env would likely take longer than the implementation as I don't have much of any experience in writing apps for Apple devices.
In MacOS 12 (Monterey), this does not work as expected.
Specs
I believe Apple have made significant changes to IOBluetooth recently, and now support on Apple silicon and Intel vary.
Currently, when I lock/close my mac, the Bluetooth turns off and my headset disconnects (wanted behaviour so far).
When I unlock/re-open my mac, the Bluetooth turns on again, but my headset (which is still on) doesn't reconnect automatically, i.e. I have to select it manually through the Bluetooth menu.
Whereas when I turn my headset on, it automatically connects to my mac.
Feature: (try to) reconnect to all Bluetooth devices which were connected before sleep at least once (some of them might have turned off)
Minor point: in the README here Whisper is recommended, but following the link gives me an error that the app is not available in my region. FYI.
Since upgrading to Ventura, bluetooth will no longer enable when awaking from sleep. Even when enabling it via preferences, it doesn't turn on for upto 30 seconds.
I've replaced with the latest version but still the same problem. I have to kill the process from the terminal
Or it doesn't work on big sur?
My usecase is I need it to work when I sleep my mac or shut it down, so my trackpad disconnects and I can move it to my other mac. Doesn't it work when the mac shuts down?
Running defaults write com.oliverpeate.Bluesnooze hideIcon -bool true && killall Bluesnooze
works great; it hides the icon in the menu bar. But when I log in again, the icon is back and I have to resubmit that command.
This wasn't the case until I updated to MacOS Sonoma.
Is anyone else having this problem? If not, I may have something on my system that's inferring with the defaults
.
I often have the situation where my backup macbook steals my bluetooth keyboard / trackpad.
I would like to disable bluetooth by default and only enable it on demand. Unfortunately MacOS (Sonoma) does not have a setting for this. Maybe bluesnooze can fill the gap and add a setting to Disable bluetooth at login which will work when Launch at login is enabled.
I tried yours and it said my VISA card is "Not Supported"...
Perhaps buymeacoffee.com which works with PayPal, or something else that does.
Hi there,
first I want to thank you for your nice tool that helped me a lot with managing my devices.
There is now a hidden icon when you set the option "Hide icon" in the menu bar on macOS Sonoma Beta 1 that is just empty space without any interaction possibilities.
Edit: it's still the case with Beta 3
Hi - I've been happy with what Bluesnooze does, amazed Apple doesn't provide this bit of functionality as standard tbh.
Recently I've found it has stopped working - my MBP is now connecting to my BT headphones when I turn them on, even when the laptop is asleep.
I've tried deleting the app to re-install (i think this worked last time the same issue happened), but i'm told 'Bluesnooze cannot be moved to the bin because it is open'.
I can't seem to get the icon back into the top bar in order to turn it off and delete it.
I've now re-downloaded v1.1 and opened it, and the icon does show in the top bar.
But now I seem to have 2 versions of Bluesnooze running!
Please help? I'm not a coder - I've tried the suggestion of putting that text into Terminal but it doesn't seem to do anything.
thanks
This app alway show dialog when startup, How to uninstall it?
Device: MacBook Air M2
OS: Sonoma 14.0 (23A344)
Bluesnooze version: 1.2 (latest as of May 20th 2024)
After opening the lid of my MacBook it takes between 20 and 30 seconds to reactivate Bluetooth. Is there a way to reactivate it immediately?
defaults write com.oliverpeate.Bluesnooze hideIcon -bool true && killall Bluesnooze
cmd+space
type "bluesnooze"Bluesnooze app icon does not reappear
brew install bluesnooze
Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>22E261</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>Bluesnooze</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>CFBundleIconName</key>
<string>AppIcon</string>
<key>CFBundleIdentifier</key>
<string>com.oliverpeate.Bluesnooze</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Bluesnooze</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string></string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>13.3</string>
<key>DTSDKBuild</key>
<string>22E245</string>
<key>DTSDKName</key>
<string>macosx13.3</string>
<key>DTXcode</key>
<string>1431</string>
<key>DTXcodeBuild</key>
<string>14E300c</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
<string>12.0</string>
<key>LSUIElement</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2020 Oliver Peate. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticTermination</key>
<true/>
<key>NSSupportsSuddenTermination</key>
<true/>
</dict>
</plist>
My mac stays open for longer times, but locks and sleeps quite often.
I'd want the BT to be turned off only when the lid is closed.
It would be great for Bluesnooze to differentiate between a lid close event, and other device sleep events, to turn off bluetooth only when the lid is closed.
Otherwise, my Apple keyboard disconnects every time and I have to reconnect it every time I come back to my desk.
The App works great when you have a device connected and you close the lid.
But if your lid is already closed and you open your earphones they connect to the macbook again, and if you are walking and want to connect it to the phone... then you should take out the laptop to continue (I know some earphones allow multiple connect, not mines...)
Would be great to have an option to say that a device can't be connected while the lid is closed.
Thanks for your work :-)
Ive noted on my mac that wifi is also something that still remains connected even when my lid is closed
Would be great if this app is able to turn off wifi when lid is closed as well
I recently installed Bluesnooze on my 2 Mac laptops - it's a great tool, much appreciated! They are both running macOS Ventura. The only difference I can think of is that one is an M1 macbook air, the other has an Intel chip.
Running defaults write com.oliverpeate.Bluesnooze hideIcon -bool true && killall Bluesnooze
and then starting up bluesnooze again results in the menu bar icon re-appearing on my M1 macbook air, but not on my Intel mac.
This might end up having a similar root cause to #22 but the symptom is a little different so I figured another issue was warranted.
I have used this app when I was on Catalina, but I don't know does it works in Big Sur? Thanks a lot!
Is it possible to include the "Hide from the status bar" option as well?
Bluesnooze doesn't seem to work with Hot Corners.
To reproduce:
When I put the display to sleep using Apple Menu > Sleep, it works as expected, disabling Bluetooth, but nothing seems to happen when I put the display to sleep using Hot Corners.
Computer: MacBook Pro 15-inch, 2018
OS: macOS Ventura 13.2.1 (22D68)
Hello, I love this app so much, but since I use bluetooth keyboard and trackpad, it, obviously, prevents my MacBook to get off out sleep with it. Is there a way to exclude some bluetooth devices from Bluesnoow or have a menu-bar option to deactivate / reactivate blue snooze ?
I tried your app on macOS 10.15.4 but as soon as I installed it, I was not able to connect back to my paired devices.
Any fix for this?
A mention of the minimum operating system requirements in the read me would be handy.
Thanks!
The App is great, thank you for that!
I often disable bluetooth manually because i don´t need it and i don´t want any devices to connect.
The problem with bluesnooze is, that it enables bluetooth after wake up no matter what state it was when i sent the computer to sleep.
Therefore, a nice feature would be, that bluesnooze is checking before the computer is going to sleep if bluetooth is already disabled and therefore do not activate it when the computer wakes up.
Have you considered adding this to homebrew?
Since I updated to 14.4.1 my computer sometimes wakes up and refuses to turn on bluetooth even if I go to settings and turn it on. If I quit bluesnooze in the Activity Monitor my bluetooth functions normally again.
I'm on Ventura 13.4.1. When my Mac sleeps, bluetooth is not turned off. I am still able to wake the machine using my Magic Mouse and/or my Magic Keyboard.
I propose having the ability to set schedules for this app. I would like to set it to disable Bluetooth outside of working hours.
Here is the output of my bluesnooze installation:
==> Downloading https://github.com/odlp/bluesnooze/releases/download/v1.2/Bluesn
==> Downloading from https://objects.githubusercontent.com/github-production-rel
#-=O=# # #
Error: SHA256 mismatch
Expected: 075a8b7cf8f66d4f4002c62a1985a5d3fb043e3df09e7fd405e88ce24a96feb0
Actual: 2e215dfb563974ded48b5972a08689eb6ecc70eb30af6e74aebb5a48be0b57f5
File: /Users/myusername/Library/Caches/Homebrew/downloads/cc31ac694ced017817b22d29742228fb7e56236ae6646cf83c4a42b66bdd9937--Bluesnooze.zip
Already tried removing the file and retrying as well as performing a brew cleanup, followed by a brew upgrade and retrying the installation.
Is this a problem that occurs for anyone else? Other brew formulas install just fine for me.
Great simple solution, thanks for providing it!
Maybe down the line this could include a list of known devices and you can select which ones will disconnect on sleep?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.