Method

AstalPowerProfilesPowerProfileshold_profile

Declaration

gint
astal_power_profiles_power_profiles_hold_profile (
  AstalPowerProfilesPowerProfiles* self,
  const gchar* profile,
  const gchar* reason,
  const gchar* application_id
)

Description

This forces the passed profile (either ‘power-saver’ or ‘performance’) to be activated until either the caller quits, astal_power_profiles_power_profiles_release_profile() is called, or the [property@ AstalPowerProfiles.PowerProfiles:active_profile] is changed by the user. When conflicting profiles are requested to be held, the ‘power-saver ‘ profile will be activated in preference to the ‘performance’ profile. Those holds will be automatically cancelled if the user manually switches to another profile, and the AstalPowerProfilesPowerProfiles::profile-released signal will be emitted.

Parameters

profile

Type: const gchar*

No description available.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
reason

Type: const gchar*

No description available.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
application_id

Type: const gchar*

No description available.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gint

No description available.