My Dell Mini Forum

Go Back   MyDellMini Forum > Operating Systems > Mac OS X > General Mac OS X Discussion
Reload this Page Bluetooth "connect to network" grayed out after sleep
Connect with Facebook
Reply
 
LinkBack Thread Tools Display Modes
  (#1) Old
Junior Member
 
Posts: 10
Join Date: Apr 2009
Default Bluetooth "connect to network" grayed out after sleep - 05-26-2009, 06:56 PM

Hi all,

I have my Mini 9 operating happily with BT and tethering over Bluetooth PAN, but only if I do it before sleeping the machine. If I sleep the machine the "connect to network" submenu under my phone in the BT menu is grayed out, and I can't tether without rebooting first. Any ideas?

I did the terminal hack for my BT module so that the module doesn't shut itself off anymore on pairing, and everything BT related seems to work fine with the exception of Bluetooth PAN networking.

Thanks in advance.
Reply With Quote
  (#2) Old
Junior Member
 
Posts: 27
Join Date: Feb 2009
Default 05-26-2009, 09:13 PM

Quote:
Originally Posted by osunick View Post
Hi all,

I have my Mini 9 operating happily with BT and tethering over Bluetooth PAN, but only if I do it before sleeping the machine. If I sleep the machine the "connect to network" submenu under my phone in the BT menu is grayed out, and I can't tether without rebooting first. Any ideas?

I did the terminal hack for my BT module so that the module doesn't shut itself off anymore on pairing, and everything BT related seems to work fine with the exception of Bluetooth PAN networking.

Thanks in advance.
Dragon and I were discussing this in the Bluetooth Terminal Mod thread. Right now I have everything working, but I had to take a number of steps:
- revert to 10.5.5
- extract and install bluetooth drivers from 10.5.7
- use Voodoo kernel to address sleep issues

Right now my mini9 is working like this perfectly, except for one bug ... For sleep to work the power cord must be plugged in at least for a moment before trying sleep. Then it is fine until next restart. But if I try sleeping after restart without power being plugged in at least for a second, waking from sleep doesn't work. Once power is applied (and optionally removed), the mini9 can wake/sleep as many times as I'd like with no issue. Strange bug. Also, this is with all options enabled in bios (bluetooth, usb legacy and usb wake).

Downside is iLife09 and iWork09 require 10.5.6 or greater. Later this week I am going to try to come up with a solution that will work with 10.5.7, but testing these kinds of things is very time consuming and if my hunches are wrong, then I'll be back to square one.

If anyone has any ideas, please post them here!
Reply With Quote
  (#3) Old
Junior Member
 
Posts: 10
Join Date: Apr 2009
Default 05-30-2009, 09:05 AM

Do these issues exist with USB bluetooth devices?
Reply With Quote
  (#4) Old
Member
 
Posts: 45
Join Date: Mar 2009
Default 05-30-2009, 09:34 AM

I needed to do the terminal mod to enable turn on/off.

Other than that I only have an issue w/ tethering. isync and copying files works fine.
Reply With Quote
  (#5) Old
Junior Member
 
Posts: 4
Join Date: May 2009
Default 05-30-2009, 10:22 AM

Bluetooth and sleep don't work very well, BT becomes disabled after waking. However I found a reasonable work around. Before sleep, I disable BT from the menu bar icon (I have a tiny external generic USB module) . Then I close the lid to make it go to sleep. After waking up you can enable BT again, works perfectly and reliably.

There exists a command line tool to enable/disable BT from the command line, I presume this could lead to an AppleScript that's run automatically when going to sleep and waking from it, but I cannot be bothered to investigate as I only use BT once in a while and just enable it then.

edit; I run 10.5.7 as plain as it can be with Dell EFI 1.2a5, no kernel hacks required.

Last edited by tliet; 05-30-2009 at 10:25 AM.
Reply With Quote
  (#6) Old
Junior Member
 
Posts: 6
Join Date: Jun 2009
Default 06-30-2009, 11:50 PM

Quote:
Originally Posted by osunick View Post
If I sleep the machine the "connect to network" submenu under my phone in the BT menu is grayed out, and I can't tether without rebooting first. Any ideas?
Found a workaround to avoid the reboot:
  1. Turn off Bluetooth from the menu.
  2. Open Terminal and type 'sudo killall blued' and hit return.
  3. Enter your admin password when prompted.
  4. Turn Bluetooth back on from the menu.

Hopefully the 'Connect to Network' option is back and working. These steps quit the Bluetooth daemon - it automatically restarts and should then allow you to connect again.

Anyone know a way to automate this after wake from sleep?
Reply With Quote
  (#7) Old
Junior Member
 
Posts: 6
Join Date: Apr 2009
Default 07-03-2009, 07:02 AM

Quote:
Originally Posted by Mintytorus View Post
Found a workaround to avoid the reboot:
  1. Turn off Bluetooth from the menu.
  2. Open Terminal and type 'sudo killall blued' and hit return.
  3. Enter your admin password when prompted.
  4. Turn Bluetooth back on from the menu.

Hopefully the 'Connect to Network' option is back and working. These steps quit the Bluetooth daemon - it automatically restarts and should then allow you to connect again.

Anyone know a way to automate this after wake from sleep?
This is awesome. Thanks.
Reply With Quote
  (#8) Old
Junior Member
 
Posts: 27
Join Date: Feb 2009
Default 07-03-2009, 05:33 PM

Quote:
Originally Posted by Mintytorus View Post
Found a workaround to avoid the reboot:
  1. Turn off Bluetooth from the menu.
  2. Open Terminal and type 'sudo killall blued' and hit return.
  3. Enter your admin password when prompted.
  4. Turn Bluetooth back on from the menu.

Hopefully the 'Connect to Network' option is back and working. These steps quit the Bluetooth daemon - it automatically restarts and should then allow you to connect again.

Anyone know a way to automate this after wake from sleep?
To automate this there are a couple utilities to download:
Sleepwatcher bb's Homepage
Blueutil Mac OS X utility: blueutil


Install blueutil. Don't bother with the installer script, just download the dmg and copy the blueutil file to /usr/bin/
Install sleepwatcher. This will create two files that are important to us:
/etc/rc.sleep
/etc/rc.wakeup

In /etc/rc.sleep, place the following lines at the end:
/usr/bin/blueutil off
sleep 1
/sbin/service com.apple.blued stop

In /etc/rc.wakeup, place the following lines at the end:
/sbin/service com.apple.blued start
sleep 1
/usr/bin/blueutil on

That's it. It's working fine for me with an external bluetooth adapter. Without the sleep delay, I was having sometimes work, sometimes not.

Good luck.
Reply With Quote
  (#9) Old
Junior Member
 
Posts: 6
Join Date: Jun 2009
Default 07-07-2009, 08:14 AM

Quote:
Originally Posted by malone46844 View Post
To automate this there are a couple utilities to download:
Sleepwatcher bb's Homepage
Blueutil Mac OS X utility: blueutil


Install blueutil. Don't bother with the installer script, just download the dmg and copy the blueutil file to /usr/bin/
Install sleepwatcher. This will create two files that are important to us:
/etc/rc.sleep
/etc/rc.wakeup

In /etc/rc.sleep, place the following lines at the end:
/usr/bin/blueutil off
sleep 1
/sbin/service com.apple.blued stop

In /etc/rc.wakeup, place the following lines at the end:
/sbin/service com.apple.blued start
sleep 1
/usr/bin/blueutil on

That's it. It's working fine for me with an external bluetooth adapter. Without the sleep delay, I was having sometimes work, sometimes not.

Good luck.
Cheers man - that works an absolute treat with the internal Bluetooth as well. Another little niggle sorted out
Reply With Quote
  (#10) Old
Member
 
Posts: 38
Join Date: Mar 2009
Default 07-07-2009, 11:00 PM

I hate to ask but can someone write a tutorial for dummies on how to do this. I'm having alot of problems setting this up properly. I'm able to get to the etc folder but are not sure where to paste the extra lines or how to save it afterwards. No matter what I do, I get an error regarding privileges.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


UMPC Topsites
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
Copyright © 2008-2010 MyDellMini.com. Hosted on a CatN vCluster.