Sorry for the wordy title, but my problem is thus:

  • When I'm at my desk, I would like to use only the external display.
  • With the nifty gestures in Lion, I have decided I would like to use the internal trackpad on my MacBook
  • To physically touch the trackpad, the lid on my MacBook Pro needs to be open

This used to be a piece of cake with Snow Leopard and below - you plug in the external display, close the lid, plug in a USB device or press a key on a connected keyboard to wake the machine, and once it's woken up and using the external display reopen the lid and the internal screen stays off.

Unfortunately, Lion detects when my MacBook Pro is open and thinks its being helpful by activating the display. Is there a way to disable that? Is there a way to fool Lion into thinking my lid is closed?

  • 1
    Why don't you want the extra screen real estate provided by the internal display?
    – Cajunluke
    Aug 7, 2011 at 5:38
  • 10
    @CajunLuke It just doesn't work very well. Multiple displays are best when they're sitting next to one another and are the same distance from your eyes. They're also best when two adjacent displays have the same physical dimension and resolution along the shared edge. With my MacBook Pro neither is the case, and I find it annoying having to manage it, and it's frustrating when my pointer disappears to the other screen Aug 7, 2011 at 5:54
  • 1
    Others have also wanted this for better heat dissipation as well as WiFi antenna reception. A vertical stand can help there, but it's something that might enhance Kyle's desire to control the screen independent of the display proximity sensor. (that and not needing to buy or place a magic trackpad on his work surface)
    – bmike
    Aug 8, 2011 at 17:12
  • I know this is not proper solution to the problem but I generally dim the brightness of my laptop to 0. It feels like I'm only using the external display. Dec 3, 2020 at 2:12

13 Answers 13


I've taken up olivier's suggestion to arrange my monitors to eliminate a common border:

enter image description here

I chose the bottom right because I keep my dock on the left hand side of my screen, and I use my upper right as a hot corner to sleep the display. I also moved the menu bar to my desktop monitor and the MacBook screen is completely dimmed.

There was another option I heard about: using a magnet to make your MacBook think that the lid was closed. This does work - I placed a snippet of a refrigerator magnet near the bottom left side of my keyboard and sure enough my MacBook thought I had closed the display. Unfortunately, Mac OS X also disables keyboard and trackpad input when it thinks the display is closed, so this option didn't work for me.

  • Do you know how to make the external screen the default so windows don't keep popping up on the laptop screen?
    – Szabolcs
    Aug 16, 2018 at 14:24
  • 4
    Never mind, I searched for the wrong keywords. You just need to drag the white menu bar.
    – Szabolcs
    Aug 16, 2018 at 14:26

Mac OS X Hints has discovered a command that will allow this:

To go back to pre-Lion behaviour enter the following command in Terminal:

sudo nvram boot-args="iog=0x0" 

To undo this change type type the following command or zap the PRAM (press Cmd+Opt+p+r at power up):

sudo nvram -d boot-args 
  • 4
    Worth noting: you need to restart your computer before this will work. Jan 23, 2012 at 4:36
  • 1
    Unfortunately, I get this error message in High Sierra: "nvram: Error getting variable - 'boot-args': (iokit/common) general error"
    – OMA
    Apr 13, 2019 at 13:20
  • On Mojave (10.14.4) getting this: nvram: Error setting variable - 'boot-args': (iokit/common) not permitted May 4, 2019 at 18:24
  • 2
    For those getting Error setting variable: In newer versions of OSX, you have to setup the command in the Recovery Mode. Reboot, Cmd+R , Recovery Mode, from screen menu open a new terminal, run the command.
    – jmojico
    Sep 2, 2020 at 3:04

Quick WorkAround (Not an actual solution)

Just check the option "Mirror Displays" in Display Preferences. See below screenshot.

Display Preferences - Mirror Displays

Then turn down the Macbook's brightness to zero.

  • There's multiple issues with this. There are benefits to disabling an unused screen, and this approach loses out on them. 1) frees up VRAM, because it doesn't need a screen buffer (particularly a high resolution retina display), 2) it prevents windows from accidentally popping up on there 3) closes the lid automatically moves all laptop screen windows to the external display
    – Alexander
    Aug 30, 2018 at 1:36
  • I think you missed the point where he said to mirror the displays. This might still use some extra resources, but the real downside here is that it restricts the resolutions that you can use. For me this worked fine though (both monitors run 3360x1890, which is what I want)
    – therealsix
    Jun 12, 2019 at 14:30
  • useless if you have 2 external screens
    – bormat
    Nov 26, 2019 at 9:56
  • This is the obvious solution for me. Makes much more sense than the "better" answers that just seem like weird hacks to me. Mar 8, 2021 at 14:57

Another solution, although ghetto, is to place a very weak ferrite magnet (like fridge magnets) near the Hall effect sensor of the laptop.

This has the benefit to simulate the macshell mode while keeping the lid opened to improve the cooling performance.

Do not use strong neodymium magnets. This could damage the Hall effect sensor.

To differentiate: ferrite magnets are weak and made from a black compound, neodymium magnets are very strong and usually plated with nickel, having a shiny silver look

