diff --git a/asusctl/src/main.rs b/asusctl/src/main.rs index 4412e8a5..e0135bb6 100644 --- a/asusctl/src/main.rs +++ b/asusctl/src/main.rs @@ -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 { diff --git a/asusctl/src/profiles_cli.rs b/asusctl/src/profiles_cli.rs index e9ba3d2c..ace3e231 100644 --- a/asusctl/src/profiles_cli.rs +++ b/asusctl/src/profiles_cli.rs @@ -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, } @@ -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, + #[options( meta = "", help = "enable or disable fan curve. `mod_profile` required" )] pub enabled: Option, + #[options( meta = "", help = "select fan to modify. `mod_profile` required"