34

To set how long the system waits to restart after a power failure:

$ sudo systemsetup -setWaitForStartupAfterPowerFailure seconds

ParameterDescription

seconds

Must be a multiple of 30 seconds.

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)

Power Management Settings

You can use the pmset command 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

For more information, see the pmset man page.

Startup Disk Settings

You can use the systemsetup command to view or change a server’s computer startup disk, which would otherwise be set using the Startup Disk pane of System Preferences.

Viewing or Changing the Startup Disk

To view the current startup disk:

$ sudo systemsetup -getstartupdisk

To view the available startup disks:

$ sudo systemsetup -liststartupdisks

To change the current startup disk:

$ sudo systemsetup -setstartupdisk path

Chapter 4 Setting General System Preferences

Page 34
Image 34
Apple oxs manual Power Management Settings, Startup Disk Settings, Viewing or Changing the Startup Disk