Clamshell Mode Enabling

Discussion in 'Mac Programming' started by stephanos180, Dec 12, 2008.

  1. stephanos180 macrumors member

    Aug 23, 2006
    Downey, CA
    This is yet another post on the problem of keeping a Mac laptop awake with the screen closed.

    My Setup:
    - MacBook running Tiger
    - iPod Touch
    - Airport Express
    - Stereo

    My Situation:
    I want to be able to wake the computer in clamshell mode with my Apple Remote. Once there, I'll use a program called Telekinesis to invoke a pre-defined keyboard shortcut with my Apple Remote to run another program called InsomniaX, which keeps your computer from sleeping. This'll allow me to control my computer from across the room with Jaadu VNC on my iPod Touch and stream music to my stereo, controlling it via my iPod Touch.

    My Problem:
    The computer won't stay 'awake' long enough to run InsomniaX. That is, I hit the button on my Apple Remote and - for the second it's awake - it's like it can't load the Apple Remote remapping program long enough to invoke InsomniaX.

    What I need to figure out is how to get my MacBook to stay awake for like five seconds, after I wake it with the Apple Remote when the display is closed. Any ideas?

    Thanks in advance.
  2. lee1210 macrumors 68040


    Jan 10, 2005
    Dallas, TX
    easiest solution i can think of:
    hook up a $3 USB mouse, and move/click it to awake the machine from sleep and have it run in clamshell mode. I assume the macbook supports clamshell since the vents aren't in the keyboard like the iBook, and if that's the case it should stay awake in clamshell once awoken (not sure if it just doesn't like the remote?).

    I'm not sure if this varies model to model, but i think this should work. If you have to have a display connected, not so good.

    Programatically, i have no idea how to solve this.

  3. kainjow Moderator emeritus


    Jun 15, 2000
    Programmatically, it's possible to deny the computer going to sleep, detect waking from sleep, and detect clamshell mode. However, I'm not sure about detecting waking with the Apple Remote. Either way you'd need a program to be running to detect waking up and to disable it the next time, but if the OS isn't allowing it to be disabled then there's not much you can do. I don't have a laptop so I wouldn't be able to try anything.

Share This Page