For anyone out there that has a macbook and gets the common ‘bluetooth not available’ problem
OK, so I know that this isn’t really related to application delivery or virtual infrastructure, but it has been a pain in the ass for a long time.
Lots of people I know in my industry have turned to the Apple Macbook, especially now that VMware Fusion, Microsoft Office 2008, Omni Graffle, Microsoft’s RDP client and the Citrix ICA client have been available for a while.
However, myself and most of my colleagues have all experienced the ‘bluetooth not available error’ which seems to come and go which is incredibly frustrating if most of your peripherals are bluetooth enabled.
I have had this issues for nearly 2 years now, but living in rural France and having a heavy reliability on my Macbook means that I cannot drop it off at the local Apple reseller’s and kiss goodbye to it for a month (seriously, especially in August!).
The ‘bluetooth not available’ issue all over the internet with no real specific cause or solution. I believe that my ‘bluetooth not available’ issue is due to heat and sleep related issues (not me… my mac), not software or hardware related, so this it what I tried.
1. Download the SMC Fan Control Utilitity from here and increase your fan speed from its default (lowest) setting.
http://homepage.mac.com/holtmann/eidac/software/page5/page5.html
2. Change the Sleep Mode of your MacBook back to mode ‘0′
(The below process is taken from Windleys Technometria )
When Apple shipped the MBP, they changed how sleep works. What? Mess with perfection? Yup, that’s what they did, although they had a reason (I’m not saying it’s a good one). The old Powerbooks could tolerate a battery switch when they were asleep without losing state. The MBPs can’t. If you put your MBP to sleep, switch batteries, and then wake it, you’ll note you’ve see a whited-out screen and a progress bar at the bottom. The machine is waking from hibernation. If you pop a battery out of a sleeping MBP, it automatically hibernates.
In order support this automatic hibernation, the machine has to write the contents of RAM to disk every time it goes to sleep. This is called “SafeSleep” by Apple. I call it “SureDeath.” That’s why putting a MBP to sleep takes to long. For whatever reason, that process seemed to be causing problems for me. Maybe because I’ve frequently got almost 4Gb of RAM in use with virtual machines, and so on. Often my machine would refuse to sleep or never wake up once it got there.
Here’s the good news: Apple left the old mode in the OS and you can activate it if you want. You can also switch back to SafeSleep anytime you like. According to this MacWorld article, OS X supports five different sleep modes:
- 0 - Old style sleep mode, with RAM powered on while sleeping, safe sleep disabled, and super-fast wake.
- 1 - Hibernation mode, with RAM contents written to disk, system totally shut down while “sleeping,” and slower wake up, due to reading the contents of RAM off the hard drive.
- 3 - The default mode on machines introduced since about fall 2005. RAM is powered on while sleeping, but RAM contents are also written to disk before sleeping. In the event of total power loss, the system enters hibernation mode automatically.
- 5 - This is the same as mode 1, but it’s for those using secure virtual memory (in System Preferences -> Security).
- 7 - This is the same as mode 3, but it’s for those using secure virtual memory.
From Macworld: Mac OS X Hints: Set newer portable Macs’ sleep mode
Referenced Wed Oct 17 2007 09:58:31 GMT-0600 (MDT)
The first step is to check which mode you’re in now. Use this command from the terminal:
pmset -g | grep hibernatemode
Make a note of which mode it is (probably 3) so that you can return to it if you want.
Now, set your MBP to use mode 0:
sudo pmset -a hibernatemode 0
That’s it. I rebooted. Not sure it that’s necessary.
Now, you may be wondering…if my MBP was writing memory out to disk, is that stored somewhere, taking up precious disk space? Yes! Here’s how to recover it:
sudo rm /var/vm/sleepimage
My sleep image was 4Gb since that’s how much memory I have. Nice to have it back.
Now, a word of warning: if you change to sleep mode 0 on a MBP, you lose the ability to do a battery swap without plugging the machine in. I only do that occasionally, so I’m happy to forego the feature if my machine works more reliably every day.
As I said, I made this change two weeks ago and my machine has been as stable as my old Powerbook every since. I’m happy to have solved one of the annoyances of my computing life.
I can happily report that since the above changes have been made, my bluetooth is now stable again.
Regards,
Lee Wynne




Comment by sl on 22 September 2008:
Thank you, thank you. I have been having this same problem and it is definitely heat related. When the temperature hits about 53 deg C, my wireless keyboard will lose the connection. After using SMCfancontrol and the sleep mode to 0, it is a lot more stable. The mouse is more stable than the keyboard. But I still occasionally experience “connection lost”. I just invested over $200 on a SSD drive to try to make the temperature more stable. Temperature still goes up but I am not having as much ‘connection lost’ and it is more stable. The SSD is making the system a little faster.