spinner2727 Posted December 24, 2009 Share Posted December 24, 2009 Hey guys, So I'm really happy because after about half a year of trying to get sleep to work on my laptop (an Asus G1S) with Leopard and now Snow Leopard, I finally found some help threads pertaining to my hardware and managed to get it to work (almost!) by doing a lot of work with the DSDT. Here's the thing though, I have an Intel 4965AGN wireless card (which obviously doesn't work), but the bluetooth is recognized in OSX. That would be great, except that Bluetooth is preventing my computer from staying asleep. It'll go to sleep, and then immediately wake up, saying that "wake was successful from UHC3" (the slot the bluetooth shows up on in IORegistryExplorer). Now, if I turn off bluetooth, sleep works fine. But why can't I just tell OSX NOT to wake from Bluetooth, so I don't have to disable the thing entirely? I know this doesn't seem like that big of a deal, I could just disable it. But I have another problem there. My laptop can disable/enable the bluetooth using FN+F2, which works to turn it off. But after that I can't get OSX to turn it back ON. I can tell the actual card is on, because sleep doesn't work, but the bluetooth icon in the status bar doesn't turn back on, saying it's still unavailable. So it becomes a huge hassle because now I have to reboot the computer, which takes forever because I have to use OpenHaltRestart. So how can I get OSX to recognize that I turned the bluetooth back on? More importantly, why the heck doesn't sleep TURN OFF the bluetooth, and then turn it back on when it wakes up? I need to fix either one or the other, because if I can't fix the latter (sleep with bluetooth on) then I need to be able to do the former (turn off and on bluetooth when I need it). Your ideas and help is much appreciated. If I can get these little bugs working, i'll have a nearly perfectly working OSX on my laptop. Thanks a lot! Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/ Share on other sites More sharing options...
U.C. Posted December 24, 2009 Share Posted December 24, 2009 Buy a dongle - http://www.dealextreme.com/details.dx/sku.11866 Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1367995 Share on other sites More sharing options...
spinner2727 Posted December 24, 2009 Author Share Posted December 24, 2009 Okay, my bad, I actually can turn the bluetooth back on using the FN key, it just takes a REALLY long time to come back. Since it's already working, I really don't want to have an external bluetooth dongle on my laptop, regardless of how cheap it is. I just have this thing about trying to get everything I already have working properly. Thanks anyway, though. So now the only question left is, is it possible to fix sleep so that Bluetooth doesn't wake it up immediately, but still have Bluetooth enabled? Any ideas what's causing it and what would fix it? Thanks. Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1368015 Share on other sites More sharing options...
CharredPC Posted December 26, 2009 Share Posted December 26, 2009 So now the only question left is, is it possible to fix sleep so that Bluetooth doesn't wake it up immediately, but still have Bluetooth enabled? Any ideas what's causing it and what would fix it? Thanks. Common problem. You need to patch your DSDT to enable sleep capability on your USB. I recommend using DSDTSE to grab and edit it. Some searches for 'DSDT usb sleep' should pull up what you need. Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1369491 Share on other sites More sharing options...
spinner2727 Posted December 27, 2009 Author Share Posted December 27, 2009 Common problem. You need to patch your DSDT to enable sleep capability on your USB. I recommend using DSDTSE to grab and edit it. Some searches for 'DSDT usb sleep' should pull up what you need. Hey CharredPC, thanks for the response. I've already patched my DSDT using the exact same thread that shows up in the first result of that search, and sleep is working with any USB device plugged in. It's just that it wakes up immediately ONLY when bluetooth is enabled. Everything else USB related works. Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1369722 Share on other sites More sharing options...
LocusOfControl Posted December 27, 2009 Share Posted December 27, 2009 Hey CharredPC, thanks for the response. I've already patched my DSDT using the exact same thread that shows up in the first result of that search, and sleep is working with any USB device plugged in. It's just that it wakes up immediately ONLY when bluetooth is enabled. Everything else USB related works. I have raised similar questions, see the DSDT thread here http://www.insanelymac.com/forum/index.php...t&p=1368359 and on the magic mouse thread http://www.insanelymac.com/forum/index.php...t&p=1348069 I get the same symptoms as you, I find if I switch off wake from BT it takes longer to settle down on waking whereas if I leave wake from BT on then it is useable straight after wake I do get my system to sleep occasionally with wake from BT switched on. If I leave my machine running with sleep set to 10mins it will sleep aprox every 1.5 to 2 hours, no idea why. Forcing sleep always works as this is apparently not overide-able Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1369996 Share on other sites More sharing options...
ttgolf Posted January 4, 2010 Share Posted January 4, 2010 Hi LocusOfControl, I have been away from the forum for a few weeks. I am having very similar issues as you. My Bluetooth setup now is Anycom USB-250 with the plist hack to turn on the "allow Bluetooth devices to wake computer" option. I switched from Trust because Anycom allows my keyboard to work during bootup. I am now using a new Logitech DiNovo Edge Mac keyboard with a Magic Mouse. The only issue I am having now is Idle Sleep with Magic Mouse. Let me explain..... Test 1: With "Allow Bluetooth Device to Wake Computer" option OFF - I can put the computer to sleep (software sleep) and wake without any problem. Idle sleep with usually work after about 5 minutes. Wake from Idle sleep is not a problem at all. Test 2: With "Allow Bluetooth Device to Wake Computer" option ON - I can put the computer to sleep (software sleep) and wake without any problem. Idle sleep will kick in after about 5 minutes but the computer will wake immediately. Kernel log shows activities with the BT dongle. If I put the computer to sleep after the 1st "failed" attempt, the computer will shut off if I try to software sleep or idle sleep the second time. Test 3: With "Allow Bluetooth Device to Wake Computer" option ON but turn my Magic Mouse off - I can put the computer to sleep and wake without any problem. Idle sleep will work after 5 minutes. Everything is working. Test 4: With "Allow Bluetooth Device to Wake Computer" option ON but use older Apple Wireless Mouse or Microsoft BT mouse. Everything is working (Idle and Software sleep). Above tests were done with Snow Leopard 10.6.2. A few other observations: 1) There seems to be a big change in Bluetooth implementation with 10.6.2. My BT keyboard will work in POST screen only if I pair with it in 10.6. If I pair with it in 10.6.2 the keyboard won't work during POST screen but will work when it boots into SL. 2) All 4 tests above running in 10.6 all work flawlessly. The issue there is that my Magic Mouse scroll won't work in 10.6. I am afraid to upgrade to 10.6.1 with the Magic Mouse update because I don't have time to backup my backup drive. 3) To allow my keyboard to work in POST screen in 10.6.2, I will have to pair it in 10.6.2. Then boot into 10.6 and pair it in 10.6 again. Boot back into 10.6.2. Everything will work. 4) Targus ACB10US BT dongle (long stick) which is recommended by Apple if you want to get "Allow BT devices to wake computer" option actually will work in the POST screen but only in 10.6. 5) Targus BT stick won't work with 10.6.2 even with the trick in 3). Conclusion: Looks like the culprit is the Magic Mouse driver. I believe it has something to do with the Multitouch driver for Magic Mouse and our Hackintosh implementations. I have been reading up on the USB mods in DSDT (Gigabyte DSDT thread). But still haven't been able to resolve this issue. It is driving me crazy............. BTW: is there a way to monitor the Bluetooth packet traffic? I just don't understand how Magic Mouse can generate traffic during the sleep command. Any insight will greatly appreciated. Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1376788 Share on other sites More sharing options...
LocusOfControl Posted January 5, 2010 Share Posted January 5, 2010 Hi LocusOfControl, I have been away from the forum for a few weeks. I am having very similar issues as you. My Bluetooth setup now is Anycom USB-250 with the plist hack to turn on the "allow Bluetooth devices to wake computer" option. I switched from Trust because Anycom allows my keyboard to work during bootup. I am now using a new Logitech DiNovo Edge Mac keyboard with a Magic Mouse. The only issue I am having now is Idle Sleep with Magic Mouse. Let me explain..... Test 1: With "Allow Bluetooth Device to Wake Computer" option OFF - I can put the computer to sleep (software sleep) and wake without any problem. Idle sleep with usually work after about 5 minutes. Wake from Idle sleep is not a problem at all. Test 2: With "Allow Bluetooth Device to Wake Computer" option ON - I can put the computer to sleep (software sleep) and wake without any problem. Idle sleep will kick in after about 5 minutes but the computer will wake immediately. Kernel log shows activities with the BT dongle. If I put the computer to sleep after the 1st "failed" attempt, the computer will shut off if I try to software sleep or idle sleep the second time. Test 3: With "Allow Bluetooth Device to Wake Computer" option ON but turn my Magic Mouse off - I can put the computer to sleep and wake without any problem. Idle sleep will work after 5 minutes. Everything is working. Test 4: With "Allow Bluetooth Device to Wake Computer" option ON but use older Apple Wireless Mouse or Microsoft BT mouse. Everything is working (Idle and Software sleep). Above tests were done with Snow Leopard 10.6.2. A few other observations: 1) There seems to be a big change in Bluetooth implementation with 10.6.2. My BT keyboard will work in POST screen only if I pair with it in 10.6. If I pair with it in 10.6.2 the keyboard won't work during POST screen but will work when it boots into SL. 2) All 4 tests above running in 10.6 all work flawlessly. The issue there is that my Magic Mouse scroll won't work in 10.6. I am afraid to upgrade to 10.6.1 with the Magic Mouse update because I don't have time to backup my backup drive. 3) To allow my keyboard to work in POST screen in 10.6.2, I will have to pair it in 10.6.2. Then boot into 10.6 and pair it in 10.6 again. Boot back into 10.6.2. Everything will work. 4) Targus ACB10US BT dongle (long stick) which is recommended by Apple if you want to get "Allow BT devices to wake computer" option actually will work in the POST screen but only in 10.6. 5) Targus BT stick won't work with 10.6.2 even with the trick in 3). Conclusion: Looks like the culprit is the Magic Mouse driver. I believe it has something to do with the Multitouch driver for Magic Mouse and our Hackintosh implementations. I have been reading up on the USB mods in DSDT (Gigabyte DSDT thread). But still haven't been able to resolve this issue. It is driving me crazy............. BTW: is there a way to monitor the Bluetooth packet traffic? I just don't understand how Magic Mouse can generate traffic during the sleep command. Any insight will greatly appreciated. Hi ttgolf I also suspect the MM driver, seems to be a problem on some Macs as well, but what really makes me think it is the mouse is that if you look at Apple's MM page it says built in power saving. Well don't know about you but I get through cheap batteries in a couple of weeks. I think it is meant to reduce traffic when idle but it doesn't seem to most of the time, I have seen it sometimes and I think that coincides with the sleep working Go to the /Developer/Application/Utilities/Bluetooth folder and look at PacketLogger However I could be wrong Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1377310 Share on other sites More sharing options...
ttgolf Posted January 5, 2010 Share Posted January 5, 2010 After playing around with the DSDT file and the bluetooth kext, I can no longer sleep with Magic Mouse. It will wake immediately after I put the computer to sleep. I am giving up on the Magic Mouse for now. I am going to use my other BT mouse. Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1377374 Share on other sites More sharing options...
LocusOfControl Posted January 6, 2010 Share Posted January 6, 2010 After playing around with the DSDT file and the bluetooth kext, I can no longer sleep with Magic Mouse. It will wake immediately after I put the computer to sleep. I am giving up on the Magic Mouse for now. I am going to use my other BT mouse. Pity you can't get back to a clean position, if your other mouse works OK then it would suggest a MM problem? Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1378401 Share on other sites More sharing options...
kdawg Posted January 8, 2010 Share Posted January 8, 2010 Pity you can't get back to a clean position, if your other mouse works OK then it would suggest a MM problem?So I finally got my Belkin USB bluetooth adapter and Wake on Bluetooth wasn't an option until I generated a legacy kext adding the product and device ID. However I can't wake my machine with my Magic Mouse and I loose connectivity when I wake it by keyboard. I speculate is the Bluetooth adapter is telling the mouse to go to sleep but it never tells it to wake. LocusOfControl it seems you solved your problem by purchasing the Trust BT-2400p. Is that right? Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1379726 Share on other sites More sharing options...
LocusOfControl Posted January 8, 2010 Share Posted January 8, 2010 So I finally got my Belkin USB bluetooth adapter and Wake on Bluetooth wasn't an option until I generated a legacy kext adding the product and device ID. However I can't wake my machine with my Magic Mouse and I loose connectivity when I wake it by keyboard. I speculate is the Bluetooth adapter is telling the mouse to go to sleep but it never tells it to wake. LocusOfControl it seems you solved your problem by purchasing the Trust BT-2400p. Is that right? Both types of sleep work perfectly, auto sleep is regular as clockwork every 10 or 11 mins Yes I can wake using the usb aluminium keyboard (one with number pad) I can also wake with MM ' But setting 'allow wake from BT' for the MM stops regular autosleep (works sometimes, not regular) having spent time getting wake from BT working I leave it turned off and just use the keyboard to wake Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1379832 Share on other sites More sharing options...
ttgolf Posted January 11, 2010 Share Posted January 11, 2010 Hi LocusOfControl, I am still messing around with the DSDT file. Can you post your DSDT file? Also can you confirm your BIOS settings? Do you have HPET set at 64 bit or 32 bit? What about the Native SATA port 0-3 setting? Is it Enabled or Disabled? Thanks for your help. Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1382442 Share on other sites More sharing options...
SMF Posted January 15, 2010 Share Posted January 15, 2010 So I finally got my Belkin USB bluetooth adapter and Wake on Bluetooth wasn't an option until I generated a legacy kext adding the product and device ID. However I can't wake my machine with my Magic Mouse and I loose connectivity when I wake it by keyboard. I speculate is the Bluetooth adapter is telling the mouse to go to sleep but it never tells it to wake. LocusOfControl it seems you solved your problem by purchasing the Trust BT-2400p. Is that right? kdawg, Can you post your legacy kext? I have a DBT-120 B4 and it doesn't work with SL 10.6.2. I do see in IORegistryExplorer WakeonBTEnabled set as True but it's greyed out in the preference pane ... And couldn't you set product/device id in DSDT? Regards, SMF Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1385604 Share on other sites More sharing options...
kdawg Posted January 15, 2010 Share Posted January 15, 2010 kdawg, Can you post your legacy kext? I have a DBT-120 B4 and it doesn't work with SL 10.6.2. I do see in IORegistryExplorer WakeonBTEnabled set as True but it's greyed out in the preference pane ... And couldn't you set product/device id in DSDT? Regards, SMF Here you go. Beware, you may not get the results you're looking for. What I've found is that you loose Bluetooth on wake using this method. I honestly think Apple needs to do some work on their Bluetooth drivers. LegacyBluetooth.kext.zip Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1385787 Share on other sites More sharing options...
SMF Posted January 15, 2010 Share Posted January 15, 2010 Here you go. Beware, you may not get the results you're looking for. What I've found is that you loose Bluetooth on wake using this method. I honestly think Apple needs to do some work on their Bluetooth drivers. LegacyBluetooth.kext.zip kdawg, Not to be slow but doesn't loosing BT on wake make your kext a non-starter? I mean why enable waking via the BT mouse only to loose BT after you wake? or did I miss read what you posted... Regards, SMF Link to comment https://www.insanelymac.com/forum/topic/203750-sleep-bluetooth-dilemma/#findComment-1385831 Share on other sites More sharing options...
Recommended Posts