Function set_idle_grace_period

Source
pub fn set_idle_grace_period(timeout: Duration)
Expand description

Configures the idle grace period.

The grace period starts after the idle timeout expires. During the grace period, the screen goes black but the displays are not yet disabled and the idle callback (set with on_idle) is not yet called. This is a purely visual effect to inform the user that the machine will soon go idle.

The default is 5 seconds.