ppkantorski / Airplane-Sleep

Disable wifi and bluetooth when closing your MacBook or putting it to sleep!
34 stars 6 forks source link

Bluetooth not turning off #3

Open hbhoyar opened 2 years ago

hbhoyar commented 2 years ago

The sleepwatcher cannot turn off the bluetooth. It works if script is run directly.

Upon adding logs, looks like blueutil is not present in sleepwatcher environment command not found: blueutil.

You have the replace all the instance of blueutil in .sleep and .wakeup with the output of command which blueutil.

swissbuechi commented 1 month ago

Exactly!

I debugged and the $PATH variable is missing some of the brew paths.

Current $PATH passed to sleepwatcher: /usr/bin:/bin:/usr/sbin:/sbin