How to wake up my ubuntu (from sleep) machine via command line

I often watch movie on my ubuntu machine while sitting a little far. The machine would go to sleep after like 30 minutes. I have laptop near me which I can use to ssh and wake up if possible.

Is there a command line which I can use to wake up my machine?