mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Add option for enable/disable apply AC/Bat policy on change
This commit is contained in:
@@ -143,12 +143,24 @@ trait Platform {
|
||||
#[zbus(property)]
|
||||
fn set_throttle_policy_on_ac(&self, throttle_policy: ThrottlePolicy) -> zbus::Result<()>;
|
||||
|
||||
/// ChangeThrottlePolicyOnAc property
|
||||
#[zbus(property)]
|
||||
fn change_throttle_policy_on_ac(&self) -> zbus::Result<bool>;
|
||||
#[zbus(property)]
|
||||
fn set_change_throttle_policy_on_ac(&self, change: bool) -> zbus::Result<()>;
|
||||
|
||||
/// ThrottlePolicyOnBattery property
|
||||
#[zbus(property)]
|
||||
fn throttle_policy_on_battery(&self) -> zbus::Result<ThrottlePolicy>;
|
||||
#[zbus(property)]
|
||||
fn set_throttle_policy_on_battery(&self, throttle_policy: ThrottlePolicy) -> zbus::Result<()>;
|
||||
|
||||
/// ChangeThrottlePolicyOnAc property
|
||||
#[zbus(property)]
|
||||
fn change_throttle_policy_on_battery(&self) -> zbus::Result<bool>;
|
||||
#[zbus(property)]
|
||||
fn set_change_throttle_policy_on_battery(&self, change: bool) -> zbus::Result<()>;
|
||||
|
||||
/// ThrottleQuietEpp property
|
||||
#[zbus(property)]
|
||||
fn throttle_quiet_epp(&self) -> zbus::Result<CPUEPP>;
|
||||
|
||||
Reference in New Issue
Block a user