Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I often have my MacBook Pro in clamshell mode attached to the second monitor. On my first monitor I have Windows machine and I use Synergy-Foss software to share only one mouse+keyboard between them.

Problem is, sometimes I forget to turn on Caffeine (that prevents screen from sleeping) when I don't use Mac for a bit longer and the screen goes to sleep.

Unfortunately mouse/keyboard activity through Synergy-Foss software isn't waking the screen. Is there a terminal command which would wake the screen?

share|improve this question
Why not just leverage the free screen real-estate the macbook offers? – AMomchilov Apr 7 '12 at 16:59

That sounds like your Mac is actually sleeping (suspend-to-ram) and not just turning it's screen off. If the screen was just turned off, simulated mouse/keyboard input from Synergy should wake it back up. If it's sleeping it won't, because your Mac isn't listening for Synergy network traffic when asleep.

You can either adjust the power save settings to only turn the screen off, but not actually go to sleep (but then you're sort of already doing that via Caffeine when you remember to) or wake the Mac via a Wake-on-LAN magic packet that will awaken it even from sleep mode, which can be sent from a command-line utility on the Windows machine.

If that doesn't work to your satisfaction you can also wake the Mac up in scheduled intervals via pmset (see man pmset for more information). For example, to wake up every Monday to Friday at 8:30am:

 pmset repeat wake MTWRF 08:30:00
share|improve this answer

Not sure if you have already tried this but you could make the MacBook pro the synergy server, this should force it to wake up.

I'm guessing that currently the windows machine is as ive used a similar setup with MacBook as the server and it worked okay.

share|improve this answer
Yes, you are right, the Windows machine is the server, but I am not too keen on changing that to be honest. I want to use Windows keyboard and mouse and keep MacBook closed. – Michal M Jan 31 '12 at 14:26

Your Answer


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.