Class

AstalPowerProfilesPowerProfiles

Description

class AstalPowerProfiles.PowerProfiles : GObject.Object
{
  /* No available fields */
}

Client for PowerProfiles.

Ancestors

Constructors

astal_power_profiles_power_profiles_new
No description available.

Functions

astal_power_profiles_power_profiles_get_default

Gets the default singleton PowerProfiles instance.

Instance methods

astal_power_profiles_power_profiles_hold_profile

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.

astal_power_profiles_power_profiles_release_profile

This removes the hold that was set on a profile.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

AstalPowerProfiles.PowerProfiles:active-profile

The type of the currently active profile. It might change automatically if a profile is held, using the [method@ AstalPowerProfiles.PowerProfiles.hold_profile] method.

AstalPowerProfiles.PowerProfiles:icon-name

Return a named icon based AstalPowerProfilesPowerProfiles:active-profile.

AstalPowerProfiles.PowerProfiles:actions

List of the “actions” implemented in the running daemon. This can used to figure out whether particular functionality is available in the daemon.

AstalPowerProfiles.PowerProfiles:performance-degraded

This will be set if the performance power profile is running in degraded mode, with the value being used to identify the reason for that degradation. Possible values are: - “lap-detected” (the computer is sitting on the user’s lap) - “high-operating- temperature” (the computer is close to overheating) - “” (the empty string, if not performance is not degraded).

AstalPowerProfiles.PowerProfiles:version

The version of the power-profiles-daemon software.

Signals

AstalPowerProfiles.PowerProfiles::profile-released

Emitted when the profile is released because AstalPowerProfilesPowerProfiles:active-profile was manually changed. This will only be emitted to the process that originally called astal_power_profiles_power_profiles_hold_profile().

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AstalPowerProfilesPowerProfilesClass {
  /* no available fields */
}

No description available.