![enter image description here

  • Hi! how do I differentiate between the two? Where did you get yours?
    – anki
    Aug 24, 2019 at 11:06
  • @ankiiiiiii ferrite magnets are weak and made from a black compound, neodymium magnets are very strong and usually plated with nickel, having a shiny silver look.
    – explogx
    Aug 24, 2019 at 11:10
  • 1
    It's a feature, not a hack.
    – Joop
    Jun 26, 2020 at 9:08
  • Worth mentioning in this case the keyboard won't work.
    – Mac
    Apr 10, 2021 at 4:19

I ran into the same problem a while ago, and here's what I did:

First, I mirrored the displays, as has already been suggested. Soon after doing this, I realized that it was very distracting to have the macbook's lit screen off in the corner of my eye. This required that I kill the brightness on the macbook's screen. But being the lazy guy that I am, I hated having to manually adjust the brightness every time I un/plugged an external monitor. So I wondered if there was a way to automate the process. I found this free app called Control Plane which let's me set "contexts" based on whether certain devices (monitors, hard drives, etc) are plugged in, whether certain wi-fi networks are in range, etc; and based on these contexts, run certain shell scripts. So all I had to do was write an applescript (called killBrightness.scpt) to kill the brightness on the macbook's screen and a shell script to call killBrightness.scpt; and call this shell script in the required context.


tell application "System Preferences" to set current pane to pane "Displays"

tell application "System Events"
    tell process "System Preferences"
        repeat with theWindow in windows
            if title of theWindow as string is "Color LCD" then
                tell tab group 1 of theWindow
                    tell slider 1 of group 2
                        set value to 0
                    end tell
                end tell
            end if
        end repeat
    end tell
end tell

tell application "System Preferences" to quit

The shell script


osascript /path/to/killBrightness.scpt

Since I plug many different monitors into my macbook, I noticed that when one with a different aspect ratio is plugged in, my windows hang off the edge of the screen. The solution to this would be to resize the windows, but that's highly inefficient when you use a ton of apps and windows like I do; also, me being as lazy as I am, didn't like that solution. So, with the help of the nice folks over at Stack Overflow, I was able to come up with this AppleScript (called resizer.scpt) to automagically resize all windows of (almost) all apps (the caveat is that some applications don't use the correct UI framework hooks, so it's quite difficult to resize them):


property blacklist : {"Finder", "Preview", "Console", "AppleScript Editor", "Spotify", "TaskCoach", "Skype", "VirtualBox"}
property buttonApps : {"LyX", "Eclipse"}
property buttonMaps : {{name:"LyX", Button:1, pname:"lyx"}, {name:"Eclipse", Button:2, pname:"eclipse"}, {name:"Spotify", Button:3, pname:"Spotify"}, {name:"TaskCoach", Button:3, pname:"TaskCoach"}}

tell application "Finder" to set theBounds to bounds of window of desktop

tell application "System Events"
    set bids to bundle identifier of processes where background only is false
end tell

repeat with bid in bids
    tell application id bid
        if name is not in blacklist then
            set appName to name as string
            if name is "Terminal" then
                set newBounds to {0, 0, (item 3 of theBounds) - 10, item 4 of theBounds}
                repeat with theWindow in windows
                    if visible of theWindow is true then
                        set bounds of theWindow to newBounds
                    end if
                end repeat
            else if name is not in buttonApps then
                    repeat with theWindow in windows
                        if visible of theWindow is true then
                            set bounds of theWindow to theBounds
                        end if
                    end repeat
                end try
            else if name is in buttonApps then
                -- get the buttonNumber
                repeat with buttonApp in buttonMaps
                    if (name of buttonApp as string) is appName then
                        set theButton to Button of buttonApp
                    end if
                end repeat
                tell application "System Events"
                    repeat with theProcess in (processes where bundle identifier is bid)
                            tell theProcess to tell window 1 to click button theButton
                        end try
                    end repeat
                end tell
            end if
        end if
    end tell
end repeat

Now, all I had to do was write a similar shell script to call resizer.scpt and put that into ControlPlane and I was all set to be lazy all over again!

Hope this helps

PS: I forgot to mention before that all of this was done on my 15 inch MacBook Pro, running Lion

  • I'd add another upvote if it was possible. Thanks!
    – noamtm
    Dec 25, 2013 at 13:38

I know this is a bit of a kludge, but my work around for this issue is to hold down the brightness control on my macbook until the screen goes dark.

Like you, I prefer to just work on the larger display, and keep typing with my laptop keyboard (with the laptop display open only partially and open just enough the I can use the laptop's keyboard).

Anyway, this solution works for me.

Re: "..and it's frustrating when my pointer disappears to the other screen.. "

I get around that by just clicking on "mirror displays" option in the System Prefs > Displays > Arrangement

Hope this helps.

  • 3
    "Mirror display" won't work if your external display has a better resolution than your internal display. I use the same solution as you (dimming the screen) but I arrange monitors so they have very few common border, in order not to lose my pointer.
    – olivier
    Aug 10, 2011 at 11:50
  • 1
    Re: "Mirror display", you're right I should have mentioned that my larger external samsung 22" monitor has the exact same 1680x1050 resolution as my 2011 15" MacBook Pro Aug 10, 2011 at 13:09
  • @olivier: Mirror display does work if external displays have better resolution. After enabling "Mirror displays", go to the "Screen" tab and select the display with the better resolution in the "Optimize for" dropdown menu. Then you will get your native resolution in your higher resolution monitor and in the internal monitor you will get the same picture but scaled down to its lower resolution.
    – OMA
    Apr 13, 2019 at 13:01

Not sure if this works in Lion but if you have the lid closed and plug in a USB device it'll power up your monitor and then you can open the lid and your external monitor will be on and your lid will be off.


This is a combination of a few of the other posts/comments here into one place. I'm using a MacBook Pro running El Capitan.

Advantages of this method over the terminal commands:

  1. no restart required
  2. no modification of boot-args


  1. plug in and turn on external monitor
  2. go to System Preferences -> Displays -> Arrangement
    • uncheck "mirror displays"
    • drag the white menu bar from the macbook display to the external monitor (reference with screenshots). This makes the external monitor the Primary display.
    • Arrange the blue boxes so that only the corners touch (screenshot provided by Kyle Cronin in posts above). This prevents the mouse from moving between screens.
  3. close the display options and tap the macbook's dimmer key (i.e. F1) until the screen is black.

Undo steps (preserving the arrangement for later):

  1. tap the brighten screen key on MacBook (i.e. F2).
  2. unplug the external monitor.

Undo steps (to change it back to the default if plugged in again):

  1. tap the brighten screen key on MacBook (i.e. F2).
  2. go to System Preferences -> Displays -> Arrangement
    • drag the white menu bar back to the macbook display.
    • drag the blue boxes back into place.
    • check the mirror displays option.
  3. unplug external monitor.
  • A black screen doesn't mean its not used: your system will know its there and renderings are done on your laptop screen too. Actually, when its blakc the only thing that goes off is your backlighting.
    – belka
    Mar 23, 2018 at 19:55

Update 2019

Since OS X El Capitan, System Integrity Protection (SIP) don't let to change nvram options. Also boot-args="iog=0x0" is not working anymore.

To solve this issue I found this solution:

  1. Go to Recovery Mode: Reboot and hold down +R until Apple logo appears.
  2. Go to Utilities > Terminal
  3. Type csrutil disable
  4. Reboot Mac
  5. Open a terminal and type sudo nvram boot-args="niog=1"
  6. Reboot with lid closed
  7. Log in with your user and you can open the lid
  8. For security reasons, go to Recovery Mode again, type csrutil enable and reboot

Undo (multiple options):

  • Go to terminal and type sudo nvram -d boot-args.
  • ...or reboot and press and hold these four keys together: ++P+R for reset your NVRAM.

I have an old 2009 MacBook which I got for free because the LED screen is damaged and I cannot see anything on it. Since I'm not prepared to spend more than it's worth to replace the LCD, I found a solution to use an external screen on native resolution.

Mirror displays is enabled with CMD + F1 to get the external up. Then go to settings - display and turn mirror displays off. The "Gather Windows" button will hopefully get the display settings to now show on the external as it did for me.

Now drag the white menu on the display settings to the external and it will become the primary display. Close the MacBook and reboot with an external keyboard and mouse attached.


This is how I achieve this.

  1. Connect You MacBook with the power cable (charger).
  2. Connect with external Keyboard + mouse.
  3. Turn the MacBook lid down.
  4. Now click keyboard buttons.
  5. Now you are using only your external display, your cursor will not go into your other display. There is only one display now.
  • This doesn't work. After closing the lid the computer goes to sleep mode and then it doesn't wake up no matter if I press the keys in the external keyboard or the button in the Bluetooth mouse. It just won't wake up until you open the lid again.
    – OMA
    Apr 13, 2019 at 13:05
  • Is it connected to the charger? Apr 14, 2019 at 8:38
  • Tried both connected and not connected
    – OMA
    Apr 25, 2019 at 3:46
  • This should work (iff you are charging)- But it's not helpful since he explicitly says he needs the screen open.
    – therealsix
    Jun 12, 2019 at 14:27
  • 1
    For me connecting the power cable was the solution.
    – gregmatys
    Sep 11, 2020 at 11:15

Once you have hooked up the external monitor, for sometime you do see this extended monitor setup. But if you don't want to use the laptop screen, simply close the lid of the macbook pro and continue working on the larger screen this works. The laptop doesn't go into sleep mode. This is with the Lion release.

  • I believe Kyle was asking how he can do it with the lid open.
    – Kevin Chen
    Jan 13, 2013 at 18:34
  • This doesn't work. Closing the lid makes the whole computer go to sleep as usual, so the external display goes blank as well.
    – OMA
    Apr 13, 2019 at 13:03

the simplest way is just to keep your mac plugged in and boom

  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Sep 16, 2021 at 16:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .