Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.6: Set power saving modes on laptops via Terminal System 10.6
Snow Leopard only hintI recently upgraded from Mac OS X 10.4 to 10.6, and noticed that the power saving profiles have disappeared from the menu bar's Battery Status menus. Luckily, this functionality is still accessible via the command line.

Open Terminal and type the following command in order to set the profile to be used when using the battery:
pmset -b modenum
Replace modenum with one of the following values:
  • 1 - Better Energy Savings
  • 2 - Normal
  • 3 - Better Performance
  • -1 - Custom
In order to set the profile used when connected to AC power, change -b to -c. I am able to use the above commands with neither administrator nor root privileges. Your settings should be reflected in the Energy Saver preference pane.
    •    
  • Currently 2.58 / 5
  You rated: 4 / 5 (19 votes cast)
 
[11,769 views]  

10.6: Set power saving modes on laptops via Terminal | 6 comments | Create New Account
Click here to return to the '10.6: Set power saving modes on laptops via Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Set power saving modes on laptops via Terminal
Authored by: Leslie Wong on Jan 13, '10 10:19:23AM

I made an AppleScript using pmset to set the display sleep time. I saved it as an application. I use DragThing so it's just one click to change the settings.

do shell script ("pmset dim 15") password "xxxxxx" with administrator privileges



[ Reply to This | # ]
10.6: Set power saving modes on laptops via Terminal
Authored by: skapplin on Jan 13, '10 10:43:42AM

According to the 'man' page for pmset it must be run as root for changes to be made. This is the quote from the 'man' page: "pmset must be run as root in order to modify any settings."



[ Reply to This | # ]
10.6: Set power saving modes on laptops via Terminal
Authored by: sredlums on Jan 13, '10 01:21:39PM

Just out of curiosity; why would you want to do it with a terminal-command?
I guess it's nice that it can be done, but with tips like these I just fail to see why you would want to go through the trouble of remembering the exact command and carefuly typing it in, instead of just doing it 'the nomal way'? Can anybody enlighten me?



[ Reply to This | # ]
10.6: Set power saving modes on laptops via Terminal
Authored by: vwgtiturbo on Jan 13, '10 08:09:22PM

Simple... I use Marco Polo to change the system between two locations (home and work). In doing this, I have certain server shares set based on location, certain default printers, etc. When at work, I am always using the power outlet; at home, the battery. With this command, I can script changes in sleep time and such (e.g. at work, I want it to wait longer before sleeping, or whatever). Trivial, yes. Useful, I guess it depends on your OCD...



[ Reply to This | # ]
10.6: Set power saving modes on laptops via Terminal
Authored by: KevC1973 on Jan 14, '10 04:00:24PM

Any idea what this does with the dual video MacBook Pro's? Normally you would have to log off and back on when you change this option in the prefpane. (to restart the GUI is my guess).



[ Reply to This | # ]
10.6: Set power saving modes on laptops via Terminal
Authored by: throwaway on Jan 15, '10 08:23:04AM

+ 1 - also curious what it does on a MBP



[ Reply to This | # ]