60

To see if the system is set to restart after a system freeze:

$ sudo systemsetup -getrestartfreeze

To set the system to restart after a system freeze:

$ sudo systemsetup -setrestartfreeze (onoff)

Changing the Power Management Settings

You can use the pmset tool to change a variety of power management settings, including:

ÂDisplay dim timer

ÂDisk spindown timer

ÂSystem sleep timer

ÂWake on network activity

ÂWake on modem activity

ÂRestart after power failure

ÂDynamic processor speed change

ÂReduce processor speed

ÂSleep computer on power button press

You can configure different settings for the different power modes using pmset. There are four flags you can use: -a, -b, -c, and -u. -bapplies the settings to battery operation, -cto charger (wall power), -uto UPS, and -ato all.

To set disk spindown timer for all modes of operation:

$ sudo pmset -u spindown minutes

ParameterDescription

minutes

Must be a multiple of 30 seconds.

To display the current settings:

$ sudo pmset -g command

See the pmset man page for more information.

Viewing or Changing the Startup Disk Settings

You can use the systemsetup tool to view or change a computer’s startup disk. This can also be set using the Startup Disk pane of System Preferences.

To view the current startup disk:

$ sudo systemsetup -getstartupdisk

To view the available startup disks:

$ sudo systemsetup -liststartupdisks

Chapter 5 Setting General System Preferences

Page 60
Image 60
Apple Mac OS X Server manual Changing the Power Management Settings, Viewing or Changing the Startup Disk Settings