Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Macbook Pro with Snow Leopard, any way to do this?

share|improve this question
add comment

3 Answers

up vote 16 down vote accepted

Depending on your reason for turning off the Airport card (as in use the wired connection instead of the wireless when it's plugged in) you may not even need to turn off the Airport card.

If you go to the Network Preference Pane in System Preferences it's possible to set a Service Order so that when one is active it takes precedence over others. For example in the following screenshot I always use a wired connection first if it's available otherwise it would then fall back to my Airport network. My iPhone is the last on the list for the connections (Bluetooth DUN and FireWire aren't used in my case).

Service Order

share|improve this answer
    
Very cool. Now I can just leave tethering on all the time. –  mmacaulay Apr 8 '10 at 17:01
    
Thank you for solving the problem instead of just answering the question. –  Wojtek Kruszewski Nov 15 '12 at 8:30
    
Btw, "Set Service Order" is hidden underneath the "gear" icon on the lower left (I know I didn't find it right away). –  Jaime Cham Apr 15 '13 at 2:40
    
this does not turn off the wifi. is there a way to turn it off and on depending on ethernet connection? –  sharif Mar 12 at 15:02
    
@sharif You might want to look at the other answers for this question: crankd, ControlPlane and NetworkLocation are all things worth looking at. –  Chealion Mar 13 at 16:06
add comment

Maybe too much overhead, but Marco Polo is a nice application that lets you turn off/on various settings/devices depending on various factors (context aware). I have not tested it, but maybe you can create a rule that turns off the AirPort when an Ethernet cable is connected.

However, it is no longer supported by the author. As of August 2013, the author recommends looking into ControlPlane

share|improve this answer
    
This is just perfect, does exactly what I wanted, and much more powerful then NetworkLocation. And yes, you can create a rule that turns off airport when ethernet is connected - I even narrowed it down to ethernet + specific IP range in use. –  snowcrash09 Apr 20 '10 at 9:37
add comment

Within the OS you can create multiple locations in Network System Preferences, one with Airport enabled and one with it disabled. In Keyboard and Mouse you can then assign keyboard shortcuts based on the location names, as they are found under Apple menu --> Location.

NetworkLocation should be able to automate this.

share|improve this answer
    
+1 for something I didn't know about. See also "Using network locations in Mac OS X" at support.apple.com/kb/HT2712 –  Chris W. Rea Jan 24 '10 at 22:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.