Method

GioPowerProfileMonitorget_power_saver_enabled

since: 2.70

Declaration

gboolean
g_power_profile_monitor_get_power_saver_enabled (
  GPowerProfileMonitor* monitor
)

Description

Gets whether the system is in “Power Saver” mode.

You are expected to listen to the GPowerProfileMonitor::notify::power-saver-enabled signal to know when the profile has changed.

Available since: 2.70

Return value

Type: gboolean

Whether the system is in “Power Saver” mode.