mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Added ability to change what EPP is linked with each throttle profile
This commit is contained in:
@@ -22,5 +22,6 @@ gif.workspace = true
|
||||
tinybmp.workspace = true
|
||||
glam.workspace = true
|
||||
rog_dbus = { path = "../rog-dbus" }
|
||||
tokio = { version = "^1.23.0", default-features = false, features = ["macros", "sync", "rt", "time"]}
|
||||
|
||||
cargo-husky.workspace = true
|
||||
@@ -1,5 +1,5 @@
|
||||
use gumdrop::Options;
|
||||
use rog_platform::platform::PlatformPolicy;
|
||||
use rog_platform::platform::ThrottlePolicy;
|
||||
|
||||
use crate::anime_cli::AnimeCommand;
|
||||
use crate::aura_cli::{LedBrightness, LedPowerCommand1, LedPowerCommand2, SetAuraBuiltin};
|
||||
@@ -60,7 +60,7 @@ pub struct ProfileCommand {
|
||||
pub profile_get: bool,
|
||||
|
||||
#[options(meta = "", help = "set the active profile")]
|
||||
pub profile_set: Option<PlatformPolicy>,
|
||||
pub profile_set: Option<ThrottlePolicy>,
|
||||
}
|
||||
|
||||
#[derive(Options)]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use gumdrop::Options;
|
||||
use rog_platform::platform::PlatformPolicy;
|
||||
use rog_platform::platform::ThrottlePolicy;
|
||||
use rog_profiles::fan_curve_set::CurveData;
|
||||
use rog_profiles::FanCurvePU;
|
||||
|
||||
@@ -18,7 +18,7 @@ pub struct FanCurveCommand {
|
||||
meta = "",
|
||||
help = "profile to modify fan-curve for. Shows data if no options provided"
|
||||
)]
|
||||
pub mod_profile: Option<PlatformPolicy>,
|
||||
pub mod_profile: Option<ThrottlePolicy>,
|
||||
|
||||
#[options(
|
||||
meta = "",
|
||||
|
||||
@@ -18,7 +18,7 @@ use rog_aura::usb::{AuraDevRog1, AuraDevTuf, AuraPowerDev};
|
||||
use rog_aura::{self, AuraEffect};
|
||||
use rog_dbus::RogDbusClientBlocking;
|
||||
use rog_platform::error::PlatformError;
|
||||
use rog_platform::platform::{GpuMode, PlatformPolicy, Properties};
|
||||
use rog_platform::platform::{GpuMode, Properties, ThrottlePolicy};
|
||||
use rog_profiles::error::ProfileError;
|
||||
|
||||
use crate::aura_cli::{AuraPowerStates, LedBrightness};
|
||||
@@ -662,7 +662,7 @@ fn handle_throttle_profile(
|
||||
supported: &[Properties],
|
||||
cmd: &ProfileCommand,
|
||||
) -> Result<(), Box<dyn std::error::Error>> {
|
||||
if !supported.contains(&Properties::PlatformPolicy) {
|
||||
if !supported.contains(&Properties::ThrottlePolicy) {
|
||||
println!("Profiles not supported by either this kernel or by the laptop.");
|
||||
return Err(ProfileError::NotSupported.into());
|
||||
}
|
||||
@@ -691,7 +691,7 @@ fn handle_throttle_profile(
|
||||
}
|
||||
|
||||
if cmd.list {
|
||||
let res = PlatformPolicy::list();
|
||||
let res = ThrottlePolicy::list();
|
||||
for p in &res {
|
||||
println!("{:?}", p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user