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?