10.6: Set power saving modes on laptops via Terminal

January 13th, 2010

I 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


Originally posted on Mac OS X Hints

 
  Related Posts
Use a third-party APC UPS management tool for more control
Use a third-party APC UPS management tool for more control
My APC UPS beeps whenever the power fails. If this happens at night, the beep is loud enough to wake people. The beep can be disabled by software in Windows, but not in the Mac version of PowerChute Personal Edition. The Mac version provides features that Mac OS X already provides: shutdown timers for any UPS connected via USB. I stumbled across... 
Some tips for using external batteries with laptops
Some tips for using external batteries with laptops
I have a Hypermac external 100W external battery for occasional use with my MacBook Pro (and sometimes iPhone). As is pointed out on Hypermac’s website in their FAQ section, the best way to use their battery is to start with both a fully charged MacBook and a fully charged Hypermac battery. This hint is mostly about using HardwareGrowler... 
See battery percentage in Terminal and GeekTool
See battery percentage in Terminal and GeekTool
I have been building up a number of commands that I can use in GeekTool . One that I wanted but couldn’t find in other lists was the current battery capacity. This works for me: ioreg -l | grep -i capacity | tr ‘n’ ‘ | ‘ | awk ‘{printf(“%”, $10/$5 * 100)}’ [ robg adds: This worked as shown on... 
See and post Twitter messages from Terminal
See and post Twitter messages from Terminal
I found a couple of ways to update Twitter and read recent updates from the OS X command line. For instance, you can get all your tweets using the command line by using this command. (For some reason, retweets only show up as an “@” symbol, but your actual tweets will display correctly.) curl -s http://twitter.com/your_user | grep ‘... 
Add custom keyboard shortcuts in Terminal
Add custom keyboard shortcuts in Terminal
In Terminal, under the Keyboard tab of a theme, you can add custom keyboard shortcuts. However, if you try to add a custom shortcut that types a modifier key, you will have some difficulty. This is because the entry form seemingly makes it impossible to enter a modifier key or the escaped octal number for it. The way around this is to type a backslash... 
Execute small bits from the clipboard in Terminal
Execute small bits from the clipboard  in Terminal
Perl and Bash programmers will recognize the backtick operator ( `some_command` ) as a way to cause the string enclosed in the backticks operator ( some_command ) to be executed as a command in the shell. If you put some executable text on the OS X clipboard, this can also be directly executed with the backtick operator. For example, the shell... 
TUAW Hands-on: POWER A turns your iPhone into a universal remote
TUAW Hands-on: POWER A turns your iPhone into a universal remote
Filed under: Reviews There are a few options for turning your iPhone into a home entertainment remote control, but I recently got a chance to try out the POWER A , and it’s become my current favorite. The hardware portion of the POWER A package has been available for a while now, but the iPhone App that accompanies it has a new …  Read More →
Increase battery run time on laptops with SSDs
Increase battery run time on laptops with SSDs
If you have a Macbook Air with a solid-state drive, you can increase battery life by forcing your machine to always hibernate, rather than sleeping. Generally, Macs only hibernate (storing the existing system state to disk and powering off) when the battery has gone to nearly absolute zero. At all other times, they sleep — meaning that the... 
AppleScript to change Time Zones in iPhoto
AppleScript to change Time Zones in iPhoto
I had forgotten to set my camera back one hour for the change from Daylight Savings Time in Autumn. I’m a stickler for this, especially when I take some photos on one camera, and some from my iPhone (on which the time is correct). For one thing, this causes iPhoto to arrange the photos in the wrong order, as their timestamps are incorrect.... 
Apple releases new, slimmer European power adapter for iPod/iPhone
Apple releases new, slimmer European power adapter for iPod/iPhone
Filed under: Accessories , iPod Family , Peripherals , iPhone A quick note to our European readers. Apple has released a new, slimmer USB power adapter for iPods and iPhone. This new adapter supports all iPod nanos, iPhones, iPod Touches, iPod classics, the second and third gen iPod shuffle, the fourth and fifth gen click-wheel iPod, and even... 
  Related Tweets from Twitter
agonyou (Austin Gonyou)  : Nearly exploded when I rebooted my system and found it had OSX 10.6.4 on it. (Wrong partition) whew! 10.6.3 still there and working awesome...
Updated : 2010-09-08T01:56:37Z   |  Reply  |  View Tweet
razorianfly (Arron Hirst)  : Anyone else experienced this type of behaviour? Checked system languages, reinstalled browsers. Running OSX 10.6. ? http://img.ly/22uh..
Updated : 2010-09-08T00:13:57Z   |  Reply  |  View Tweet
mafiadownload (Sam)  : Office Material Management System 1.10.6.28 http://ping.fm/JQ0XO..
Updated : 2010-09-07T05:30:20Z   |  Reply  |  View Tweet
just4meana (Aram)  : Office Material Management System 1.10.6.28: Optimize material usage, enhanced recycling of materials, and http://url4.eu/7Cs0V..
Updated : 2010-09-06T23:17:31Z   |  Reply  |  View Tweet
just4meana (Aram)  : Office Material Management System 1.10.6.28: Optimize material usage, enhanced recycling of? http://goo.gl/fb/s6HMx..
Updated : 2010-09-06T23:05:58Z   |  Reply  |  View Tweet
  Related News from Digg
No comments yet.

Spam Protection by WP-SpamFree

TOP