I am reporting some issues with bluetooth and system sleep on NUC5i5RYH.
Issues:
1. Bluetooth
- Stock bluetooth: works OOB but there is excessive battery drainage of Apple wireless keyboard and trackpad
- GMYLE Bluetooth 4.0 Dual Mode Micro USB Broadcom BCM20702 Adapter Dongle: works OOB without excessive battery drainage of Apple wireless keyboard and trackpad
2. Processor thermal trip on system sleep
- Would occur only when a USB bluetooth dongle is in use
- Instead of sleep, system would shutdown. Right before shutting down, the fan would go into maximum speed. Upon boot again, the processor thermal trip message would be shown.
Solution:
- Use GMYLE Bluetooth 4.0 Dual Mode Micro USB Broadcom BCM20702 Adapter Dongle
- Use Keyboard Maestro to run an AppleScript which turns off bluetooth upon system sleep and turns on bluetooth upon system wake
Observation:
- AppleScript 1: turn off bluetooth
tell application "System Preferences"
set current pane to pane "com.apple.preferences.Bluetooth"
end tell
tell application "System Events"
tell process "System Preferences"
click button "Turn Bluetooth Off" of window "Bluetooth"
end tell
end tell
tell application "System Preferences"
quit
end tell
- AppleScript 2: toggle bluetooth on and off
tell application "System Preferences"
set current pane to pane "com.apple.preferences.Bluetooth"
end tell
tell application "System Events"
tell process "System Preferences"
set statName to name of button 3 of window 1 as string
set failSafe to 0
repeat until statName is not name of button 3 of window 1 as string ¬
or failSafe is 10
click button 3 of window 1
set failSafe to failSafe + 1
delay 0.1
end repeat
end tell
end tell
tell application "System Preferences"
quit
end tell
- When run from Script Editor,
* AppleScript 1 would not turn off system bluetooth but all bluetooth devices would disconnect
* On the other hand, AppleScript 2 would always turn off system bluetooth reliably
- When AppleScript 1 is run from Keyboard Maestro upon system sleep,
* System sleep would occur
* Either Apple wireless keyboard or trackpad could be used to wake the system
* Bluetooth would be available upon system wake and both Apple wireless keyboard and trackpad are available readily
- When AppleScript 2 is run from Keyboard Maestro upon system sleep,
* System sleep would occur
* Neither Apple wireless keyboard nor trackpad could be used to wake the system
* Bluetooth would not be available upon system wake and therefore, neither Apple wireless keyboard nor trackpad would be available
- When AppleScript 2 is run from Keyboard Maestro upon system sleep and upon system wake,
* System sleep would occur
* Neither Apple wireless keyboard nor trackpad could be used to wake the system
* Bluetooth would be available upon system wake and both Apple wireless keyboard and trackpad would then connect and become available after a short delay