Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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'd like to be able to change settings on my remote computer, like power saving settings, etc. How can I do this via terminal?


Bonus question: will remote login via ssh wake the Mac if it is asleep, or in any way affect the sleep schedule (i.e. will activity through the shell count as wakeful activity as using the GUI directly would, sorry for the incorrect terminology)?

share|improve this question
I'll have a play around with my macbook on your bonus q, but but first thoughts are: remote login could wake your mac if it's cabled and you have the wake on network access option selected. If it's on wifi, I don't believe it works, but never actually checked. And I don't think terminal commands will prevent sleep mode from occuring (it definitely doesn't stop dimming), but again, not something I've tested. – tanantish Jan 11 '13 at 4:39
up vote 1 down vote accepted

For the former, sure. It depends on exactly what you want to change, but for example power settings can be accessed using the pmset command (e.g. pmset sleep 20 to set your computer to sleep at 20 mins). Generally it's a case of working out what you want to change, and finding out the relevant shell command.

share|improve this answer

You must log in to answer this question.

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