Those messages would not be triggered by an application. They can only be triggered by manually changing the power state via sysfs or via a display change event such as switching between single and multi display.