Forrest logo
back to the pmset tool

pmset:tldr:0b780

pmset: Set display to never sleep when on charger power.
$ sudo pmset -c displaysleep 0
try on your machine

The command "sudo pmset -c displaysleep 0" is used to configure the power management settings related to display sleep behavior when the system is connected to a power source in macOS.

Explanation of each part of the command:

  • "sudo" is a command that stands for "superuser do", which is used to execute a command with elevated privileges or as the root user. It may prompt you to enter the password to authenticate.
  • "pmset" is a command-line utility in macOS used to manipulate power management settings.
  • "-c" is an option used with the "pmset" command. It specifies that the settings should be applied when the system is connected to a power source.
  • "displaysleep 0" is a combination of options provided to the "pmset" command. The option "displaysleep" refers to the time it takes for the display to sleep after inactivity, and "0" sets it to never sleep.

Therefore, the command "sudo pmset -c displaysleep 0" is used to configure the display sleep behavior to never sleep (always stays awake) while the system is connected to a power source on a macOS system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pmset tool