Add verbose output for fan-curve detection. Add mocking to GUI.

asusd: Verbose output of fan-curves on startup
ROGCC: Try to mock more of GUI state
This commit is contained in:
Luke D. Jones
2022-07-26 09:11:58 +12:00
parent 2584d69930
commit 38be25174a
18 changed files with 526 additions and 187 deletions

View File

@@ -5,7 +5,7 @@ use serde_derive::{Deserialize, Serialize};
use std::fmt;
use zvariant_derive::Type;
#[derive(Serialize, Deserialize, Type, Debug)]
#[derive(Serialize, Deserialize, Type, Debug, Default)]
pub struct SupportedFunctions {
pub anime_ctrl: AnimeSupportedFunctions,
pub charge_ctrl: ChargeSupportedFunctions,
@@ -14,21 +14,21 @@ pub struct SupportedFunctions {
pub rog_bios_ctrl: RogBiosSupportedFunctions,
}
#[derive(Serialize, Deserialize, Type, Debug)]
#[derive(Serialize, Deserialize, Type, Debug, Default)]
pub struct AnimeSupportedFunctions(pub bool);
#[derive(Serialize, Deserialize, Type, Debug)]
#[derive(Serialize, Deserialize, Type, Debug, Default)]
pub struct ChargeSupportedFunctions {
pub charge_level_set: bool,
}
#[derive(Serialize, Deserialize, Type, Debug)]
#[derive(Serialize, Deserialize, Type, Debug, Default)]
pub struct PlatformProfileFunctions {
pub platform_profile: bool,
pub fan_curves: bool,
}
#[derive(Serialize, Deserialize, Type, Debug)]
#[derive(Serialize, Deserialize, Type, Debug, Default)]
pub struct LedSupportedFunctions {
pub prod_id: AuraDevice,
pub brightness_set: bool,
@@ -37,7 +37,7 @@ pub struct LedSupportedFunctions {
pub per_key_led_mode: bool,
}
#[derive(Serialize, Deserialize, Type, Debug)]
#[derive(Serialize, Deserialize, Type, Debug, Default)]
pub struct RogBiosSupportedFunctions {
pub post_sound: bool,
pub dedicated_gfx: bool,