mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
@@ -686,9 +686,11 @@ fn handle_fan_curve(
|
||||
}
|
||||
|
||||
if cmd.get_enabled {
|
||||
// TODO:
|
||||
// let res = dbus.proxies().profile().enabled_fan_profiles()?;
|
||||
// println!("{:?}", res);
|
||||
let profile = dbus.proxies().profile().active_profile()?;
|
||||
let curves = dbus.proxies().profile().fan_curve_data(profile)?;
|
||||
for curve in curves.iter() {
|
||||
println!("{}", String::from(curve));
|
||||
}
|
||||
}
|
||||
|
||||
if cmd.default {
|
||||
|
||||
@@ -6,13 +6,16 @@ use rog_profiles::{FanCurvePU, Profile};
|
||||
pub struct ProfileCommand {
|
||||
#[options(help = "print help message")]
|
||||
pub help: bool,
|
||||
|
||||
#[options(help = "toggle to next profile in list")]
|
||||
pub next: bool,
|
||||
|
||||
#[options(help = "list available profiles")]
|
||||
pub list: bool,
|
||||
|
||||
#[options(help = "get profile")]
|
||||
pub profile_get: bool,
|
||||
|
||||
#[options(meta = "", help = "set the active profile")]
|
||||
pub profile_set: Option<Profile>,
|
||||
}
|
||||
@@ -24,6 +27,7 @@ pub struct FanCurveCommand {
|
||||
|
||||
#[options(help = "get enabled fan profiles")]
|
||||
pub get_enabled: bool,
|
||||
|
||||
#[options(help = "set the active profile's fan curve to default")]
|
||||
pub default: bool,
|
||||
|
||||
@@ -32,11 +36,13 @@ pub struct FanCurveCommand {
|
||||
help = "profile to modify fan-curve for. Shows data if no options provided"
|
||||
)]
|
||||
pub mod_profile: Option<Profile>,
|
||||
|
||||
#[options(
|
||||
meta = "",
|
||||
help = "enable or disable <true/false> fan curve. `mod_profile` required"
|
||||
)]
|
||||
pub enabled: Option<bool>,
|
||||
|
||||
#[options(
|
||||
meta = "",
|
||||
help = "select fan <cpu/gpu/mid> to modify. `mod_profile` required"
|
||||
|
||||
Reference in New Issue
Block a user